@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
|
@@ -1,83 +1,82 @@
|
|
|
1
|
-
import { defineComponent as F, computed as
|
|
2
|
-
import { useWorkspace as W, useActiveEntities as
|
|
1
|
+
import { defineComponent as F, computed as l, createElementBlock as B, openBlock as c, Fragment as j, createVNode as i, createElementVNode as T, unref as t, renderSlot as v, createBlock as u, createCommentVNode as m, withCtx as o } from "vue";
|
|
2
|
+
import { useWorkspace as W, useActiveEntities as z } from "@scalar/api-client/store";
|
|
3
3
|
import { ScalarErrorBoundary as p } from "@scalar/components";
|
|
4
|
-
import { getSlugUid as
|
|
5
|
-
import
|
|
6
|
-
import { useFreezing as
|
|
7
|
-
import { useNavState as
|
|
8
|
-
import { generateClientOptions as
|
|
9
|
-
import { DEFAULT_INTRODUCTION_SLUG as
|
|
10
|
-
import { getXKeysFromObject as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
4
|
+
import { getSlugUid as G } from "@scalar/oas-utils/transforms";
|
|
5
|
+
import H from "./IntroductionSection.vue.js";
|
|
6
|
+
import { useFreezing as K } from "../../hooks/useFreezing.js";
|
|
7
|
+
import { useNavState as M } from "../../hooks/useNavState.js";
|
|
8
|
+
import { generateClientOptions as R } from "../../v2/blocks/scalar-request-example-block/helpers/generate-client-options.js";
|
|
9
|
+
import { DEFAULT_INTRODUCTION_SLUG as X } from "../../features/traverse-schema/helpers/traverse-description.js";
|
|
10
|
+
import { getXKeysFromObject as y } from "../../features/specification-extension/helpers.js";
|
|
11
|
+
import q from "../SectionFlare/SectionFlare.vue.js";
|
|
12
|
+
import J from "../../v2/blocks/scalar-info-block/components/InfoBlock.vue.js";
|
|
13
13
|
import g from "../../v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
14
|
+
import P from "../../v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
|
|
15
|
+
import Q from "../../v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
16
|
+
import Y from "../../v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
|
|
17
|
+
import Z from "./Operations/TraversedEntryContainer.vue.js";
|
|
18
|
+
import x from "./Models/Models.vue.js";
|
|
19
19
|
const _ = { class: "narrow-references-container" }, he = /* @__PURE__ */ F({
|
|
20
20
|
__name: "Content",
|
|
21
21
|
props: {
|
|
22
|
-
document: {},
|
|
23
22
|
config: {},
|
|
24
23
|
store: {}
|
|
25
24
|
},
|
|
26
|
-
setup(
|
|
27
|
-
|
|
28
|
-
const f =
|
|
29
|
-
() =>
|
|
30
|
-
), { getHeadingId: C } =
|
|
25
|
+
setup(a) {
|
|
26
|
+
K();
|
|
27
|
+
const f = l(
|
|
28
|
+
() => R(a.config.hiddenClients)
|
|
29
|
+
), { getHeadingId: C } = M(), E = l(
|
|
31
30
|
() => C({
|
|
32
|
-
slug:
|
|
31
|
+
slug: X,
|
|
33
32
|
depth: 1,
|
|
34
33
|
value: "Introduction"
|
|
35
34
|
})
|
|
36
|
-
), O =
|
|
37
|
-
() =>
|
|
38
|
-
), U =
|
|
35
|
+
), O = l(
|
|
36
|
+
() => y(a.store.workspace.activeDocument)
|
|
37
|
+
), U = l(
|
|
39
38
|
() => {
|
|
40
39
|
var e;
|
|
41
|
-
return
|
|
40
|
+
return y((e = a.store.workspace.activeDocument) == null ? void 0 : e.info);
|
|
42
41
|
}
|
|
43
|
-
), { collections: A, securitySchemes: I, servers:
|
|
42
|
+
), { collections: A, securitySchemes: I, servers: k } = W(), {
|
|
44
43
|
activeCollection: L,
|
|
45
44
|
activeEnvVariables: V,
|
|
46
45
|
activeEnvironment: $,
|
|
47
|
-
activeWorkspace:
|
|
48
|
-
} =
|
|
49
|
-
if (
|
|
50
|
-
const e = A[
|
|
46
|
+
activeWorkspace: S
|
|
47
|
+
} = z(), s = l(() => {
|
|
48
|
+
if (a.config.slug) {
|
|
49
|
+
const e = A[G(a.config.slug)];
|
|
51
50
|
if (e)
|
|
52
51
|
return e;
|
|
53
52
|
}
|
|
54
53
|
return L.value;
|
|
55
|
-
}), b =
|
|
54
|
+
}), b = l(() => {
|
|
56
55
|
if (s.value) {
|
|
57
56
|
if (s.value.selectedServerUid) {
|
|
58
|
-
const e =
|
|
57
|
+
const e = k[s.value.selectedServerUid];
|
|
59
58
|
if (e)
|
|
60
59
|
return e;
|
|
61
60
|
}
|
|
62
|
-
return
|
|
61
|
+
return k[s.value.servers[0]];
|
|
63
62
|
}
|
|
64
|
-
}), N = () =>
|
|
63
|
+
}), N = () => a.store.exportActiveDocument("json") ?? "{}";
|
|
65
64
|
return (e, ee) => {
|
|
66
65
|
var h;
|
|
67
|
-
return
|
|
68
|
-
|
|
66
|
+
return c(), B(j, null, [
|
|
67
|
+
i(t(q)),
|
|
69
68
|
T("div", _, [
|
|
70
69
|
v(e.$slots, "start"),
|
|
71
|
-
|
|
70
|
+
i(H, {
|
|
72
71
|
showEmptyState: !e.store.workspace.activeDocument
|
|
73
72
|
}, {
|
|
74
|
-
"empty-state":
|
|
73
|
+
"empty-state": o(() => [
|
|
75
74
|
v(e.$slots, "empty-state")
|
|
76
75
|
]),
|
|
77
|
-
default:
|
|
78
|
-
var
|
|
76
|
+
default: o(() => {
|
|
77
|
+
var w;
|
|
79
78
|
return [
|
|
80
|
-
e.store.workspace.activeDocument ? (
|
|
79
|
+
e.store.workspace.activeDocument ? (c(), u(t(J), {
|
|
81
80
|
key: 0,
|
|
82
81
|
id: E.value,
|
|
83
82
|
documentExtensions: O.value,
|
|
@@ -87,103 +86,104 @@ const _ = { class: "narrow-references-container" }, he = /* @__PURE__ */ F({
|
|
|
87
86
|
infoExtensions: U.value,
|
|
88
87
|
isLoading: e.config.isLoading,
|
|
89
88
|
layout: e.config.layout,
|
|
90
|
-
oasVersion: (
|
|
89
|
+
oasVersion: (w = e.store.workspace.activeDocument) == null ? void 0 : w["x-original-oas-version"],
|
|
91
90
|
onLoaded: e.config.onLoaded
|
|
92
91
|
}, {
|
|
93
|
-
selectors:
|
|
94
|
-
|
|
95
|
-
default:
|
|
96
|
-
var r,
|
|
92
|
+
selectors: o(() => [
|
|
93
|
+
i(t(p), null, {
|
|
94
|
+
default: o(() => {
|
|
95
|
+
var r, n;
|
|
97
96
|
return [
|
|
98
|
-
(
|
|
97
|
+
(n = (r = e.store.workspace.activeDocument) == null ? void 0 : r.servers) != null && n.length ? (c(), u(t(g), {
|
|
99
98
|
key: 0,
|
|
100
99
|
class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
|
|
101
100
|
}, {
|
|
102
|
-
default:
|
|
103
|
-
var
|
|
101
|
+
default: o(() => {
|
|
102
|
+
var d, D;
|
|
104
103
|
return [
|
|
105
|
-
|
|
106
|
-
servers: ((
|
|
107
|
-
xSelectedServer: (
|
|
104
|
+
i(t(P), {
|
|
105
|
+
servers: ((d = e.store.workspace.activeDocument) == null ? void 0 : d.servers) ?? [],
|
|
106
|
+
xSelectedServer: (D = e.store.workspace.activeDocument) == null ? void 0 : D["x-scalar-active-server"]
|
|
108
107
|
}, null, 8, ["servers", "xSelectedServer"])
|
|
109
108
|
];
|
|
110
109
|
}),
|
|
111
110
|
_: 1
|
|
112
|
-
})) :
|
|
111
|
+
})) : m("", !0)
|
|
113
112
|
];
|
|
114
113
|
}),
|
|
115
114
|
_: 1
|
|
116
115
|
}),
|
|
117
|
-
|
|
118
|
-
default:
|
|
119
|
-
s.value && t(
|
|
116
|
+
i(t(p), null, {
|
|
117
|
+
default: o(() => [
|
|
118
|
+
s.value && t(S) && Object.keys(t(I) ?? {}).length ? (c(), u(t(g), {
|
|
120
119
|
key: 0,
|
|
121
120
|
class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
|
|
122
121
|
}, {
|
|
123
|
-
default:
|
|
124
|
-
var r,
|
|
122
|
+
default: o(() => {
|
|
123
|
+
var r, n;
|
|
125
124
|
return [
|
|
126
|
-
|
|
125
|
+
i(t(Q), {
|
|
127
126
|
collection: s.value,
|
|
128
127
|
envVariables: t(V),
|
|
129
128
|
environment: t($),
|
|
130
129
|
layout: "reference",
|
|
131
130
|
persistAuth: (r = e.config) == null ? void 0 : r.persistAuth,
|
|
132
|
-
selectedSecuritySchemeUids: ((
|
|
131
|
+
selectedSecuritySchemeUids: ((n = s.value) == null ? void 0 : n.selectedSecuritySchemeUids) ?? [],
|
|
133
132
|
server: b.value,
|
|
134
133
|
title: "Authentication",
|
|
135
|
-
workspace: t(
|
|
134
|
+
workspace: t(S)
|
|
136
135
|
}, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
137
136
|
];
|
|
138
137
|
}),
|
|
139
138
|
_: 1
|
|
140
|
-
})) :
|
|
139
|
+
})) : m("", !0)
|
|
141
140
|
]),
|
|
142
141
|
_: 1
|
|
143
142
|
}),
|
|
144
|
-
|
|
145
|
-
default:
|
|
143
|
+
i(t(p), null, {
|
|
144
|
+
default: o(() => {
|
|
146
145
|
var r;
|
|
147
146
|
return [
|
|
148
|
-
((r = e.config) == null ? void 0 : r.hiddenClients) !== !0 && f.value.length ? (
|
|
147
|
+
((r = e.config) == null ? void 0 : r.hiddenClients) !== !0 && f.value.length ? (c(), u(t(g), {
|
|
149
148
|
key: 0,
|
|
150
149
|
class: "introduction-card-item scalar-reference-intro-clients"
|
|
151
150
|
}, {
|
|
152
|
-
default:
|
|
153
|
-
var
|
|
151
|
+
default: o(() => {
|
|
152
|
+
var n, d;
|
|
154
153
|
return [
|
|
155
|
-
|
|
154
|
+
i(t(Y), {
|
|
156
155
|
class: "introduction-card-item scalar-reference-intro-clients",
|
|
157
156
|
clientOptions: f.value,
|
|
158
|
-
xScalarSdkInstallation: (
|
|
157
|
+
xScalarSdkInstallation: (d = (n = e.store.workspace.activeDocument) == null ? void 0 : n.info) == null ? void 0 : d["x-scalar-sdk-installation"],
|
|
159
158
|
xSelectedClient: e.store.workspace["x-scalar-default-client"]
|
|
160
159
|
}, null, 8, ["clientOptions", "xScalarSdkInstallation", "xSelectedClient"])
|
|
161
160
|
];
|
|
162
161
|
}),
|
|
163
162
|
_: 1
|
|
164
|
-
})) :
|
|
163
|
+
})) : m("", !0)
|
|
165
164
|
];
|
|
166
165
|
}),
|
|
167
166
|
_: 1
|
|
168
167
|
})
|
|
169
168
|
]),
|
|
170
169
|
_: 1
|
|
171
|
-
}, 8, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "isLoading", "layout", "oasVersion", "onLoaded"])) :
|
|
170
|
+
}, 8, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "isLoading", "layout", "oasVersion", "onLoaded"])) : m("", !0)
|
|
172
171
|
];
|
|
173
172
|
}),
|
|
174
173
|
_: 3
|
|
175
174
|
}, 8, ["showEmptyState"]),
|
|
176
|
-
|
|
175
|
+
e.store.workspace.activeDocument ? (c(), u(t(Z), {
|
|
176
|
+
key: 0,
|
|
177
177
|
clientOptions: f.value,
|
|
178
178
|
config: e.config,
|
|
179
|
-
document: e.
|
|
179
|
+
document: e.store.workspace.activeDocument,
|
|
180
180
|
store: e.store
|
|
181
|
-
}, null, 8, ["clientOptions", "config", "document", "store"]),
|
|
182
|
-
(h = e.config) != null && h.hideModels
|
|
183
|
-
key:
|
|
181
|
+
}, null, 8, ["clientOptions", "config", "document", "store"])) : m("", !0),
|
|
182
|
+
!((h = e.config) != null && h.hideModels) && e.store.workspace.activeDocument ? (c(), u(t(x), {
|
|
183
|
+
key: 1,
|
|
184
184
|
config: e.config,
|
|
185
|
-
document: e.
|
|
186
|
-
}, null, 8, ["config", "document"])),
|
|
185
|
+
document: e.store.workspace.activeDocument
|
|
186
|
+
}, null, 8, ["config", "document"])) : m("", !0),
|
|
187
187
|
v(e.$slots, "end")
|
|
188
188
|
])
|
|
189
189
|
], 64);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
|
|
3
|
+
models: {
|
|
4
|
+
name: string;
|
|
5
|
+
schema: SchemaObject;
|
|
6
|
+
}[];
|
|
4
7
|
};
|
|
5
8
|
declare const _default: 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>;
|
|
6
9
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ClassicLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ClassicLayout.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAahG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CACjD,CAAC;;AA4KF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClassicLayout.vue2.js";
|
|
2
2
|
import "./ClassicLayout.vue3.js";
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-59fedb4d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,56 +1,54 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
1
|
+
import { defineComponent as k, createBlock as a, createCommentVNode as S, openBlock as r, unref as e, withCtx as t, createElementBlock as n, Fragment as f, renderList as p, createVNode as i, createTextVNode as g } from "vue";
|
|
2
|
+
import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
+
import { useNavState as C } from "../../../hooks/useNavState.js";
|
|
4
|
+
import b from "../../Section/SectionContainerAccordion.vue.js";
|
|
5
|
+
import N from "../../Section/SectionAccordion.vue.js";
|
|
6
|
+
import _ from "../Schema/SchemaProperty.vue.js";
|
|
7
|
+
import q from "../../Anchor/Anchor.vue.js";
|
|
8
|
+
import B from "../../Section/SectionHeaderTag.vue.js";
|
|
9
|
+
import H from "../Schema/SchemaHeading.vue.js";
|
|
10
|
+
import V from "../../Section/SectionHeader.vue.js";
|
|
11
|
+
const x = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "properties"
|
|
13
|
-
},
|
|
14
|
+
}, A = { key: 1 }, P = /* @__PURE__ */ k({
|
|
14
15
|
__name: "ClassicLayout",
|
|
15
16
|
props: {
|
|
16
|
-
|
|
17
|
+
models: {}
|
|
17
18
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
schema: n
|
|
22
|
-
})) : []), { getModelId: c } = B();
|
|
23
|
-
return (m, n) => s.schemas ? (t(), a(e(H), {
|
|
19
|
+
setup(L) {
|
|
20
|
+
const { getModelId: s } = C();
|
|
21
|
+
return (u, m) => u.models.length ? (r(), a(e(b), {
|
|
24
22
|
key: 0,
|
|
25
23
|
class: "reference-models"
|
|
26
24
|
}, {
|
|
27
|
-
title:
|
|
28
|
-
i(e(
|
|
29
|
-
default:
|
|
30
|
-
|
|
25
|
+
title: t(() => [
|
|
26
|
+
i(e(V), { level: 2 }, {
|
|
27
|
+
default: t(() => m[0] || (m[0] = [
|
|
28
|
+
g("Models")
|
|
31
29
|
])),
|
|
32
30
|
_: 1,
|
|
33
31
|
__: [0]
|
|
34
32
|
})
|
|
35
33
|
]),
|
|
36
|
-
default:
|
|
37
|
-
(
|
|
38
|
-
id: e(
|
|
34
|
+
default: t(() => [
|
|
35
|
+
(r(!0), n(f, null, p(u.models, ({ name: l, schema: o }) => (r(), a(e(N), {
|
|
36
|
+
id: e(s)({ name: l }),
|
|
39
37
|
key: l,
|
|
40
38
|
label: l
|
|
41
39
|
}, {
|
|
42
|
-
title:
|
|
43
|
-
i(e(
|
|
44
|
-
id: e(
|
|
40
|
+
title: t(() => [
|
|
41
|
+
i(e(q), {
|
|
42
|
+
id: e(s)({ name: l }),
|
|
45
43
|
class: "reference-models-anchor"
|
|
46
44
|
}, {
|
|
47
|
-
default:
|
|
48
|
-
i(e(
|
|
49
|
-
default:
|
|
50
|
-
i(e(
|
|
45
|
+
default: t(() => [
|
|
46
|
+
i(e(B), { level: 3 }, {
|
|
47
|
+
default: t(() => [
|
|
48
|
+
i(e(H), {
|
|
51
49
|
class: "reference-models-label",
|
|
52
|
-
name:
|
|
53
|
-
value:
|
|
50
|
+
name: o.title ?? l,
|
|
51
|
+
value: o
|
|
54
52
|
}, null, 8, ["name", "value"])
|
|
55
53
|
]),
|
|
56
54
|
_: 2
|
|
@@ -59,28 +57,28 @@ const O = {
|
|
|
59
57
|
_: 2
|
|
60
58
|
}, 1032, ["id"])
|
|
61
59
|
]),
|
|
62
|
-
default:
|
|
63
|
-
|
|
64
|
-
(
|
|
65
|
-
var
|
|
66
|
-
return
|
|
60
|
+
default: t(() => [
|
|
61
|
+
"properties" in o ? (r(), n("div", x, [
|
|
62
|
+
(r(!0), n(f, null, p(Object.entries(o.properties ?? {}), ([d, v]) => {
|
|
63
|
+
var c;
|
|
64
|
+
return r(), a(e(_), {
|
|
67
65
|
key: d,
|
|
68
66
|
name: d,
|
|
69
|
-
required: (
|
|
70
|
-
value:
|
|
67
|
+
required: (c = o.required) == null ? void 0 : c.includes(d),
|
|
68
|
+
value: e(y)(v)
|
|
71
69
|
}, null, 8, ["name", "required", "value"]);
|
|
72
70
|
}), 128))
|
|
73
|
-
])) : (
|
|
74
|
-
i(e(
|
|
71
|
+
])) : (r(), n("div", A, [
|
|
72
|
+
i(e(_), { value: o }, null, 8, ["value"])
|
|
75
73
|
]))
|
|
76
74
|
]),
|
|
77
75
|
_: 2
|
|
78
76
|
}, 1032, ["id", "label"]))), 128))
|
|
79
77
|
]),
|
|
80
78
|
_: 1
|
|
81
|
-
})) :
|
|
79
|
+
})) : S("", !0);
|
|
82
80
|
}
|
|
83
81
|
});
|
|
84
82
|
export {
|
|
85
|
-
|
|
83
|
+
P as default
|
|
86
84
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
1
|
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
2
|
+
import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
document:
|
|
4
|
+
document: OpenApiDocument;
|
|
5
5
|
config: ApiReferenceConfiguration;
|
|
6
6
|
};
|
|
7
7
|
declare const _default: 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>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AASnG,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,CAAA;IACzB,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC;;AAiGF,wBAMG"}
|
|
@@ -1,39 +1,46 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as f, computed as d, createBlock as n, createCommentVNode as p, openBlock as r, unref as a, withCtx as h } from "vue";
|
|
2
|
+
import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
+
import { useNavState as g } from "../../../hooks/useNavState.js";
|
|
4
|
+
import _ from "./ClassicLayout.vue.js";
|
|
5
|
+
import k from "./ModernLayout.vue.js";
|
|
6
|
+
import v from "../../Lazy/Lazy.vue2.js";
|
|
7
|
+
const j = /* @__PURE__ */ f({
|
|
8
8
|
__name: "Models",
|
|
9
9
|
props: {
|
|
10
10
|
document: {},
|
|
11
11
|
config: {}
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const { hash:
|
|
15
|
-
|
|
13
|
+
setup(m) {
|
|
14
|
+
const { hash: c } = g(), t = d(() => {
|
|
15
|
+
var o;
|
|
16
|
+
const e = (o = m.document.components) == null ? void 0 : o.schemas;
|
|
17
|
+
return e ? Object.entries(e).flatMap(([l, u]) => {
|
|
18
|
+
const s = y(u);
|
|
19
|
+
return s["x-internal"] || s["x-scalar-ignore"] ? [] : [{ name: l, schema: s }];
|
|
20
|
+
}) : [];
|
|
21
|
+
});
|
|
22
|
+
return (e, i) => t.value && Object.keys(t.value).length > 0 ? (r(), n(a(v), {
|
|
16
23
|
key: 0,
|
|
17
24
|
id: "models",
|
|
18
|
-
isLazy: !!
|
|
25
|
+
isLazy: !!a(c) && !a(c).startsWith("model")
|
|
19
26
|
}, {
|
|
20
|
-
default:
|
|
21
|
-
var
|
|
27
|
+
default: h(() => {
|
|
28
|
+
var o;
|
|
22
29
|
return [
|
|
23
|
-
((
|
|
30
|
+
((o = e.config) == null ? void 0 : o.layout) === "classic" ? (r(), n(_, {
|
|
24
31
|
key: 0,
|
|
25
|
-
|
|
26
|
-
}, null, 8, ["
|
|
32
|
+
models: t.value
|
|
33
|
+
}, null, 8, ["models"])) : (r(), n(k, {
|
|
27
34
|
key: 1,
|
|
28
|
-
config:
|
|
29
|
-
schemas:
|
|
35
|
+
config: e.config,
|
|
36
|
+
schemas: t.value
|
|
30
37
|
}, null, 8, ["config", "schemas"]))
|
|
31
38
|
];
|
|
32
39
|
}),
|
|
33
40
|
_: 1
|
|
34
|
-
}, 8, ["isLazy"])) :
|
|
41
|
+
}, 8, ["isLazy"])) : p("", !0);
|
|
35
42
|
}
|
|
36
43
|
});
|
|
37
44
|
export {
|
|
38
|
-
|
|
45
|
+
j as default
|
|
39
46
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
2
1
|
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
2
|
+
import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
config: ApiReferenceConfiguration;
|
|
5
|
-
schemas
|
|
5
|
+
schemas: {
|
|
6
|
+
name: string;
|
|
7
|
+
schema: SchemaObject;
|
|
8
|
+
}[];
|
|
6
9
|
};
|
|
7
10
|
declare const _default: 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>;
|
|
8
11
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModernLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModernLayout.vue"],"names":[],"mappings":"AAgHA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAgBhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CAClD,CAAC;;AAqNF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModernLayout.vue2.js";
|
|
2
2
|
import "./ModernLayout.vue3.js";
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cd0edd51"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|