@scalar/api-reference 1.35.7 → 1.36.0
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 +23 -0
- package/dist/browser/standalone.js +7953 -7994
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +148 -150
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +44 -51
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts +2 -1
- 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 +31 -33
- 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 +24 -23
- package/dist/components/Content/Models/ModernLayout.vue.d.ts +1 -0
- 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 +40 -41
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +1 -2
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +24 -24
- 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/Operations/get-current-index.d.ts +1 -1
- package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
- package/dist/components/Content/Operations/get-current-index.js +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +35 -45
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/sort-property-names.d.ts +16 -0
- package/dist/components/Content/Schema/helpers/sort-property-names.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/sort-property-names.js +36 -0
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Tags/ClassicLayout.vue2.js +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue.js +2 -2
- package/dist/components/Content/Tags/ModernLayout.vue2.js +2 -2
- package/dist/components/Content/Tags/Tag.vue.d.ts +1 -1
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.d.ts +1 -1
- package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/TagSection.vue.js +4 -4
- package/dist/components/MobileHeader.vue.js +2 -2
- package/dist/components/MobileHeader.vue2.js +1 -1
- package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsList.vue.js +1 -1
- package/dist/components/OperationsList/OperationsList.vue2.js +9 -11
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
- package/dist/components/OperationsList/OperationsListItem.vue2.js +24 -27
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.js +2 -2
- package/dist/components/Section/Section.vue2.js +12 -13
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.js +1 -1
- package/dist/components/Section/SectionAccordion.vue2.js +36 -37
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue2.js +3 -3
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +32 -22
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +1 -1
- package/dist/features/Operation/components/RequestBody.vue2.js +59 -47
- package/dist/features/Operation/helpers/get-first-server.d.ts +9 -0
- package/dist/features/Operation/helpers/get-first-server.d.ts.map +1 -0
- package/dist/features/Operation/helpers/get-first-server.js +20 -0
- package/dist/features/Search/components/SearchButton.vue.d.ts +2 -0
- package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -1
- package/dist/features/Search/components/SearchButton.vue.js +19 -17
- package/dist/features/Search/components/SearchModal.vue.d.ts +2 -1
- package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/components/SearchModal.vue.js +2 -2
- package/dist/features/Search/components/SearchModal.vue2.js +74 -75
- package/dist/features/Search/helpers/create-search-index.d.ts +2 -2
- package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
- package/dist/features/Search/helpers/create-search-index.js +68 -66
- package/dist/features/Search/hooks/useSearchIndex.d.ts +3 -2
- package/dist/features/Search/hooks/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/hooks/useSearchIndex.js +13 -13
- package/dist/features/Search/types.d.ts +1 -1
- package/dist/features/Search/types.d.ts.map +1 -1
- package/dist/features/api-client-modal/useApiClient.d.ts +20 -20
- package/dist/helpers/test-utils.d.ts +367 -5
- package/dist/helpers/test-utils.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts +1 -15
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +29 -53
- package/dist/index.d.ts +5 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -20
- package/dist/style.css +1 -1
- package/dist/{features/sidebar/components/Sidebar.vue.d.ts → v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts} +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +7 -0
- package/dist/{features/sidebar/components/Sidebar.vue2.js → v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js} +15 -15
- package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarElement.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +7 -0
- package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarElement.vue2.js +41 -43
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.js +7 -0
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.js +7 -0
- package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarHttpBadge.vue2.js +1 -1
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +385 -0
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.js +35 -0
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +189 -0
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.js +9 -0
- package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/hooks/useSidebar.d.ts +4 -8
- package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.js +18 -0
- package/dist/v2/blocks/scalar-sidebar-block/index.d.ts +4 -0
- package/dist/v2/blocks/scalar-sidebar-block/index.d.ts.map +1 -0
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +0 -1
- package/dist/features/sidebar/components/Sidebar.vue.js +0 -7
- package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +0 -1
- package/dist/features/sidebar/components/SidebarElement.vue.js +0 -7
- package/dist/features/sidebar/components/SidebarGroup.vue.d.ts.map +0 -1
- package/dist/features/sidebar/components/SidebarGroup.vue.js +0 -7
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +0 -1
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +0 -7
- package/dist/features/sidebar/helpers/create-sidebar.d.ts +0 -28
- package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +0 -1
- package/dist/features/sidebar/helpers/create-sidebar.js +0 -32
- package/dist/features/sidebar/hooks/useSidebar.d.ts.map +0 -1
- package/dist/features/sidebar/hooks/useSidebar.js +0 -18
- package/dist/features/sidebar/index.d.ts +0 -4
- package/dist/features/sidebar/index.d.ts.map +0 -1
- package/dist/features/traverse-schema/helpers/get-tag.d.ts +0 -6
- package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +0 -1
- package/dist/features/traverse-schema/helpers/get-tag.js +0 -7
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts +0 -11
- package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +0 -1
- package/dist/features/traverse-schema/helpers/traverse-description.js +0 -32
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts +0 -16
- package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +0 -1
- package/dist/features/traverse-schema/helpers/traverse-document.js +0 -33
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +0 -18
- package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +0 -1
- package/dist/features/traverse-schema/helpers/traverse-paths.js +0 -30
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +0 -8
- package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +0 -1
- package/dist/features/traverse-schema/helpers/traverse-schemas.js +0 -21
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +0 -11
- package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +0 -1
- package/dist/features/traverse-schema/helpers/traverse-tags.js +0 -43
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +0 -10
- package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +0 -1
- package/dist/features/traverse-schema/helpers/traverse-webhooks.js +0 -24
- package/dist/features/traverse-schema/index.d.ts +0 -5
- package/dist/features/traverse-schema/index.d.ts.map +0 -1
- package/dist/features/traverse-schema/types.d.ts +0 -55
- package/dist/features/traverse-schema/types.d.ts.map +0 -1
- package/dist/libs/markdown.js +0 -18
- /package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarGroup.vue.d.ts +0 -0
- /package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarGroup.vue2.js +0 -0
- /package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarHttpBadge.vue.d.ts +0 -0
|
@@ -1,54 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
1
|
+
import { defineComponent as $, computed as c, createElementBlock as A, openBlock as s, Fragment as L, createVNode as r, createElementVNode as U, unref as t, renderSlot as m, createBlock as a, createCommentVNode as l, withCtx as o } from "vue";
|
|
2
|
+
import { useWorkspace as B, useActiveEntities as F } from "@scalar/api-client/store";
|
|
3
3
|
import { ScalarErrorBoundary as d } from "@scalar/components";
|
|
4
|
-
import { getSlugUid as
|
|
5
|
-
import
|
|
6
|
-
import { useFreezing as
|
|
7
|
-
import { useNavState as T } from "../../hooks/useNavState.js";
|
|
4
|
+
import { getSlugUid as I } from "@scalar/oas-utils/transforms";
|
|
5
|
+
import j from "./IntroductionSection.vue.js";
|
|
6
|
+
import { useFreezing as N } from "../../hooks/useFreezing.js";
|
|
8
7
|
import { generateClientOptions as W } from "../../v2/blocks/scalar-request-example-block/helpers/generate-client-options.js";
|
|
9
|
-
import {
|
|
8
|
+
import { useSidebar as z } from "../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
10
9
|
import { getXKeysFromObject as g } from "../../features/specification-extension/helpers.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import K from "../SectionFlare/SectionFlare.vue.js";
|
|
11
|
+
import M from "../../v2/blocks/scalar-info-block/components/InfoBlock.vue.js";
|
|
13
12
|
import f from "../../v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
const
|
|
13
|
+
import X from "../../v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
|
|
14
|
+
import q from "../../v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
15
|
+
import G from "../../v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
|
|
16
|
+
import H from "./Operations/TraversedEntryContainer.vue.js";
|
|
17
|
+
import J from "./Models/Models.vue.js";
|
|
18
|
+
const P = { class: "narrow-references-container" }, me = /* @__PURE__ */ $({
|
|
20
19
|
__name: "Content",
|
|
21
20
|
props: {
|
|
22
21
|
config: {},
|
|
23
22
|
store: {}
|
|
24
23
|
},
|
|
25
|
-
setup(
|
|
26
|
-
|
|
24
|
+
setup(i) {
|
|
25
|
+
N();
|
|
27
26
|
const u = c(
|
|
28
|
-
() => W(
|
|
29
|
-
), {
|
|
30
|
-
() =>
|
|
31
|
-
slug: z,
|
|
32
|
-
depth: 1,
|
|
33
|
-
value: "Introduction"
|
|
34
|
-
})
|
|
35
|
-
), h = c(
|
|
36
|
-
() => g(s.store.workspace.activeDocument)
|
|
27
|
+
() => W(i.config.hiddenClients)
|
|
28
|
+
), { items: k } = z(), S = c(() => k.value.entries[0]?.id), h = c(
|
|
29
|
+
() => g(i.store.workspace.activeDocument)
|
|
37
30
|
), w = c(
|
|
38
|
-
() => g(
|
|
39
|
-
), { collections:
|
|
31
|
+
() => g(i.store.workspace.activeDocument?.info)
|
|
32
|
+
), { collections: y, securitySchemes: D, servers: v } = B(), {
|
|
40
33
|
activeCollection: C,
|
|
41
34
|
activeEnvVariables: E,
|
|
42
35
|
activeEnvironment: O,
|
|
43
36
|
activeWorkspace: p
|
|
44
|
-
} =
|
|
45
|
-
if (
|
|
46
|
-
const e =
|
|
37
|
+
} = F(), n = c(() => {
|
|
38
|
+
if (i.config.slug) {
|
|
39
|
+
const e = y[I(i.config.slug)];
|
|
47
40
|
if (e)
|
|
48
41
|
return e;
|
|
49
42
|
}
|
|
50
43
|
return C.value;
|
|
51
|
-
}),
|
|
44
|
+
}), b = c(() => {
|
|
52
45
|
if (n.value) {
|
|
53
46
|
if (n.value.selectedServerUid) {
|
|
54
47
|
const e = v[n.value.selectedServerUid];
|
|
@@ -57,24 +50,24 @@ const J = { class: "narrow-references-container" }, fe = /* @__PURE__ */ I({
|
|
|
57
50
|
}
|
|
58
51
|
return v[n.value.servers[0]];
|
|
59
52
|
}
|
|
60
|
-
}),
|
|
61
|
-
return (e,
|
|
62
|
-
r(t(
|
|
63
|
-
|
|
53
|
+
}), V = () => i.store.exportActiveDocument("json") ?? "{}";
|
|
54
|
+
return (e, Q) => (s(), A(L, null, [
|
|
55
|
+
r(t(K)),
|
|
56
|
+
U("div", P, [
|
|
64
57
|
m(e.$slots, "start"),
|
|
65
|
-
r(
|
|
58
|
+
r(j, {
|
|
66
59
|
showEmptyState: !e.store.workspace.activeDocument
|
|
67
60
|
}, {
|
|
68
61
|
"empty-state": o(() => [
|
|
69
62
|
m(e.$slots, "empty-state")
|
|
70
63
|
]),
|
|
71
64
|
default: o(() => [
|
|
72
|
-
e.store.workspace.activeDocument ? (
|
|
65
|
+
e.store.workspace.activeDocument ? (s(), a(t(M), {
|
|
73
66
|
key: 0,
|
|
74
67
|
id: S.value,
|
|
75
68
|
documentExtensions: h.value,
|
|
76
69
|
externalDocs: e.store.workspace.activeDocument.externalDocs,
|
|
77
|
-
getOriginalDocument:
|
|
70
|
+
getOriginalDocument: V,
|
|
78
71
|
info: e.store.workspace.activeDocument.info,
|
|
79
72
|
infoExtensions: w.value,
|
|
80
73
|
isLoading: e.config.isLoading,
|
|
@@ -85,12 +78,12 @@ const J = { class: "narrow-references-container" }, fe = /* @__PURE__ */ I({
|
|
|
85
78
|
selectors: o(() => [
|
|
86
79
|
r(t(d), null, {
|
|
87
80
|
default: o(() => [
|
|
88
|
-
e.store.workspace.activeDocument?.servers?.length ? (
|
|
81
|
+
e.store.workspace.activeDocument?.servers?.length ? (s(), a(t(f), {
|
|
89
82
|
key: 0,
|
|
90
83
|
class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
|
|
91
84
|
}, {
|
|
92
85
|
default: o(() => [
|
|
93
|
-
r(t(
|
|
86
|
+
r(t(X), {
|
|
94
87
|
servers: e.store.workspace.activeDocument?.servers ?? [],
|
|
95
88
|
xSelectedServer: e.store.workspace.activeDocument?.["x-scalar-active-server"]
|
|
96
89
|
}, null, 8, ["servers", "xSelectedServer"])
|
|
@@ -102,19 +95,19 @@ const J = { class: "narrow-references-container" }, fe = /* @__PURE__ */ I({
|
|
|
102
95
|
}),
|
|
103
96
|
r(t(d), null, {
|
|
104
97
|
default: o(() => [
|
|
105
|
-
n.value && t(p) && Object.keys(t(
|
|
98
|
+
n.value && t(p) && Object.keys(t(D) ?? {}).length ? (s(), a(t(f), {
|
|
106
99
|
key: 0,
|
|
107
100
|
class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
|
|
108
101
|
}, {
|
|
109
102
|
default: o(() => [
|
|
110
|
-
r(t(
|
|
103
|
+
r(t(q), {
|
|
111
104
|
collection: n.value,
|
|
112
105
|
envVariables: t(E),
|
|
113
106
|
environment: t(O),
|
|
114
107
|
layout: "reference",
|
|
115
108
|
persistAuth: e.config?.persistAuth,
|
|
116
109
|
selectedSecuritySchemeUids: n.value?.selectedSecuritySchemeUids ?? [],
|
|
117
|
-
server:
|
|
110
|
+
server: b.value,
|
|
118
111
|
title: "Authentication",
|
|
119
112
|
workspace: t(p)
|
|
120
113
|
}, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
|
|
@@ -126,12 +119,12 @@ const J = { class: "narrow-references-container" }, fe = /* @__PURE__ */ I({
|
|
|
126
119
|
}),
|
|
127
120
|
r(t(d), null, {
|
|
128
121
|
default: o(() => [
|
|
129
|
-
e.config?.hiddenClients !== !0 && u.value.length ? (
|
|
122
|
+
e.config?.hiddenClients !== !0 && u.value.length ? (s(), a(t(f), {
|
|
130
123
|
key: 0,
|
|
131
124
|
class: "introduction-card-item scalar-reference-intro-clients"
|
|
132
125
|
}, {
|
|
133
126
|
default: o(() => [
|
|
134
|
-
r(t(
|
|
127
|
+
r(t(G), {
|
|
135
128
|
class: "introduction-card-item scalar-reference-intro-clients",
|
|
136
129
|
clientOptions: u.value,
|
|
137
130
|
xScalarSdkInstallation: e.store.workspace.activeDocument?.info?.["x-scalar-sdk-installation"],
|
|
@@ -149,23 +142,23 @@ const J = { class: "narrow-references-container" }, fe = /* @__PURE__ */ I({
|
|
|
149
142
|
]),
|
|
150
143
|
_: 3
|
|
151
144
|
}, 8, ["showEmptyState"]),
|
|
152
|
-
e.store.workspace.activeDocument ? (
|
|
145
|
+
e.store.workspace.activeDocument ? (s(), a(t(H), {
|
|
153
146
|
key: 0,
|
|
154
147
|
clientOptions: u.value,
|
|
155
148
|
config: e.config,
|
|
156
149
|
document: e.store.workspace.activeDocument,
|
|
157
150
|
store: e.store
|
|
158
151
|
}, null, 8, ["clientOptions", "config", "document", "store"])) : l("", !0),
|
|
159
|
-
!e.config?.hideModels && e.store.workspace.activeDocument ? (
|
|
152
|
+
!e.config?.hideModels && e.store.workspace.activeDocument ? (s(), a(t(J), {
|
|
160
153
|
key: 1,
|
|
161
154
|
config: e.config,
|
|
162
|
-
|
|
163
|
-
}, null, 8, ["config", "
|
|
155
|
+
schemas: e.store.workspace.activeDocument.components?.schemas
|
|
156
|
+
}, null, 8, ["config", "schemas"])) : l("", !0),
|
|
164
157
|
m(e.$slots, "end")
|
|
165
158
|
])
|
|
166
159
|
], 64));
|
|
167
160
|
}
|
|
168
161
|
});
|
|
169
162
|
export {
|
|
170
|
-
|
|
163
|
+
me as default
|
|
171
164
|
};
|
|
@@ -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":"AAmFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAYhG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAyKF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ClassicLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0131e9c4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,30 +1,28 @@
|
|
|
1
|
-
import { defineComponent as v, createBlock as
|
|
1
|
+
import { defineComponent as v, createBlock as s, createCommentVNode as k, openBlock as r, unref as e, withCtx as t, createElementBlock as n, Fragment as c, renderList as f, createVNode as l, createTextVNode as S } from "vue";
|
|
2
2
|
import { getResolvedRef as g } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
-
import
|
|
4
|
-
import C from "../../Section/
|
|
5
|
-
import b from "../../Section/SectionAccordion.vue.js";
|
|
3
|
+
import y from "../../Section/SectionContainerAccordion.vue.js";
|
|
4
|
+
import C from "../../Section/SectionAccordion.vue.js";
|
|
6
5
|
import p from "../Schema/SchemaProperty.vue.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
6
|
+
import b from "../../Anchor/Anchor.vue.js";
|
|
7
|
+
import h from "../../Section/SectionHeaderTag.vue.js";
|
|
8
|
+
import q from "../Schema/SchemaHeading.vue.js";
|
|
9
|
+
import B from "../../Section/SectionHeader.vue.js";
|
|
10
|
+
const H = {
|
|
12
11
|
key: 0,
|
|
13
12
|
class: "properties"
|
|
14
|
-
},
|
|
13
|
+
}, N = { key: 1 }, M = /* @__PURE__ */ v({
|
|
15
14
|
__name: "ClassicLayout",
|
|
16
15
|
props: {
|
|
17
|
-
|
|
16
|
+
schemas: {}
|
|
18
17
|
},
|
|
19
|
-
setup(
|
|
20
|
-
|
|
21
|
-
return (u, m) => u.models.length ? (r(), a(e(C), {
|
|
18
|
+
setup(V) {
|
|
19
|
+
return (m, u) => m.schemas.length ? (r(), s(e(y), {
|
|
22
20
|
key: 0,
|
|
23
21
|
class: "reference-models"
|
|
24
22
|
}, {
|
|
25
23
|
title: t(() => [
|
|
26
|
-
|
|
27
|
-
default: t(() =>
|
|
24
|
+
l(e(B), { level: 2 }, {
|
|
25
|
+
default: t(() => u[0] || (u[0] = [
|
|
28
26
|
S("Models")
|
|
29
27
|
])),
|
|
30
28
|
_: 1,
|
|
@@ -32,22 +30,22 @@ const V = {
|
|
|
32
30
|
})
|
|
33
31
|
]),
|
|
34
32
|
default: t(() => [
|
|
35
|
-
(r(!0), n(c, null, f(
|
|
36
|
-
id:
|
|
37
|
-
key:
|
|
38
|
-
label:
|
|
33
|
+
(r(!0), n(c, null, f(m.schemas, ({ id: d, name: i, schema: o }) => (r(), s(e(C), {
|
|
34
|
+
id: d,
|
|
35
|
+
key: i,
|
|
36
|
+
label: i
|
|
39
37
|
}, {
|
|
40
38
|
title: t(() => [
|
|
41
|
-
|
|
42
|
-
id:
|
|
39
|
+
l(e(b), {
|
|
40
|
+
id: d,
|
|
43
41
|
class: "reference-models-anchor"
|
|
44
42
|
}, {
|
|
45
43
|
default: t(() => [
|
|
46
|
-
|
|
44
|
+
l(e(h), { level: 3 }, {
|
|
47
45
|
default: t(() => [
|
|
48
|
-
|
|
46
|
+
l(e(q), {
|
|
49
47
|
class: "reference-models-label",
|
|
50
|
-
name: o.title ??
|
|
48
|
+
name: o.title ?? i,
|
|
51
49
|
value: o
|
|
52
50
|
}, null, 8, ["name", "value"])
|
|
53
51
|
]),
|
|
@@ -58,15 +56,15 @@ const V = {
|
|
|
58
56
|
}, 1032, ["id"])
|
|
59
57
|
]),
|
|
60
58
|
default: t(() => [
|
|
61
|
-
"properties" in o ? (r(), n("div",
|
|
62
|
-
(r(!0), n(c, null, f(Object.entries(o.properties ?? {}), ([
|
|
63
|
-
key:
|
|
64
|
-
name:
|
|
65
|
-
required: o.required?.includes(
|
|
59
|
+
"properties" in o ? (r(), n("div", H, [
|
|
60
|
+
(r(!0), n(c, null, f(Object.entries(o.properties ?? {}), ([a, _]) => (r(), s(e(p), {
|
|
61
|
+
key: a,
|
|
62
|
+
name: a,
|
|
63
|
+
required: o.required?.includes(a),
|
|
66
64
|
value: e(g)(_)
|
|
67
65
|
}, null, 8, ["name", "required", "value"]))), 128))
|
|
68
|
-
])) : (r(), n("div",
|
|
69
|
-
|
|
66
|
+
])) : (r(), n("div", N, [
|
|
67
|
+
l(e(p), { value: o }, null, 8, ["value"])
|
|
70
68
|
]))
|
|
71
69
|
]),
|
|
72
70
|
_: 2
|
|
@@ -77,5 +75,5 @@ const V = {
|
|
|
77
75
|
}
|
|
78
76
|
});
|
|
79
77
|
export {
|
|
80
|
-
|
|
78
|
+
M as default
|
|
81
79
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ComponentsObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
|
|
4
|
+
schemas: ComponentsObject['schemas'];
|
|
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":"AA4DA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,8DAA8D,CAAA;AAUrE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACpC,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC;;AAgGF,wBAMG"}
|
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as f, computed as r, createBlock as o, createCommentVNode as u, openBlock as t, unref as a, withCtx as d } from "vue";
|
|
2
2
|
import { getResolvedRef as h } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
-
import { useNavState as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import k from "
|
|
7
|
-
|
|
3
|
+
import { useNavState as p } from "../../../hooks/useNavState.js";
|
|
4
|
+
import y from "./ClassicLayout.vue.js";
|
|
5
|
+
import g from "./ModernLayout.vue.js";
|
|
6
|
+
import { useSidebar as k } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
7
|
+
import v from "../../Lazy/Lazy.vue2.js";
|
|
8
|
+
const z = /* @__PURE__ */ f({
|
|
8
9
|
__name: "Models",
|
|
9
10
|
props: {
|
|
10
|
-
|
|
11
|
+
schemas: { default: () => ({}) },
|
|
11
12
|
config: {}
|
|
12
13
|
},
|
|
13
14
|
setup(c) {
|
|
14
|
-
const { hash:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
return (e,
|
|
15
|
+
const { hash: m } = p(), { items: i } = k(), l = r(() => i.value.entries.find(
|
|
16
|
+
(e) => e.type === "text" && e.id === "models"
|
|
17
|
+
)), n = r(() => (l.value?.children ?? []).filter((s) => s.type === "model").map((s) => ({
|
|
18
|
+
id: s.id,
|
|
19
|
+
name: s.name,
|
|
20
|
+
schema: h(c.schemas[s.name])
|
|
21
|
+
})));
|
|
22
|
+
return (e, s) => e.schemas && Object.keys(e.schemas).length > 0 ? (t(), o(a(v), {
|
|
22
23
|
key: 0,
|
|
23
24
|
id: "models",
|
|
24
|
-
isLazy: !!
|
|
25
|
+
isLazy: !!a(m) && !a(m).startsWith("model")
|
|
25
26
|
}, {
|
|
26
|
-
default:
|
|
27
|
-
e.config?.layout === "classic" ? (
|
|
27
|
+
default: d(() => [
|
|
28
|
+
e.config?.layout === "classic" ? (t(), o(y, {
|
|
28
29
|
key: 0,
|
|
29
|
-
|
|
30
|
-
}, null, 8, ["
|
|
30
|
+
schemas: n.value
|
|
31
|
+
}, null, 8, ["schemas"])) : (t(), o(g, {
|
|
31
32
|
key: 1,
|
|
32
33
|
config: e.config,
|
|
33
|
-
schemas:
|
|
34
|
+
schemas: n.value
|
|
34
35
|
}, null, 8, ["config", "schemas"]))
|
|
35
36
|
]),
|
|
36
37
|
_: 1
|
|
37
|
-
}, 8, ["isLazy"])) :
|
|
38
|
+
}, 8, ["isLazy"])) : u("", !0);
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
z as default
|
|
42
43
|
};
|
|
@@ -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":"AA8GA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAehG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAmNF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ModernLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c533a862"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, useId as M, computed as c, createBlock as m, createCommentVNode as f, openBlock as a, unref as e, withCtx as l, createVNode as o, createElementVNode as _, createTextVNode as y, normalizeClass as N, createElementBlock as k, Fragment as C, renderList as I } from "vue";
|
|
2
2
|
import { ScalarErrorBoundary as A } from "@scalar/components";
|
|
3
3
|
import B from "../../ShowMoreButton.vue.js";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import w from "../../Section/
|
|
7
|
-
import x from "../../Section/
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import O from "
|
|
11
|
-
import V from "../Schema/
|
|
12
|
-
|
|
13
|
-
const h = 10, Q = /* @__PURE__ */ M({
|
|
4
|
+
import { useSidebar as H } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
5
|
+
import L from "../../Section/SectionContainer.vue.js";
|
|
6
|
+
import w from "../../Section/Section.vue.js";
|
|
7
|
+
import x from "../../Section/SectionHeader.vue.js";
|
|
8
|
+
import p from "../../Section/SectionHeaderTag.vue.js";
|
|
9
|
+
import E from "../../Section/CompactSection.vue.js";
|
|
10
|
+
import O from "../Schema/Schema.vue.js";
|
|
11
|
+
import V from "../Schema/SchemaHeading.vue.js";
|
|
12
|
+
const S = 10, K = /* @__PURE__ */ g({
|
|
14
13
|
__name: "ModernLayout",
|
|
15
14
|
props: {
|
|
16
15
|
config: {},
|
|
17
16
|
schemas: { default: () => [] }
|
|
18
17
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
() =>
|
|
22
|
-
),
|
|
23
|
-
return (
|
|
18
|
+
setup(t) {
|
|
19
|
+
const i = M(), { collapsedSidebarItems: h } = H(), r = c(
|
|
20
|
+
() => t.config.expandAllModelSections || t.schemas.length <= S || h.models
|
|
21
|
+
), v = c(() => r.value ? t.schemas : t.schemas.slice(0, S));
|
|
22
|
+
return (s, u) => s.schemas ? (a(), m(e(L), {
|
|
24
23
|
key: 0,
|
|
25
24
|
id: "models"
|
|
26
25
|
}, {
|
|
27
26
|
default: l(() => [
|
|
28
|
-
|
|
27
|
+
o(e(w), { "aria-labelledby": e(i) }, {
|
|
29
28
|
default: l(() => [
|
|
30
|
-
|
|
29
|
+
o(e(x), null, {
|
|
31
30
|
default: l(() => [
|
|
32
|
-
|
|
33
|
-
id: e(
|
|
31
|
+
o(e(p), {
|
|
32
|
+
id: e(i),
|
|
34
33
|
level: 2
|
|
35
34
|
}, {
|
|
36
|
-
default: l(() =>
|
|
37
|
-
|
|
35
|
+
default: l(() => u[0] || (u[0] = [
|
|
36
|
+
y(" Models ")
|
|
38
37
|
])),
|
|
39
38
|
_: 1,
|
|
40
39
|
__: [0]
|
|
@@ -42,36 +41,36 @@ const h = 10, Q = /* @__PURE__ */ M({
|
|
|
42
41
|
]),
|
|
43
42
|
_: 1
|
|
44
43
|
}),
|
|
45
|
-
|
|
46
|
-
class:
|
|
44
|
+
_("div", {
|
|
45
|
+
class: N(["models-list", { "models-list-truncated": !r.value }])
|
|
47
46
|
}, [
|
|
48
|
-
(
|
|
49
|
-
id:
|
|
50
|
-
key:
|
|
47
|
+
(a(!0), k(C, null, I(v.value, ({ id: b, name: d, schema: n }) => (a(), m(e(E), {
|
|
48
|
+
id: b,
|
|
49
|
+
key: d,
|
|
51
50
|
class: "models-list-item",
|
|
52
|
-
defaultOpen:
|
|
53
|
-
label:
|
|
51
|
+
defaultOpen: s.config.expandAllModelSections,
|
|
52
|
+
label: d
|
|
54
53
|
}, {
|
|
55
54
|
heading: l(() => [
|
|
56
|
-
|
|
55
|
+
o(e(p), { level: 3 }, {
|
|
57
56
|
default: l(() => [
|
|
58
|
-
|
|
59
|
-
name:
|
|
60
|
-
value:
|
|
57
|
+
o(e(V), {
|
|
58
|
+
name: n.title ?? d,
|
|
59
|
+
value: n
|
|
61
60
|
}, null, 8, ["name", "value"])
|
|
62
61
|
]),
|
|
63
62
|
_: 2
|
|
64
63
|
}, 1024)
|
|
65
64
|
]),
|
|
66
65
|
default: l(() => [
|
|
67
|
-
|
|
66
|
+
o(e(A), null, {
|
|
68
67
|
default: l(() => [
|
|
69
|
-
|
|
68
|
+
o(e(O), {
|
|
70
69
|
hideHeading: !0,
|
|
71
70
|
hideModelNames: !0,
|
|
72
71
|
level: 1,
|
|
73
72
|
noncollapsible: "",
|
|
74
|
-
schema:
|
|
73
|
+
schema: n
|
|
75
74
|
}, null, 8, ["schema"])
|
|
76
75
|
]),
|
|
77
76
|
_: 2
|
|
@@ -80,19 +79,19 @@ const h = 10, Q = /* @__PURE__ */ M({
|
|
|
80
79
|
_: 2
|
|
81
80
|
}, 1032, ["id", "defaultOpen", "label"]))), 128))
|
|
82
81
|
], 2),
|
|
83
|
-
|
|
82
|
+
r.value ? f("", !0) : (a(), m(B, {
|
|
84
83
|
key: 0,
|
|
85
|
-
id:
|
|
84
|
+
id: "models",
|
|
86
85
|
class: "show-more-models"
|
|
87
|
-
}
|
|
86
|
+
}))
|
|
88
87
|
]),
|
|
89
88
|
_: 1
|
|
90
89
|
}, 8, ["aria-labelledby"])
|
|
91
90
|
]),
|
|
92
91
|
_: 1
|
|
93
|
-
})) :
|
|
92
|
+
})) : f("", !0);
|
|
94
93
|
}
|
|
95
94
|
});
|
|
96
95
|
export {
|
|
97
|
-
|
|
96
|
+
K as default
|
|
98
97
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
2
|
import type { ApiReferenceConfiguration } from '@scalar/types';
|
|
3
3
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
4
|
-
import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
|
-
import { type TraversedEntry } from '../../../features/traverse-schema';
|
|
4
|
+
import type { OpenApiDocument, TraversedEntry } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
6
5
|
import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
|
|
7
6
|
type __VLS_Props = {
|
|
8
7
|
level?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AA+JA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAIf,MAAM,8DAA8D,CAAA;AASrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAEvF,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,MAAM,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,eAAe,CAAA;IACzB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,gBAAgB,EAAE,UAAU,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;oBA0CqB,cAAc,SAAS,MAAM;;AA+LpD,wBAOG"}
|