@scalar/api-reference 1.35.2 → 1.35.4
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 +31 -0
- package/dist/browser/standalone.js +9636 -9786
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts +2 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +14 -11
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +70 -72
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +3 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.d.ts +0 -2
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +80 -80
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts +5 -2
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue2.js +43 -45
- package/dist/components/Content/Models/ClassicLayout.vue3.js +2 -2
- package/dist/components/Content/Models/Models.vue.d.ts +2 -2
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +27 -20
- package/dist/components/Content/Models/ModernLayout.vue.d.ts +5 -2
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
- package/dist/components/Content/Models/ModernLayout.vue2.js +48 -52
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +3 -2
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +33 -32
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +2 -2
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +10 -22
- 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 +93 -141
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +19 -4
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +83 -138
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +2 -13
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +66 -92
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +19 -17
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +9 -14
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +62 -75
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +8 -13
- 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 +120 -140
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +9 -4
- 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 +173 -204
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts +11 -0
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-ref-name.js +11 -0
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +13 -3
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-schema-type.js +34 -13
- package/dist/components/Content/Schema/helpers/is-type-object.d.ts +4 -2
- package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -4
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +130 -84
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts +5 -5
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +40 -31
- package/dist/components/Content/Schema/helpers/schema-composition.d.ts +0 -8
- package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-composition.js +2 -6
- package/dist/components/Content/Schema/helpers/schema-name.d.ts +8 -17
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +24 -33
- package/dist/features/Operation/Operation.vue.d.ts +3 -4
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +54 -73
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +10 -11
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +35 -43
- package/dist/features/Operation/components/{ParameterHeaders.vue.d.ts → Header.vue.d.ts} +4 -5
- package/dist/features/Operation/components/Header.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/Header.vue.js +23 -0
- package/dist/features/Operation/components/Header.vue2.js +4 -0
- package/dist/features/Operation/components/Headers.vue.d.ts +8 -0
- package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/Headers.vue.js +7 -0
- package/dist/features/Operation/components/Headers.vue2.js +61 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -10
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +23 -33
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +3 -6
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +22 -19
- package/dist/features/Operation/components/ParameterList.vue.d.ts +3 -10
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +35 -5
- package/dist/features/Operation/components/ParameterList.vue2.js +2 -38
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +4 -10
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue2.js +78 -74
- package/dist/features/Operation/components/RequestBody.vue.d.ts +3 -8
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +78 -82
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +0 -4
- 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 +35 -36
- package/dist/features/Operation/components/callbacks/Callback.vue3.js +2 -2
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +0 -2
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +13 -15
- package/dist/features/Operation/helpers/combine-params.d.ts +1 -1
- package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -1
- package/dist/features/Operation/helpers/combine-params.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -9
- 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 +75 -82
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -10
- 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 +96 -103
- package/dist/features/api-client-modal/useApiClient.d.ts +90 -90
- package/dist/index.js +1 -1
- package/dist/libs/openapi.d.ts +1 -13
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +39 -56
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +10 -4
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +22 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/package.json +13 -13
- package/dist/components/Content/Schema/Schema.preview.d.ts +0 -1078
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +0 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +0 -12
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -49
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -4
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +0 -13
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +0 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +0 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.js +0 -7
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +0 -64
- package/dist/features/Operation/components/ParameterList.vue3.js +0 -4
- package/dist/features/Operation/hooks/useResponses.d.ts +0 -17
- package/dist/features/Operation/hooks/useResponses.d.ts.map +0 -1
- package/dist/features/Operation/hooks/useResponses.js +0 -19
- package/dist/hooks/useDiscriminator.d.ts +0 -53
- package/dist/hooks/useDiscriminator.d.ts.map +0 -1
- package/dist/hooks/useDiscriminator.js +0 -149
- package/dist/hooks/useOperationDiscriminator.d.ts +0 -8
- package/dist/hooks/useOperationDiscriminator.d.ts.map +0 -1
- package/dist/hooks/useOperationDiscriminator.js +0 -57
- /package/dist/features/Operation/components/{ParameterHeaders.vue3.js → Headers.vue3.js} +0 -0
|
@@ -8,10 +8,11 @@ type __VLS_Props = {
|
|
|
8
8
|
};
|
|
9
9
|
/** These slots render in their respective slots in the underlying ApiReferenceWorkspace component */
|
|
10
10
|
type __VLS_Slots = {
|
|
11
|
-
|
|
11
|
+
'content-start'?(): unknown;
|
|
12
12
|
'content-end'?(): unknown;
|
|
13
13
|
'sidebar-start'?(): unknown;
|
|
14
14
|
'sidebar-end'?(): unknown;
|
|
15
|
+
footer?(): unknown;
|
|
15
16
|
};
|
|
16
17
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
18
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAkDA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAK/E,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,qGAAqG;AACrG,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,aAAa,CAAC,IAAI,OAAO,CAAA;IACzB,eAAe,CAAC,IAAI,OAAO,CAAA;IAC3B,aAAa,CAAC,IAAI,OAAO,CAAA;IACzB,MAAM,CAAC,IAAI,OAAO,CAAA;CACnB,CAAC;AAiFF,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,34 +1,37 @@
|
|
|
1
|
-
import { defineComponent as n, createBlock as s, openBlock as
|
|
1
|
+
import { defineComponent as n, createBlock as s, openBlock as a, unref as i, withCtx as e, renderSlot as t } from "vue";
|
|
2
2
|
import { createWorkspaceStore as f } from "@scalar/workspace-store/client";
|
|
3
3
|
import p from "../v2/ApiReferenceWorkspace.vue.js";
|
|
4
4
|
import "../v2/ApiReferenceWorkspace.vue2.js";
|
|
5
|
-
const
|
|
5
|
+
const $ = /* @__PURE__ */ n({
|
|
6
6
|
__name: "ApiReference",
|
|
7
7
|
props: {
|
|
8
8
|
configuration: {}
|
|
9
9
|
},
|
|
10
10
|
setup(c) {
|
|
11
|
-
const
|
|
12
|
-
return typeof window < "u" && (window.dataDumpWorkspace = () =>
|
|
11
|
+
const r = f();
|
|
12
|
+
return typeof window < "u" && (window.dataDumpWorkspace = () => r), (o, d) => (a(), s(p, {
|
|
13
13
|
configuration: o.configuration,
|
|
14
|
-
store:
|
|
14
|
+
store: i(r)
|
|
15
15
|
}, {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
"content-start": e(() => [
|
|
17
|
+
t(o.$slots, "content-start")
|
|
18
18
|
]),
|
|
19
19
|
"content-end": e(() => [
|
|
20
|
-
|
|
20
|
+
t(o.$slots, "content-end")
|
|
21
21
|
]),
|
|
22
22
|
"sidebar-start": e(() => [
|
|
23
|
-
|
|
23
|
+
t(o.$slots, "sidebar-start")
|
|
24
24
|
]),
|
|
25
25
|
"sidebar-end": e(() => [
|
|
26
|
-
|
|
26
|
+
t(o.$slots, "sidebar-end")
|
|
27
|
+
]),
|
|
28
|
+
footer: e(() => [
|
|
29
|
+
t(o.$slots, "footer")
|
|
27
30
|
]),
|
|
28
31
|
_: 3
|
|
29
32
|
}, 8, ["configuration", "store"]));
|
|
30
33
|
}
|
|
31
34
|
});
|
|
32
35
|
export {
|
|
33
|
-
|
|
36
|
+
$ as default
|
|
34
37
|
};
|
|
@@ -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+qBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA4BvB,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AA0ChB,KAAK,WAAW,GAAG;KACd,CAAC,IAAI,mBAAmB,GAAG,CAAC,KAAK,EAAE,kBAAkB,KAAK,GAAG;CAC/D,GAAG;IAAE,mBAAmB,EAAE,GAAG,CAAA;CAAE,CAAC;AA8oBnC,QAAA,MAAM,eAAe;;YA9qBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAqrB9D,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -4,7 +4,7 @@ import "./ApiReferenceLayout.vue4.js";
|
|
|
4
4
|
import "./ApiReferenceLayout.vue5.js";
|
|
5
5
|
import "./ApiReferenceLayout.vue6.js";
|
|
6
6
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const
|
|
7
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3cb06588"]]);
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
c as default
|
|
10
10
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as le, computed as $, provide as T, ref as D, onBeforeMount as ne, onMounted as de, watch as B, onUnmounted as ue, useId as ce, createElementBlock as f, openBlock as s, Fragment as Y, createElementVNode as p, createVNode as v, normalizeStyle as me, normalizeClass as fe, unref as r, createCommentVNode as i, withDirectives as ve, createBlock as w, renderSlot as d, normalizeProps as h, guardReactiveProps as S, withCtx as l, vShow as ge, createSlots as pe } from "vue";
|
|
2
2
|
import { provideUseId as he } from "@headlessui/vue";
|
|
3
3
|
import { OpenApiClientButton as Se } from "@scalar/api-client/components";
|
|
4
4
|
import { LAYOUT_SYMBOL as be } from "@scalar/api-client/hooks";
|
|
@@ -29,13 +29,13 @@ import Je from "../features/api-client-modal/ApiClientModal.vue.js";
|
|
|
29
29
|
const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label"], et = { class: "references-navigation-list" }, tt = { key: 0 }, ot = {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: "scalar-api-references-standalone-search"
|
|
32
|
-
}, rt = { key: 1 }, at = { class: "references-editor" }, st = { class: "references-editor-textarea" }, it = ["aria-label"],
|
|
32
|
+
}, rt = { key: 1 }, at = { class: "references-editor" }, st = { class: "references-editor-textarea" }, it = ["aria-label"], lt = {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "w-64 *:!p-0 empty:hidden"
|
|
35
|
-
},
|
|
35
|
+
}, nt = {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "references-footer"
|
|
38
|
-
}, Ft = /* @__PURE__ */
|
|
38
|
+
}, Ft = /* @__PURE__ */ le({
|
|
39
39
|
inheritAttrs: !1,
|
|
40
40
|
__name: "ApiReferenceLayout",
|
|
41
41
|
props: {
|
|
@@ -52,7 +52,7 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
|
|
|
52
52
|
() => Le.parse(M.configuration)
|
|
53
53
|
), { initializeToasts: G, toast: Q } = Oe();
|
|
54
54
|
G((e) => Q(e));
|
|
55
|
-
const { dereferencedDocument:
|
|
55
|
+
const { dereferencedDocument: b, workspaceStore: O, activeEntitiesStore: R } = ze({
|
|
56
56
|
configuration: t,
|
|
57
57
|
dereferencedDocument: M.dereferencedDocument,
|
|
58
58
|
originalDocument: M.originalDocument
|
|
@@ -62,7 +62,7 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
|
|
|
62
62
|
He(y, (e) => {
|
|
63
63
|
j.value = e[0] ? e[0].contentRect.height + "px" : "100dvh";
|
|
64
64
|
});
|
|
65
|
-
const q = $(Ee), _ = Ve(t), { isSidebarOpen: E, setCollapsedSidebarItem: I, scrollToOperation: J, items: H } = Ge(
|
|
65
|
+
const q = $(Ee), _ = Ve(t), { isSidebarOpen: E, setCollapsedSidebarItem: I, scrollToOperation: J, items: H } = Ge(b, {
|
|
66
66
|
..._,
|
|
67
67
|
config: t
|
|
68
68
|
}), {
|
|
@@ -81,7 +81,7 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
|
|
|
81
81
|
);
|
|
82
82
|
e && history.replaceState({}, "", e);
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
ne(() => {
|
|
85
85
|
F(), ke();
|
|
86
86
|
});
|
|
87
87
|
const P = async (e) => {
|
|
@@ -89,9 +89,9 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
|
|
|
89
89
|
A.value = !1, F(), e ? J(e) : (o = y.value) == null || o.scrollTo(0, 0), await De(100), A.value = !0;
|
|
90
90
|
}, N = D(0);
|
|
91
91
|
de(() => {
|
|
92
|
-
var c, a,
|
|
92
|
+
var c, a, g;
|
|
93
93
|
history.scrollRestoration = "manual";
|
|
94
|
-
const e = (a = (c = y.value) == null ? void 0 : c.parentElement) == null ? void 0 : a.getBoundingClientRect(), o = (
|
|
94
|
+
const e = (a = (c = y.value) == null ? void 0 : c.parentElement) == null ? void 0 : a.getBoundingClientRect(), o = (g = y.value) == null ? void 0 : g.getBoundingClientRect();
|
|
95
95
|
if (e && o) {
|
|
96
96
|
const k = o.top - e.top;
|
|
97
97
|
N.value = k < 2 ? 0 : k;
|
|
@@ -105,7 +105,7 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
|
|
|
105
105
|
), U = Ae(() => {
|
|
106
106
|
window.scrollY < 50 && Ne.value && te("");
|
|
107
107
|
}), re = D(!1);
|
|
108
|
-
B(
|
|
108
|
+
B(b, (e) => {
|
|
109
109
|
var o, c;
|
|
110
110
|
if (C.value) {
|
|
111
111
|
const a = x(C.value);
|
|
@@ -114,7 +114,7 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
|
|
|
114
114
|
const a = (c = e.tags) == null ? void 0 : c[0];
|
|
115
115
|
a && I(ee(a), !0);
|
|
116
116
|
} else {
|
|
117
|
-
const a = H.value.entries.find((
|
|
117
|
+
const a = H.value.entries.find((g) => "tag" in g);
|
|
118
118
|
a && I(a.id, !0);
|
|
119
119
|
}
|
|
120
120
|
re.value = !0;
|
|
@@ -144,10 +144,10 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
|
|
|
144
144
|
}), B(C, (e, o) => {
|
|
145
145
|
e && e !== o && (E.value = !1);
|
|
146
146
|
}), Ye(M.store, O, R, y), (e, o) => {
|
|
147
|
-
var c, a,
|
|
147
|
+
var c, a, g, k, K;
|
|
148
148
|
return s(), f(Y, null, [
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
p("div", { innerHTML: ae.value }, null, 8, Xe),
|
|
150
|
+
p("div", {
|
|
151
151
|
ref_key: "documentEl",
|
|
152
152
|
ref: y,
|
|
153
153
|
class: fe(["scalar-app scalar-api-reference references-layout", [
|
|
@@ -165,27 +165,27 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
|
|
|
165
165
|
"--scalar-y-offset": `var(--scalar-custom-header-height, ${N.value}px)`
|
|
166
166
|
})
|
|
167
167
|
}, [
|
|
168
|
-
|
|
168
|
+
p("div", Ze, [
|
|
169
169
|
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (s(), w(Ue, {
|
|
170
170
|
key: 0,
|
|
171
171
|
breadcrumb: u.value.breadcrumb
|
|
172
172
|
}, null, 8, ["breadcrumb"])) : i("", !0),
|
|
173
|
-
d(e.$slots, "header", S(
|
|
173
|
+
d(e.$slots, "header", h(S(u.value)), void 0, !0)
|
|
174
174
|
]),
|
|
175
175
|
t.value.showSidebar ? (s(), f("aside", {
|
|
176
176
|
key: 0,
|
|
177
|
-
"aria-label": `Sidebar for ${(a = (c = r(
|
|
177
|
+
"aria-label": `Sidebar for ${(a = (c = r(b)) == null ? void 0 : c.info) == null ? void 0 : a.title}`,
|
|
178
178
|
class: "references-navigation t-doc__sidebar"
|
|
179
179
|
}, [
|
|
180
|
-
|
|
180
|
+
p("div", et, [
|
|
181
181
|
v(r($e), null, {
|
|
182
|
-
default:
|
|
183
|
-
var
|
|
182
|
+
default: l(() => {
|
|
183
|
+
var n, m;
|
|
184
184
|
return [
|
|
185
185
|
v(r(je), {
|
|
186
|
-
title: ((m = (
|
|
186
|
+
title: ((m = (n = r(b)) == null ? void 0 : n.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
|
|
187
187
|
}, {
|
|
188
|
-
"sidebar-start":
|
|
188
|
+
"sidebar-start": l(() => {
|
|
189
189
|
var L, V;
|
|
190
190
|
return [
|
|
191
191
|
e.$slots["document-selector"] ? (s(), f("div", tt, [
|
|
@@ -197,20 +197,20 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
|
|
|
197
197
|
searchHotKey: (V = t.value) == null ? void 0 : V.searchHotKey
|
|
198
198
|
}, null, 8, ["hideModels", "searchHotKey"])
|
|
199
199
|
])),
|
|
200
|
-
d(e.$slots, "sidebar-start", S(
|
|
200
|
+
d(e.$slots, "sidebar-start", h(S(u.value)), void 0, !0)
|
|
201
201
|
];
|
|
202
202
|
}),
|
|
203
|
-
"sidebar-end":
|
|
204
|
-
d(e.$slots, "sidebar-end", S(
|
|
203
|
+
"sidebar-end": l(() => [
|
|
204
|
+
d(e.$slots, "sidebar-end", h(S(u.value)), () => [
|
|
205
205
|
v(r(Te), { class: "darklight-reference" }, {
|
|
206
|
-
toggle:
|
|
206
|
+
toggle: l(() => [
|
|
207
207
|
t.value.hideDarkModeToggle ? (s(), f("span", rt)) : (s(), w(r(Me), {
|
|
208
208
|
key: 0,
|
|
209
209
|
modelValue: e.isDark,
|
|
210
210
|
"onUpdate:modelValue": o[0] || (o[0] = (L) => e.$emit("toggleDarkMode"))
|
|
211
211
|
}, null, 8, ["modelValue"]))
|
|
212
212
|
]),
|
|
213
|
-
default:
|
|
213
|
+
default: l(() => [
|
|
214
214
|
t.value.hideClientButton ? i("", !0) : (s(), w(r(Se), {
|
|
215
215
|
key: 0,
|
|
216
216
|
buttonSource: "sidebar",
|
|
@@ -231,66 +231,64 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
|
|
|
231
231
|
})
|
|
232
232
|
])
|
|
233
233
|
], 8, xe)) : i("", !0),
|
|
234
|
-
ve(
|
|
235
|
-
|
|
236
|
-
d(e.$slots, "editor", S(
|
|
234
|
+
ve(p("div", at, [
|
|
235
|
+
p("div", st, [
|
|
236
|
+
d(e.$slots, "editor", h(S(u.value)), void 0, !0)
|
|
237
237
|
])
|
|
238
238
|
], 512), [
|
|
239
239
|
[ge, t.value.isEditable]
|
|
240
240
|
]),
|
|
241
241
|
oe.value ? (s(), f(Y, { key: 1 }, [
|
|
242
|
-
|
|
243
|
-
"aria-label": `Open API Documentation for ${(k = (
|
|
242
|
+
p("main", {
|
|
243
|
+
"aria-label": `Open API Documentation for ${(k = (g = r(b)) == null ? void 0 : g.info) == null ? void 0 : k.title}`,
|
|
244
244
|
class: "references-rendered"
|
|
245
245
|
}, [
|
|
246
246
|
v(r(qe), {
|
|
247
247
|
config: t.value,
|
|
248
|
-
document: r(g),
|
|
249
248
|
store: e.store
|
|
250
249
|
}, pe({
|
|
251
|
-
start:
|
|
252
|
-
d(e.$slots, "content-start", S(
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
], !0)
|
|
250
|
+
start: l(() => [
|
|
251
|
+
d(e.$slots, "content-start", h(S(u.value)), void 0, !0),
|
|
252
|
+
t.value.layout === "classic" ? (s(), w(Fe, { key: 0 }, {
|
|
253
|
+
"dark-mode-toggle": l(() => [
|
|
254
|
+
t.value.hideDarkModeToggle ? i("", !0) : (s(), w(r(Ce), {
|
|
255
|
+
key: 0,
|
|
256
|
+
class: "text-c-2 hover:text-c-1",
|
|
257
|
+
mode: e.isDark ? "dark" : "light",
|
|
258
|
+
style: { transform: "scale(1.4)" },
|
|
259
|
+
variant: "icon",
|
|
260
|
+
onClick: o[1] || (o[1] = (n) => e.$emit("toggleDarkMode"))
|
|
261
|
+
}, null, 8, ["mode"]))
|
|
262
|
+
]),
|
|
263
|
+
default: l(() => {
|
|
264
|
+
var n;
|
|
265
|
+
return [
|
|
266
|
+
e.$slots["document-selector"] ? (s(), f("div", lt, [
|
|
267
|
+
d(e.$slots, "document-selector", {}, void 0, !0)
|
|
268
|
+
])) : i("", !0),
|
|
269
|
+
t.value.hideSearch ? i("", !0) : (s(), w(r(z), {
|
|
270
|
+
key: 1,
|
|
271
|
+
class: "t-doc__sidebar max-w-64",
|
|
272
|
+
hideModels: (n = t.value) == null ? void 0 : n.hideModels,
|
|
273
|
+
searchHotKey: t.value.searchHotKey
|
|
274
|
+
}, null, 8, ["hideModels", "searchHotKey"]))
|
|
275
|
+
];
|
|
276
|
+
}),
|
|
277
|
+
_: 3
|
|
278
|
+
})) : i("", !0)
|
|
281
279
|
]),
|
|
282
|
-
end:
|
|
283
|
-
d(e.$slots, "content-end", S(
|
|
280
|
+
end: l(() => [
|
|
281
|
+
d(e.$slots, "content-end", h(S(u.value)), void 0, !0)
|
|
284
282
|
]),
|
|
285
283
|
_: 2
|
|
286
284
|
}, [
|
|
287
285
|
(K = t.value) != null && K.isEditable ? {
|
|
288
286
|
name: "empty-state",
|
|
289
|
-
fn:
|
|
290
|
-
var
|
|
287
|
+
fn: l(() => {
|
|
288
|
+
var n;
|
|
291
289
|
return [
|
|
292
290
|
v(Pe, {
|
|
293
|
-
theme: ((
|
|
291
|
+
theme: ((n = t.value) == null ? void 0 : n.theme) || "default",
|
|
294
292
|
onChangeTheme: o[2] || (o[2] = (m) => e.$emit("changeTheme", m)),
|
|
295
293
|
onLinkSwaggerFile: o[3] || (o[3] = (m) => e.$emit("linkSwaggerFile")),
|
|
296
294
|
onLoadSwaggerFile: o[4] || (o[4] = (m) => e.$emit("loadSwaggerFile")),
|
|
@@ -300,15 +298,15 @@ const Xe = ["innerHTML"], Ze = { class: "references-header" }, xe = ["aria-label
|
|
|
300
298
|
}),
|
|
301
299
|
key: "0"
|
|
302
300
|
} : void 0
|
|
303
|
-
]), 1032, ["config", "
|
|
301
|
+
]), 1032, ["config", "store"])
|
|
304
302
|
], 8, it),
|
|
305
|
-
e.$slots.footer ? (s(), f("div",
|
|
306
|
-
d(e.$slots, "footer", S(
|
|
303
|
+
e.$slots.footer ? (s(), f("div", nt, [
|
|
304
|
+
d(e.$slots, "footer", h(S(u.value)), void 0, !0)
|
|
307
305
|
])) : i("", !0)
|
|
308
306
|
], 64)) : i("", !0),
|
|
309
307
|
v(r(Je), {
|
|
310
308
|
configuration: t.value,
|
|
311
|
-
dereferencedDocument: r(
|
|
309
|
+
dereferencedDocument: r(b)
|
|
312
310
|
}, null, 8, ["configuration", "dereferencedDocument"])
|
|
313
311
|
], 6),
|
|
314
312
|
v(r(Re))
|
|
@@ -9,6 +9,8 @@ type __VLS_Props = {
|
|
|
9
9
|
/** The currently selected Http Client */
|
|
10
10
|
selectedClient?: AvailableClients[number];
|
|
11
11
|
};
|
|
12
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
12
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
13
|
+
selectedClientOption: import("vue").ComputedRef<import("../../../v2/blocks/scalar-request-example-block/types").ClientOption>;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
15
|
export default _default;
|
|
14
16
|
//# sourceMappingURL=ClientLibraries.vue.d.ts.map
|
|
@@ -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":"AA0MA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAIlF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAKvF,KAAK,WAAW,GAAG;IACjB,sCAAsC;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,yDAAyD;IACzD,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CAC1C,CAAC;;;;AA0RF,wBAOG"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
1
|
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
3
2
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
3
|
type __VLS_Props = {
|
|
5
|
-
document: OpenAPIV3_1.Document;
|
|
6
4
|
config: ApiReferenceConfiguration;
|
|
7
5
|
store: WorkspaceStore;
|
|
8
6
|
};
|
|
@@ -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":"AA4MA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAmBpE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AAwUF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAuC5C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|