@scalar/api-reference 1.28.1 → 1.28.3
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 +41 -0
- package/dist/blocks/hooks/useBlockProps.d.ts +4 -5
- package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -1
- package/dist/blocks/hooks/useBlockProps.js +10 -14
- package/dist/browser/standalone.js +11624 -11582
- package/dist/browser/webpack-stats.json +1 -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 +103 -109
- 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/ClientLibraries.vue2.js +48 -40
- 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/ClientLibraries/ClientSelector.vue2.js +6 -7
- 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 +97 -71
- 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 +18 -18
- package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -0
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +58 -56
- 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 +77 -77
- package/dist/components/Content/Tag/OperationsList.vue.d.ts +2 -0
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsList.vue2.js +22 -20
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -0
- 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 +10 -8
- package/dist/components/Content/Tag/Tag.vue.d.ts +2 -0
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +38 -34
- package/dist/components/Content/Tag/TagList.vue.d.ts +3 -0
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +32 -30
- package/dist/components/Content/Tag/TagSection.vue.d.ts +2 -0
- 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 +16 -14
- package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
- package/dist/components/Section/CompactSection.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- 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 +41 -40
- package/dist/features/ApiClientModal/useApiClient.d.ts +6 -6
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts +6 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +36 -32
- package/dist/features/Operation/Operation.vue.d.ts +1 -1
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +13 -12
- 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 +11 -8
- 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 +9 -8
- package/dist/helpers/scrollToId.d.ts +3 -1
- package/dist/helpers/scrollToId.d.ts.map +1 -1
- package/dist/helpers/scrollToId.js +4 -4
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.js +49 -41
- package/dist/hooks/useSidebar.d.ts +2 -2
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +84 -84
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/standalone/lib/html-api.d.ts +8 -9
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +11 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA+mBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA6BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAyQxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBApeZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAye/D;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAvhBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA8hB9D,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"}
|
|
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-24b615da"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
m as default
|
|
8
8
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as le, computed as
|
|
1
|
+
import { defineComponent as le, computed as g, ref as $, onBeforeMount as H, onMounted as de, onUnmounted as ue, watch as E, onServerPrefetch as ce, useSSRContext as pe, useId as fe, provide as w, openBlock as y, createElementBlock as C, Fragment as D, createElementVNode as u, normalizeClass as me, unref as l, normalizeStyle as ve, renderSlot as c, normalizeProps as p, guardReactiveProps as f, createVNode as m, withCtx as v, createCommentVNode as O, withDirectives as Se, vShow as he, createSlots as ge } from "vue";
|
|
2
2
|
import { provideUseId as be } from "@headlessui/vue";
|
|
3
3
|
import { LAYOUT_SYMBOL as we } from "@scalar/api-client/hooks";
|
|
4
|
-
import { createWorkspaceStore as ye, WORKSPACE_SYMBOL as Ce, createActiveEntitiesStore as Te, ACTIVE_ENTITIES_SYMBOL as
|
|
5
|
-
import { addScalarClassesToHeadless as
|
|
6
|
-
import { defaultStateFactory as
|
|
4
|
+
import { createWorkspaceStore as ye, WORKSPACE_SYMBOL as Ce, createActiveEntitiesStore as Te, ACTIVE_ENTITIES_SYMBOL as Re } from "@scalar/api-client/store";
|
|
5
|
+
import { addScalarClassesToHeadless as $e, ScalarErrorBoundary as Ee } from "@scalar/components";
|
|
6
|
+
import { defaultStateFactory as _ } from "@scalar/oas-utils/helpers";
|
|
7
7
|
import { hasObtrusiveScrollbars as Oe, getThemeStyles as Ie } from "@scalar/themes";
|
|
8
8
|
import { apiReferenceConfigurationSchema as ke } from "@scalar/types/api-reference";
|
|
9
|
-
import { useToasts as
|
|
10
|
-
import { useMediaQuery as
|
|
11
|
-
import
|
|
9
|
+
import { useToasts as Fe, ScalarToasts as Le } from "@scalar/use-toasts";
|
|
10
|
+
import { useMediaQuery as Pe, useResizeObserver as Me, useDebounceFn as Be } from "@vueuse/core";
|
|
11
|
+
import Ae from "./GettingStarted.vue.js";
|
|
12
12
|
import { CONFIGURATION_SYMBOL as He } from "../hooks/useConfig.js";
|
|
13
|
-
import { useHttpClientStore as
|
|
14
|
-
import { downloadSpecBus as N, downloadSpecFile as
|
|
13
|
+
import { useHttpClientStore as De } from "../stores/useHttpClientStore.js";
|
|
14
|
+
import { downloadSpecBus as N, downloadSpecFile as _e } from "../helpers/specDownloads.js";
|
|
15
15
|
import Ne from "./Sidebar/Sidebar.vue.js";
|
|
16
16
|
import Ue from "./Content/Content.vue.js";
|
|
17
|
-
import
|
|
18
|
-
import { useSidebar as
|
|
17
|
+
import ze from "../features/ApiClientModal/ApiClientModal.vue.js";
|
|
18
|
+
import { useSidebar as Ye } from "../hooks/useSidebar.js";
|
|
19
19
|
import { useNavState as Ve } from "../hooks/useNavState.js";
|
|
20
20
|
import { sleep as Ge } from "../helpers/sleep.js";
|
|
21
|
-
const
|
|
21
|
+
const We = ["innerHTML"], je = { class: "references-header" }, Ke = ["aria-label"], Qe = { class: "references-navigation-list" }, qe = { class: "references-editor" }, Je = { class: "references-editor-textarea" }, Xe = ["aria-label"], Ze = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "references-footer"
|
|
24
24
|
}, bt = /* @__PURE__ */ le({
|
|
@@ -31,158 +31,152 @@ const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
33
33
|
setup(U) {
|
|
34
|
-
const i = U,
|
|
34
|
+
const i = U, t = g(
|
|
35
35
|
() => ke.parse(i.configuration)
|
|
36
|
-
), { initializeToasts:
|
|
37
|
-
|
|
38
|
-
const V =
|
|
39
|
-
|
|
36
|
+
), { initializeToasts: z, toast: Y } = Fe();
|
|
37
|
+
z((e) => Y(e));
|
|
38
|
+
const V = Pe("(min-width: 1150px)"), G = $("100dvh"), S = $(null);
|
|
39
|
+
Me(S, (e) => {
|
|
40
40
|
G.value = e[0].contentRect.height + "px";
|
|
41
41
|
});
|
|
42
|
-
const
|
|
43
|
-
breadcrumb:
|
|
42
|
+
const W = g(Oe), {
|
|
43
|
+
breadcrumb: j,
|
|
44
44
|
collapsedSidebarItems: b,
|
|
45
|
-
isSidebarOpen:
|
|
45
|
+
isSidebarOpen: K,
|
|
46
46
|
setCollapsedSidebarItem: I,
|
|
47
47
|
hideModels: Q,
|
|
48
48
|
defaultOpenAllTags: q,
|
|
49
49
|
setParsedSpec: J,
|
|
50
50
|
scrollToOperation: X
|
|
51
|
-
} =
|
|
51
|
+
} = Ye(), {
|
|
52
52
|
getReferenceHash: Z,
|
|
53
53
|
getPathRoutingId: k,
|
|
54
54
|
getSectionId: x,
|
|
55
55
|
getTagId: ee,
|
|
56
56
|
hash: te,
|
|
57
|
-
isIntersectionEnabled:
|
|
57
|
+
isIntersectionEnabled: F,
|
|
58
58
|
pathRouting: T,
|
|
59
|
-
updateHash:
|
|
59
|
+
updateHash: L,
|
|
60
60
|
replaceUrlState: ae
|
|
61
61
|
} = Ve();
|
|
62
|
-
if (
|
|
62
|
+
if (t.value.pathRouting && (T.value = t.value.pathRouting), i.configuration.redirect && typeof window < "u") {
|
|
63
63
|
const e = i.configuration.redirect(
|
|
64
64
|
(T.value ? window.location.pathname : "") + window.location.hash
|
|
65
65
|
);
|
|
66
66
|
e && history.replaceState({}, "", e);
|
|
67
67
|
}
|
|
68
|
-
H(() =>
|
|
69
|
-
const
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
H(() =>
|
|
74
|
-
var o,
|
|
68
|
+
H(() => L());
|
|
69
|
+
const P = async (e) => {
|
|
70
|
+
var a;
|
|
71
|
+
F.value = !1, L(), e ? X(e) : (a = S.value) == null || a.scrollTo(0, 0), await Ge(100), F.value = !0;
|
|
72
|
+
}, M = $(0);
|
|
73
|
+
H(() => $e()), de(() => {
|
|
74
|
+
var o, s, r;
|
|
75
75
|
history.scrollRestoration = "manual", N.on(({ specTitle: n }) => {
|
|
76
|
-
|
|
76
|
+
_e(i.rawSpec, n);
|
|
77
77
|
});
|
|
78
|
-
const e = (
|
|
79
|
-
if (e &&
|
|
80
|
-
const n =
|
|
81
|
-
|
|
78
|
+
const e = (s = (o = S.value) == null ? void 0 : o.parentElement) == null ? void 0 : s.getBoundingClientRect(), a = (r = S.value) == null ? void 0 : r.getBoundingClientRect();
|
|
79
|
+
if (e && a) {
|
|
80
|
+
const n = a.top - e.top;
|
|
81
|
+
M.value = n < 2 ? 0 : n;
|
|
82
82
|
}
|
|
83
83
|
window.onhashchange = () => {
|
|
84
|
-
|
|
85
|
-
}, window.onpopstate = () => T.value &&
|
|
84
|
+
P(Z());
|
|
85
|
+
}, window.onpopstate = () => T.value && P(k(window.location.pathname));
|
|
86
86
|
});
|
|
87
|
-
const oe =
|
|
88
|
-
() => V.value || !
|
|
89
|
-
),
|
|
87
|
+
const oe = g(
|
|
88
|
+
() => V.value || !t.value.isEditable
|
|
89
|
+
), B = Be((e) => {
|
|
90
90
|
if ((e.target.scrollTop ?? 0) < 50) {
|
|
91
|
-
const o =
|
|
91
|
+
const o = t.value.pathRouting ? t.value.pathRouting.basePath : window.location.pathname;
|
|
92
92
|
ae("", o + window.location.search);
|
|
93
93
|
}
|
|
94
|
-
}), d =
|
|
95
|
-
breadcrumb:
|
|
94
|
+
}), d = g(() => ({
|
|
95
|
+
breadcrumb: j.value,
|
|
96
96
|
spec: i.parsedSpec
|
|
97
97
|
}));
|
|
98
98
|
ue(() => {
|
|
99
99
|
N.reset();
|
|
100
100
|
}), E(() => i.parsedSpec, J, { deep: !0 }), ce(() => {
|
|
101
|
-
var
|
|
101
|
+
var a, o;
|
|
102
102
|
const e = pe();
|
|
103
|
-
if (e && (e.payload || (e.payload = { data:
|
|
104
|
-
const
|
|
105
|
-
te.value =
|
|
106
|
-
for (const
|
|
107
|
-
Object.hasOwn(b,
|
|
108
|
-
if (
|
|
109
|
-
I(x(
|
|
103
|
+
if (e && (e.payload || (e.payload = { data: _() }), (a = e.payload).data || (a.data = _()), t.value.pathRouting)) {
|
|
104
|
+
const s = k(e.url);
|
|
105
|
+
te.value = s, e.payload.data.hash = s;
|
|
106
|
+
for (const r in b)
|
|
107
|
+
Object.hasOwn(b, r) && delete b[r];
|
|
108
|
+
if (s)
|
|
109
|
+
I(x(s), !0);
|
|
110
110
|
else {
|
|
111
|
-
const
|
|
112
|
-
|
|
111
|
+
const r = (o = i.parsedSpec.tags) == null ? void 0 : o[0];
|
|
112
|
+
r && I(ee(r), !0);
|
|
113
113
|
}
|
|
114
114
|
e.payload.data["useSidebarContent-collapsedSidebarItems"] = b;
|
|
115
115
|
}
|
|
116
|
-
}), be(() =>
|
|
117
|
-
|
|
118
|
-
const e = fe(), t = "scalar-instance-id";
|
|
119
|
-
if (!e) return t;
|
|
120
|
-
let o = e.uid;
|
|
121
|
-
return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[t] = o) : (r = e.vnode.el) != null && r.getAttribute && (o = e.vnode.el.getAttribute(t)), `${t}-${o}`;
|
|
122
|
-
});
|
|
123
|
-
const $ = ye({
|
|
116
|
+
}), be(() => fe());
|
|
117
|
+
const R = ye({
|
|
124
118
|
useLocalStorage: !1,
|
|
125
|
-
...
|
|
119
|
+
...t.value
|
|
126
120
|
});
|
|
127
121
|
E(
|
|
128
122
|
() => i.rawSpec,
|
|
129
123
|
(e) => {
|
|
130
|
-
var
|
|
131
|
-
return e &&
|
|
124
|
+
var a;
|
|
125
|
+
return e && R.importSpecFile(e, "default", {
|
|
132
126
|
shouldLoad: !1,
|
|
133
|
-
documentUrl: (
|
|
127
|
+
documentUrl: (a = t.value.spec) == null ? void 0 : a.url,
|
|
134
128
|
setCollectionSecurity: !0,
|
|
135
|
-
...
|
|
129
|
+
...t.value
|
|
136
130
|
});
|
|
137
131
|
},
|
|
138
132
|
{ immediate: !0 }
|
|
139
|
-
), w(Ce,
|
|
140
|
-
const re = Te(
|
|
141
|
-
w(
|
|
142
|
-
function
|
|
133
|
+
), w(Ce, R);
|
|
134
|
+
const re = Te(R);
|
|
135
|
+
w(Re, re), w(we, "modal"), w(He, t);
|
|
136
|
+
function A(e, a) {
|
|
143
137
|
E(
|
|
144
|
-
() =>
|
|
138
|
+
() => t.value[e],
|
|
145
139
|
(o) => {
|
|
146
|
-
typeof o < "u" &&
|
|
140
|
+
typeof o < "u" && a(o);
|
|
147
141
|
},
|
|
148
142
|
{ immediate: !0 }
|
|
149
143
|
);
|
|
150
144
|
}
|
|
151
|
-
const { setExcludedClients: se, setDefaultHttpClient: ne } =
|
|
152
|
-
|
|
153
|
-
const ie =
|
|
145
|
+
const { setExcludedClients: se, setDefaultHttpClient: ne } = De();
|
|
146
|
+
A("defaultHttpClient", ne), A("hiddenClients", se), Q.value = t.value.hideModels ?? !1, q.value = t.value.defaultOpenAllTags ?? !1;
|
|
147
|
+
const ie = g(
|
|
154
148
|
() => `<style>
|
|
155
|
-
${Ie(
|
|
156
|
-
fonts:
|
|
149
|
+
${Ie(t.value.theme, {
|
|
150
|
+
fonts: t.value.withDefaultFonts
|
|
157
151
|
})}</style>`
|
|
158
152
|
);
|
|
159
|
-
return (e,
|
|
160
|
-
var o,
|
|
161
|
-
return y(), C(
|
|
162
|
-
u("div", { innerHTML: ie.value }, null, 8,
|
|
153
|
+
return (e, a) => {
|
|
154
|
+
var o, s, r;
|
|
155
|
+
return y(), C(D, null, [
|
|
156
|
+
u("div", { innerHTML: ie.value }, null, 8, We),
|
|
163
157
|
u("div", {
|
|
164
158
|
ref_key: "documentEl",
|
|
165
159
|
ref: S,
|
|
166
160
|
class: me(["scalar-app scalar-api-reference references-layout", [
|
|
167
161
|
{
|
|
168
|
-
"scalar-scrollbars-obtrusive":
|
|
169
|
-
"references-editable":
|
|
170
|
-
"references-sidebar":
|
|
171
|
-
"references-sidebar-mobile-open": l(
|
|
172
|
-
"references-classic":
|
|
162
|
+
"scalar-scrollbars-obtrusive": W.value,
|
|
163
|
+
"references-editable": t.value.isEditable,
|
|
164
|
+
"references-sidebar": t.value.showSidebar,
|
|
165
|
+
"references-sidebar-mobile-open": l(K),
|
|
166
|
+
"references-classic": t.value.layout === "classic"
|
|
173
167
|
},
|
|
174
168
|
e.$attrs.class
|
|
175
169
|
]]),
|
|
176
170
|
style: ve({
|
|
177
|
-
"--scalar-y-offset": `var(--scalar-custom-header-height, ${
|
|
171
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${M.value}px)`
|
|
178
172
|
}),
|
|
179
|
-
onScrollPassive:
|
|
180
|
-
(...n) => l(
|
|
173
|
+
onScrollPassive: a[4] || (a[4] = //@ts-ignore
|
|
174
|
+
(...n) => l(B) && l(B)(...n))
|
|
181
175
|
}, [
|
|
182
|
-
u("div",
|
|
176
|
+
u("div", je, [
|
|
183
177
|
c(e.$slots, "header", p(f(d.value)), void 0, !0)
|
|
184
178
|
]),
|
|
185
|
-
|
|
179
|
+
t.value.showSidebar ? (y(), C("aside", {
|
|
186
180
|
key: 0,
|
|
187
181
|
"aria-label": `Sidebar for ${(o = e.parsedSpec.info) == null ? void 0 : o.title}`,
|
|
188
182
|
class: "references-navigation t-doc__sidebar"
|
|
@@ -191,9 +185,9 @@ const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
191
185
|
m(l(Ee), null, {
|
|
192
186
|
default: v(() => [
|
|
193
187
|
m(l(Ne), {
|
|
194
|
-
operationsSorter:
|
|
188
|
+
operationsSorter: t.value.operationsSorter,
|
|
195
189
|
parsedSpec: e.parsedSpec,
|
|
196
|
-
tagsSorter:
|
|
190
|
+
tagsSorter: t.value.tagsSorter
|
|
197
191
|
}, {
|
|
198
192
|
"sidebar-start": v(() => [
|
|
199
193
|
c(e.$slots, "sidebar-start", p(f(d.value)), void 0, !0)
|
|
@@ -207,23 +201,23 @@ const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
207
201
|
_: 3
|
|
208
202
|
})
|
|
209
203
|
])
|
|
210
|
-
], 8,
|
|
204
|
+
], 8, Ke)) : O("", !0),
|
|
211
205
|
Se(u("div", qe, [
|
|
212
206
|
u("div", Je, [
|
|
213
207
|
c(e.$slots, "editor", p(f(d.value)), void 0, !0)
|
|
214
208
|
])
|
|
215
209
|
], 512), [
|
|
216
|
-
[
|
|
210
|
+
[he, t.value.isEditable]
|
|
217
211
|
]),
|
|
218
|
-
oe.value ? (y(), C(
|
|
212
|
+
oe.value ? (y(), C(D, { key: 1 }, [
|
|
219
213
|
u("main", {
|
|
220
|
-
"aria-label": `Open API Documentation for ${(
|
|
214
|
+
"aria-label": `Open API Documentation for ${(s = e.parsedSpec.info) == null ? void 0 : s.title}`,
|
|
221
215
|
class: "references-rendered"
|
|
222
216
|
}, [
|
|
223
217
|
m(l(Ue), {
|
|
224
|
-
layout:
|
|
218
|
+
layout: t.value.layout,
|
|
225
219
|
parsedSpec: e.parsedSpec
|
|
226
|
-
},
|
|
220
|
+
}, ge({
|
|
227
221
|
start: v(() => [
|
|
228
222
|
c(e.$slots, "content-start", p(f(d.value)), void 0, !0)
|
|
229
223
|
]),
|
|
@@ -232,17 +226,17 @@ const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
232
226
|
]),
|
|
233
227
|
_: 2
|
|
234
228
|
}, [
|
|
235
|
-
(
|
|
229
|
+
(r = t.value) != null && r.isEditable ? {
|
|
236
230
|
name: "empty-state",
|
|
237
231
|
fn: v(() => {
|
|
238
232
|
var n;
|
|
239
233
|
return [
|
|
240
|
-
m(
|
|
241
|
-
theme: ((n =
|
|
242
|
-
onChangeTheme:
|
|
243
|
-
onLinkSwaggerFile:
|
|
244
|
-
onLoadSwaggerFile:
|
|
245
|
-
onUpdateContent:
|
|
234
|
+
m(Ae, {
|
|
235
|
+
theme: ((n = t.value) == null ? void 0 : n.theme) || "default",
|
|
236
|
+
onChangeTheme: a[0] || (a[0] = (h) => e.$emit("changeTheme", h)),
|
|
237
|
+
onLinkSwaggerFile: a[1] || (a[1] = (h) => e.$emit("linkSwaggerFile")),
|
|
238
|
+
onLoadSwaggerFile: a[2] || (a[2] = (h) => e.$emit("loadSwaggerFile")),
|
|
239
|
+
onUpdateContent: a[3] || (a[3] = (h) => e.$emit("updateContent", h))
|
|
246
240
|
}, null, 8, ["theme"])
|
|
247
241
|
];
|
|
248
242
|
}),
|
|
@@ -254,9 +248,9 @@ const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
|
|
|
254
248
|
c(e.$slots, "footer", p(f(d.value)), void 0, !0)
|
|
255
249
|
])) : O("", !0)
|
|
256
250
|
], 64)) : O("", !0),
|
|
257
|
-
m(l(
|
|
251
|
+
m(l(ze), { configuration: t.value }, null, 8, ["configuration"])
|
|
258
252
|
], 38),
|
|
259
|
-
m(l(
|
|
253
|
+
m(l(Le))
|
|
260
254
|
], 64);
|
|
261
255
|
};
|
|
262
256
|
}
|
|
@@ -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":";AA2SA,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 a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-52907e39"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,74 +1,82 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { TabGroup as
|
|
3
|
-
import
|
|
4
|
-
import { useFeaturedHttpClients as
|
|
5
|
-
import { useHttpClientStore as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as v, ref as I, useId as p, watch as P, unref as e, openBlock as n, createElementBlock as d, createVNode as l, withCtx as i, createElementVNode as K, Fragment as L, renderList as N, createBlock as V, createTextVNode as B, toDisplayString as o, createCommentVNode as F } from "vue";
|
|
2
|
+
import { TabGroup as H, TabList as S, TabPanels as w, TabPanel as E } from "@headlessui/vue";
|
|
3
|
+
import D from "./ClientSelector.vue.js";
|
|
4
|
+
import { useFeaturedHttpClients as G } from "./useFeaturedHttpClients.js";
|
|
5
|
+
import { useHttpClientStore as j } from "../../../stores/useHttpClientStore.js";
|
|
6
|
+
const q = { key: 0 }, z = ["id"], A = ["id"], W = /* @__PURE__ */ v({
|
|
7
7
|
__name: "ClientLibraries",
|
|
8
|
-
setup(
|
|
8
|
+
setup(J) {
|
|
9
9
|
const {
|
|
10
10
|
availableTargets: _,
|
|
11
|
-
httpTargetTitle:
|
|
12
|
-
httpClientTitle:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
httpTargetTitle: b,
|
|
12
|
+
httpClientTitle: h,
|
|
13
|
+
getClientTitle: C,
|
|
14
|
+
getTargetTitle: g,
|
|
15
|
+
httpClient: s,
|
|
16
|
+
setHttpClient: T
|
|
17
|
+
} = j(), { featuredClients: r, isFeatured: y } = G(), c = I(0), u = p(), f = p();
|
|
18
|
+
P(
|
|
19
|
+
s,
|
|
20
|
+
(t) => {
|
|
21
|
+
t && (c.value = r.findIndex(
|
|
22
|
+
(a) => a.targetKey === t.targetKey && a.clientKey === t.clientKey
|
|
23
|
+
));
|
|
20
24
|
},
|
|
21
25
|
{ immediate: !0 }
|
|
22
26
|
);
|
|
23
|
-
function
|
|
24
|
-
const
|
|
25
|
-
|
|
27
|
+
function x(t) {
|
|
28
|
+
const a = r[t];
|
|
29
|
+
a && T(a);
|
|
26
30
|
}
|
|
27
|
-
return (
|
|
28
|
-
l(e(
|
|
31
|
+
return (t, a) => e(_).length ? (n(), d("div", q, [
|
|
32
|
+
l(e(H), {
|
|
29
33
|
manual: "",
|
|
30
|
-
selectedIndex:
|
|
31
|
-
onChange:
|
|
34
|
+
selectedIndex: c.value,
|
|
35
|
+
onChange: x
|
|
32
36
|
}, {
|
|
33
37
|
default: i(() => [
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
K("div", {
|
|
39
|
+
id: e(u),
|
|
40
|
+
class: "client-libraries-heading"
|
|
41
|
+
}, " Client Libraries ", 8, z),
|
|
42
|
+
l(e(S), {
|
|
43
|
+
"aria-labelledby": e(u),
|
|
44
|
+
class: "client-libraries-list"
|
|
45
|
+
}, {
|
|
36
46
|
default: i(() => [
|
|
37
|
-
l(
|
|
47
|
+
l(D, {
|
|
38
48
|
featured: e(r),
|
|
39
|
-
morePanel: e(
|
|
49
|
+
morePanel: e(f)
|
|
40
50
|
}, null, 8, ["featured", "morePanel"])
|
|
41
51
|
]),
|
|
42
52
|
_: 1
|
|
43
|
-
}),
|
|
44
|
-
l(e(
|
|
53
|
+
}, 8, ["aria-labelledby"]),
|
|
54
|
+
l(e(w), null, {
|
|
45
55
|
default: i(() => [
|
|
46
|
-
e(
|
|
47
|
-
key:
|
|
48
|
-
class: "selected-client card-footer -outline-offset-2"
|
|
49
|
-
muted: ""
|
|
56
|
+
e(s) && e(y)(e(s)) ? (n(!0), d(L, { key: 0 }, N(e(r), (m, k) => (n(), V(e(E), {
|
|
57
|
+
key: k,
|
|
58
|
+
class: "selected-client card-footer -outline-offset-2"
|
|
50
59
|
}, {
|
|
51
60
|
default: i(() => [
|
|
52
|
-
|
|
61
|
+
B(o(e(C)(m)) + " " + o(e(g)(m)), 1)
|
|
53
62
|
]),
|
|
54
63
|
_: 2
|
|
55
|
-
}, 1024))), 128)) : (
|
|
64
|
+
}, 1024))), 128)) : (n(), d("div", {
|
|
56
65
|
key: 1,
|
|
57
|
-
id: e(
|
|
66
|
+
id: e(f),
|
|
58
67
|
class: "selected-client card-footer -outline-offset-2",
|
|
59
|
-
muted: "",
|
|
60
68
|
role: "tabpanel",
|
|
61
69
|
tabindex: "0"
|
|
62
|
-
}, o(e(
|
|
70
|
+
}, o(e(h)) + " " + o(e(b)), 9, A))
|
|
63
71
|
]),
|
|
64
72
|
_: 1
|
|
65
73
|
})
|
|
66
74
|
]),
|
|
67
75
|
_: 1
|
|
68
76
|
}, 8, ["selectedIndex"])
|
|
69
|
-
])) :
|
|
77
|
+
])) : F("", !0);
|
|
70
78
|
}
|
|
71
79
|
});
|
|
72
80
|
export {
|
|
73
|
-
|
|
81
|
+
W as default
|
|
74
82
|
};
|
|
@@ -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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0a0f8a46"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -16,8 +16,7 @@ const F = { class: "client-libraries-text" }, H = ["aria-controls", "value"], I
|
|
|
16
16
|
xmlns: "http://www.w3.org/2000/svg"
|
|
17
17
|
}, j = {
|
|
18
18
|
key: 0,
|
|
19
|
-
"
|
|
20
|
-
class: "client-libraries-text"
|
|
19
|
+
class: "client-libraries-text client-libraries-text-more"
|
|
21
20
|
}, q = /* @__PURE__ */ S({
|
|
22
21
|
__name: "ClientSelector",
|
|
23
22
|
props: {
|
|
@@ -30,17 +29,17 @@ const F = { class: "client-libraries-text" }, H = ["aria-controls", "value"], I
|
|
|
30
29
|
availableTargets: p,
|
|
31
30
|
getClientTitle: y,
|
|
32
31
|
getTargetTitle: k
|
|
33
|
-
} = M(), { featuredClients: K, isFeatured: _ } = $(),
|
|
32
|
+
} = M(), { featuredClients: K, isFeatured: _ } = $(), C = w(), m = (s) => `programming-language-${s === "js" ? "javascript" : s}`, h = (s) => s.targetKey === l.targetKey && s.clientKey === l.clientKey;
|
|
34
33
|
return (s, a) => (i(), r("div", {
|
|
35
34
|
ref_key: "containerRef",
|
|
36
|
-
ref:
|
|
35
|
+
ref: C,
|
|
37
36
|
class: "client-libraries-content"
|
|
38
37
|
}, [
|
|
39
38
|
(i(!0), r(u, null, d(e(K), (t) => (i(), x(e(T), {
|
|
40
39
|
key: t.clientKey,
|
|
41
40
|
"aria-hidden": "true",
|
|
42
41
|
class: c(["client-libraries rendered-code-sdks", {
|
|
43
|
-
"client-libraries__active":
|
|
42
|
+
"client-libraries__active": h(t)
|
|
44
43
|
}])
|
|
45
44
|
}, {
|
|
46
45
|
default: N(() => [
|
|
@@ -61,7 +60,6 @@ const F = { class: "client-libraries-text" }, H = ["aria-controls", "value"], I
|
|
|
61
60
|
"client-libraries__active": e(l) && !e(_)(e(l))
|
|
62
61
|
}])
|
|
63
62
|
}, [
|
|
64
|
-
a[2] || (a[2] = n("span", { class: "sr-only" }, "Select from all clients", -1)),
|
|
65
63
|
n("select", {
|
|
66
64
|
"aria-controls": s.morePanel,
|
|
67
65
|
class: "language-select",
|
|
@@ -106,7 +104,8 @@ const F = { class: "client-libraries-text" }, H = ["aria-controls", "value"], I
|
|
|
106
104
|
], -1)
|
|
107
105
|
])))
|
|
108
106
|
]),
|
|
109
|
-
e(p).length ? (i(), r("span", j, " More ")) : B("", !0)
|
|
107
|
+
e(p).length ? (i(), r("span", j, " More ")) : B("", !0),
|
|
108
|
+
a[2] || (a[2] = n("span", { class: "sr-only" }, "Select from all clients", -1))
|
|
110
109
|
], 2)
|
|
111
110
|
], 512));
|
|
112
111
|
}
|
|
@@ -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":"AAoRA,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;AAoDJ,iBAAS,cAAc;WA6NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YArTR,QAAQ,GAAG,SAAS;6EA4T/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
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4f85cfb1"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
_ as default
|
|
8
8
|
};
|