@scalar/api-reference 1.43.4 → 1.43.7
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 +85 -0
- package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +7 -7
- package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +5 -5
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +1 -1
- package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +5 -5
- package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +11 -11
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +2 -2
- package/dist/blocks/scalar-info-block/components/InfoLinks.vue.js +7 -7
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +2 -2
- package/dist/blocks/scalar-info-block/components/IntroductionCard.vue2.js +1 -1
- package/dist/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +16 -16
- package/dist/blocks/scalar-info-block/components/OpenApiVersion.vue.js +2 -2
- package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +1 -1
- package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +7 -7
- package/dist/browser/standalone.js +18486 -18113
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/WithBreadcrumb.vue.js +3 -3
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +16 -11
- package/dist/components/Content/Auth/Auth.vue.js +7 -7
- package/dist/components/Content/Content.vue.js +28 -28
- package/dist/components/Content/Models/Model.vue.js +14 -14
- package/dist/components/Content/Models/ModelTag.vue.js +8 -8
- package/dist/components/Content/Models/components/ClassicLayout.vue2.js +15 -15
- package/dist/components/Content/Models/components/ModernLayout.vue.js +11 -11
- package/dist/components/Content/Operations/TraversedEntry.vue.js +51 -51
- package/dist/components/Content/Schema/Schema.vue2.js +40 -40
- package/dist/components/Content/Schema/SchemaComposition.vue.js +17 -17
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +3 -3
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +7 -7
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +31 -31
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +2 -2
- 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 +88 -147
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue2.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +6 -6
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts +14 -0
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-compositions-to-render.js +31 -0
- package/dist/components/Content/Schema/helpers/get-enum-values.d.ts +9 -0
- package/dist/components/Content/Schema/helpers/get-enum-values.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-enum-values.js +20 -0
- package/dist/components/Content/Schema/helpers/get-property-description.d.ts +9 -0
- package/dist/components/Content/Schema/helpers/get-property-description.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-property-description.js +34 -0
- package/dist/components/Content/Schema/helpers/has-complex-array-items.d.ts +10 -0
- package/dist/components/Content/Schema/helpers/has-complex-array-items.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/has-complex-array-items.js +48 -0
- package/dist/components/Content/Schema/helpers/should-display-description.d.ts +10 -0
- package/dist/components/Content/Schema/helpers/should-display-description.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/should-display-description.js +12 -0
- package/dist/components/Content/Schema/helpers/should-display-heading.d.ts +11 -0
- package/dist/components/Content/Schema/helpers/should-display-heading.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/should-display-heading.js +12 -0
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.d.ts +10 -0
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/should-render-array-item-composition.js +15 -0
- package/dist/components/Content/Tags/Tag.vue.js +11 -11
- package/dist/components/Content/Tags/components/ClassicLayout.vue2.js +6 -6
- package/dist/components/Content/Tags/components/ModernLayout.vue2.js +10 -10
- package/dist/components/Content/Tags/components/TagSection.vue.js +14 -14
- package/dist/components/Content/index.d.ts +1 -0
- package/dist/components/Content/index.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue2.js +1 -1
- package/dist/components/HttpMethod/HttpMethod.vue.js +3 -3
- package/dist/components/IntersectionObserver.vue.js +2 -2
- package/dist/components/LoadingSkeleton.vue2.js +2 -2
- package/dist/components/MobileHeader.vue.js +6 -6
- package/dist/components/OperationPath.vue2.js +1 -1
- package/dist/components/OperationsList/OperationsList.vue2.js +5 -5
- package/dist/components/OperationsList/OperationsListItem.vue2.js +8 -8
- package/dist/components/RenderPlugins/RenderPlugins.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +9 -9
- package/dist/components/Section/SectionAccordion.vue2.js +5 -5
- package/dist/components/Section/SectionContainer.vue2.js +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue2.js +3 -3
- package/dist/components/Section/SectionContent.vue2.js +1 -1
- package/dist/components/Section/SectionHeader.vue2.js +2 -2
- package/dist/components/Section/SectionHeaderTag.vue2.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +18 -16
- package/dist/features/Operation/Operation.vue.js +18 -18
- package/dist/features/Operation/components/Header.vue.js +8 -8
- package/dist/features/Operation/components/Headers.vue2.js +5 -5
- package/dist/features/Operation/components/OperationParameters.vue.js +17 -17
- package/dist/features/Operation/components/OperationResponses.vue.js +6 -6
- package/dist/features/Operation/components/ParameterList.vue.js +6 -6
- package/dist/features/Operation/components/ParameterListItem.vue2.js +16 -16
- package/dist/features/Operation/components/RequestBody.vue2.js +17 -17
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +10 -10
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +3 -3
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +49 -49
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +50 -50
- package/dist/features/Search/components/SearchButton.vue.js +5 -5
- package/dist/features/Search/components/SearchModal.vue2.js +1 -1
- package/dist/features/Search/components/SearchResult.vue.js +14 -14
- package/dist/features/example-responses/ExampleResponse.vue2.js +3 -3
- package/dist/features/external-docs/ExternalDocs.vue.js +3 -3
- package/dist/features/info-object/Contact.vue.js +6 -6
- package/dist/features/info-object/License.vue.js +4 -4
- package/dist/features/info-object/TermsOfService.vue.js +2 -2
- package/dist/features/multiple-documents/DocumentSelector.vue.js +1 -1
- package/dist/features/specification-extension/SpecificationExtension.vue2.js +3 -3
- package/dist/features/test-request-button/TestRequestButton.vue2.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbar.vue.js +4 -4
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +1 -1
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +2 -2
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +1 -1
- package/dist/helpers/id-routing.d.ts.map +1 -1
- package/dist/helpers/id-routing.js +7 -1
- package/dist/helpers/load-from-perssistance.d.ts +32 -0
- package/dist/helpers/load-from-perssistance.d.ts.map +1 -0
- package/dist/helpers/load-from-perssistance.js +74 -0
- package/dist/helpers/map-config-plugins.d.ts +17 -2
- package/dist/helpers/map-config-plugins.d.ts.map +1 -1
- package/dist/helpers/map-config-plugins.js +20 -22
- package/dist/helpers/map-config-to-workspace-store.d.ts.map +1 -1
- package/dist/helpers/map-config-to-workspace-store.js +1 -8
- package/dist/helpers/storage.d.ts +6 -6
- package/dist/helpers/storage.d.ts.map +1 -1
- package/dist/helpers/storage.js +15 -10
- package/dist/plugins/hooks/usePluginManager.js +1 -1
- package/dist/style.css +133 -116
- package/package.json +31 -31
|
@@ -63,44 +63,44 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
const { copyToClipboard } = useClipboard();
|
|
64
64
|
return (_ctx, _cache) => {
|
|
65
65
|
return openBlock(), createBlock(unref(SectionAccordion), {
|
|
66
|
-
id:
|
|
66
|
+
id: __props.id,
|
|
67
67
|
"aria-label": operationTitle.value,
|
|
68
68
|
class: "reference-endpoint",
|
|
69
|
-
modelValue: !
|
|
69
|
+
modelValue: !__props.isCollapsed,
|
|
70
70
|
transparent: "",
|
|
71
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = (value) =>
|
|
71
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = (value) => __props.eventBus?.emit("toggle:nav-item", { id: __props.id, open: value }))
|
|
72
72
|
}, createSlots({
|
|
73
73
|
title: withCtx(() => [
|
|
74
74
|
createElementVNode("div", _hoisted_1, [
|
|
75
75
|
createElementVNode("div", _hoisted_2, [
|
|
76
76
|
createVNode(unref(_sfc_main$7), {
|
|
77
77
|
class: "endpoint-type",
|
|
78
|
-
method:
|
|
78
|
+
method: __props.method,
|
|
79
79
|
short: ""
|
|
80
80
|
}, null, 8, ["method"]),
|
|
81
81
|
createVNode(unref(_sfc_main$8), {
|
|
82
82
|
class: "endpoint-anchor",
|
|
83
|
-
onCopyAnchorUrl: _cache[0] || (_cache[0] = () =>
|
|
83
|
+
onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.id }))
|
|
84
84
|
}, {
|
|
85
85
|
default: withCtx(() => [
|
|
86
86
|
createElementVNode("h3", _hoisted_3, [
|
|
87
87
|
createElementVNode("div", _hoisted_4, [
|
|
88
88
|
createVNode(OperationPath, {
|
|
89
|
-
deprecated: unref(isOperationDeprecated)(
|
|
90
|
-
path:
|
|
89
|
+
deprecated: unref(isOperationDeprecated)(__props.operation),
|
|
90
|
+
path: __props.path
|
|
91
91
|
}, null, 8, ["deprecated", "path"])
|
|
92
92
|
]),
|
|
93
93
|
createElementVNode("div", _hoisted_5, toDisplayString(operationTitle.value), 1),
|
|
94
|
-
unref(getOperationStability)(
|
|
94
|
+
unref(getOperationStability)(__props.operation) ? (openBlock(), createBlock(unref(Badge), {
|
|
95
95
|
key: 0,
|
|
96
|
-
class: normalizeClass(["capitalize", unref(getOperationStabilityColor)(
|
|
96
|
+
class: normalizeClass(["capitalize", unref(getOperationStabilityColor)(__props.operation)])
|
|
97
97
|
}, {
|
|
98
98
|
default: withCtx(() => [
|
|
99
|
-
createTextVNode(toDisplayString(unref(getOperationStability)(
|
|
99
|
+
createTextVNode(toDisplayString(unref(getOperationStability)(__props.operation)), 1)
|
|
100
100
|
]),
|
|
101
101
|
_: 1
|
|
102
102
|
}, 8, ["class"])) : createCommentVNode("", true),
|
|
103
|
-
|
|
103
|
+
__props.isWebhook ? (openBlock(), createBlock(unref(Badge), {
|
|
104
104
|
key: 1,
|
|
105
105
|
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
106
106
|
}, {
|
|
@@ -111,7 +111,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
111
|
_: 1
|
|
112
112
|
})) : createCommentVNode("", true),
|
|
113
113
|
createVNode(unref(_sfc_main$6), {
|
|
114
|
-
badges:
|
|
114
|
+
badges: __props.operation["x-badges"],
|
|
115
115
|
position: "before"
|
|
116
116
|
}, null, 8, ["badges"])
|
|
117
117
|
])
|
|
@@ -123,29 +123,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
123
123
|
]),
|
|
124
124
|
actions: withCtx(({ active }) => [
|
|
125
125
|
createVNode(unref(_sfc_main$6), {
|
|
126
|
-
badges:
|
|
126
|
+
badges: __props.operation["x-badges"],
|
|
127
127
|
position: "after"
|
|
128
128
|
}, null, 8, ["badges"]),
|
|
129
|
-
!
|
|
130
|
-
active && !
|
|
129
|
+
!__props.options.hideTestRequestButton ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
130
|
+
active && !__props.isWebhook ? (openBlock(), createBlock(unref(TestRequestButton), {
|
|
131
131
|
key: 0,
|
|
132
|
-
id:
|
|
133
|
-
eventBus:
|
|
134
|
-
method:
|
|
135
|
-
path:
|
|
132
|
+
id: __props.id,
|
|
133
|
+
eventBus: __props.eventBus,
|
|
134
|
+
method: __props.method,
|
|
135
|
+
path: __props.path
|
|
136
136
|
}, null, 8, ["id", "eventBus", "method", "path"])) : (openBlock(), createBlock(unref(ScalarIconPlay), {
|
|
137
137
|
key: 1,
|
|
138
138
|
class: "endpoint-try-hint size-4.5"
|
|
139
139
|
}))
|
|
140
140
|
], 64)) : createCommentVNode("", true),
|
|
141
|
-
|
|
141
|
+
__props.options.showOperationId && __props.operation.operationId ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(__props.operation.operationId), 1)) : createCommentVNode("", true),
|
|
142
142
|
createVNode(unref(ScalarIconButton), {
|
|
143
143
|
class: "endpoint-copy p-0.5",
|
|
144
144
|
icon: unref(ScalarIconCopy),
|
|
145
145
|
label: "Copy endpoint URL",
|
|
146
146
|
size: "xs",
|
|
147
147
|
variant: "ghost",
|
|
148
|
-
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(copyToClipboard)(
|
|
148
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(copyToClipboard)(__props.path), ["stop"]))
|
|
149
149
|
}, null, 8, ["icon"])
|
|
150
150
|
]),
|
|
151
151
|
default: withCtx(() => [
|
|
@@ -156,41 +156,41 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
156
156
|
])) : createCommentVNode("", true),
|
|
157
157
|
createElementVNode("div", _hoisted_10, [
|
|
158
158
|
createVNode(_sfc_main$2, {
|
|
159
|
-
eventBus:
|
|
160
|
-
options:
|
|
159
|
+
eventBus: __props.eventBus,
|
|
160
|
+
options: __props.options,
|
|
161
161
|
parameters: (
|
|
162
162
|
// These have been resolved in the Operation.vue component
|
|
163
|
-
|
|
163
|
+
__props.operation.parameters
|
|
164
164
|
),
|
|
165
|
-
requestBody: unref(getResolvedRef)(
|
|
165
|
+
requestBody: unref(getResolvedRef)(__props.operation.requestBody)
|
|
166
166
|
}, null, 8, ["eventBus", "options", "parameters", "requestBody"])
|
|
167
167
|
]),
|
|
168
168
|
createElementVNode("div", _hoisted_11, [
|
|
169
169
|
createVNode(_sfc_main$3, {
|
|
170
|
-
eventBus:
|
|
171
|
-
options:
|
|
172
|
-
responses:
|
|
170
|
+
eventBus: __props.eventBus,
|
|
171
|
+
options: __props.options,
|
|
172
|
+
responses: __props.operation.responses
|
|
173
173
|
}, null, 8, ["eventBus", "options", "responses"])
|
|
174
174
|
]),
|
|
175
|
-
|
|
175
|
+
__props.operation?.callbacks ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
176
176
|
createVNode(_sfc_main$4, {
|
|
177
|
-
callbacks:
|
|
178
|
-
eventBus:
|
|
179
|
-
options:
|
|
180
|
-
path:
|
|
177
|
+
callbacks: __props.operation.callbacks,
|
|
178
|
+
eventBus: __props.eventBus,
|
|
179
|
+
options: __props.options,
|
|
180
|
+
path: __props.path
|
|
181
181
|
}, null, 8, ["callbacks", "eventBus", "options", "path"])
|
|
182
182
|
])) : createCommentVNode("", true)
|
|
183
183
|
]),
|
|
184
|
-
|
|
184
|
+
__props.operation.responses ? (openBlock(), createBlock(unref(ExampleResponses), {
|
|
185
185
|
key: 0,
|
|
186
186
|
class: "operation-example-card",
|
|
187
|
-
responses:
|
|
187
|
+
responses: __props.operation.responses
|
|
188
188
|
}, null, 8, ["responses"])) : createCommentVNode("", true),
|
|
189
189
|
createElementVNode("div", null, [
|
|
190
|
-
|
|
190
|
+
__props.operation.externalDocs ? (openBlock(), createBlock(unref(LinkList), { key: 0 }, {
|
|
191
191
|
default: withCtx(() => [
|
|
192
192
|
createVNode(unref(_sfc_main$5), {
|
|
193
|
-
value:
|
|
193
|
+
value: __props.operation.externalDocs
|
|
194
194
|
}, null, 8, ["value"])
|
|
195
195
|
]),
|
|
196
196
|
_: 1
|
|
@@ -199,16 +199,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
199
199
|
default: withCtx(() => [
|
|
200
200
|
createVNode(unref(OperationCodeSample), {
|
|
201
201
|
class: "operation-example-card",
|
|
202
|
-
clientOptions:
|
|
203
|
-
eventBus:
|
|
202
|
+
clientOptions: __props.clientOptions,
|
|
203
|
+
eventBus: __props.eventBus,
|
|
204
204
|
fallback: "",
|
|
205
|
-
isWebhook:
|
|
206
|
-
method:
|
|
207
|
-
operation:
|
|
208
|
-
path:
|
|
209
|
-
securitySchemes:
|
|
210
|
-
selectedClient:
|
|
211
|
-
selectedServer:
|
|
205
|
+
isWebhook: __props.isWebhook,
|
|
206
|
+
method: __props.method,
|
|
207
|
+
operation: __props.operation,
|
|
208
|
+
path: __props.path,
|
|
209
|
+
securitySchemes: __props.selectedSecuritySchemes,
|
|
210
|
+
selectedClient: __props.selectedClient,
|
|
211
|
+
selectedServer: __props.selectedServer
|
|
212
212
|
}, null, 8, ["clientOptions", "eventBus", "isWebhook", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
|
|
213
213
|
]),
|
|
214
214
|
_: 1
|
|
@@ -218,15 +218,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
218
218
|
]),
|
|
219
219
|
_: 2
|
|
220
220
|
}, [
|
|
221
|
-
|
|
221
|
+
__props.operation.description ? {
|
|
222
222
|
name: "description",
|
|
223
223
|
fn: withCtx(() => [
|
|
224
224
|
createVNode(unref(ScalarMarkdown), {
|
|
225
|
-
anchorPrefix:
|
|
225
|
+
anchorPrefix: __props.id,
|
|
226
226
|
"aria-label": "Operation Description",
|
|
227
227
|
role: "group",
|
|
228
228
|
transformType: "heading",
|
|
229
|
-
value:
|
|
229
|
+
value: __props.operation.description,
|
|
230
230
|
withAnchors: "",
|
|
231
231
|
withImages: ""
|
|
232
232
|
}, null, 8, ["anchorPrefix", "value"])
|
|
@@ -49,33 +49,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
const operationExtensions = computed(() => getXKeysFromObject(__props.operation));
|
|
50
50
|
return (_ctx, _cache) => {
|
|
51
51
|
return openBlock(), createBlock(unref(Section), {
|
|
52
|
-
id:
|
|
52
|
+
id: __props.id,
|
|
53
53
|
"aria-labelledby": unref(labelId),
|
|
54
54
|
label: operationTitle.value,
|
|
55
55
|
tabindex: "-1",
|
|
56
|
-
onIntersecting: _cache[1] || (_cache[1] = () =>
|
|
56
|
+
onIntersecting: _cache[1] || (_cache[1] = () => __props.eventBus?.emit("intersecting:nav-item", { id: __props.id }))
|
|
57
57
|
}, {
|
|
58
58
|
default: withCtx(() => [
|
|
59
59
|
createVNode(unref(SectionContent), null, {
|
|
60
60
|
default: withCtx(() => [
|
|
61
61
|
createElementVNode("div", _hoisted_1, [
|
|
62
62
|
createElementVNode("div", _hoisted_2, [
|
|
63
|
-
|
|
63
|
+
__props.options?.showOperationId && __props.operation.operationId ? (openBlock(), createBlock(unref(Badge), { key: 0 }, {
|
|
64
64
|
default: withCtx(() => [
|
|
65
|
-
createTextVNode(toDisplayString(
|
|
65
|
+
createTextVNode(toDisplayString(__props.operation.operationId), 1)
|
|
66
66
|
]),
|
|
67
67
|
_: 1
|
|
68
68
|
})) : createCommentVNode("", true),
|
|
69
|
-
unref(getOperationStability)(
|
|
69
|
+
unref(getOperationStability)(__props.operation) ? (openBlock(), createBlock(unref(Badge), {
|
|
70
70
|
key: 1,
|
|
71
|
-
class: normalizeClass(["capitalize", unref(getOperationStabilityColor)(
|
|
71
|
+
class: normalizeClass(["capitalize", unref(getOperationStabilityColor)(__props.operation)])
|
|
72
72
|
}, {
|
|
73
73
|
default: withCtx(() => [
|
|
74
|
-
createTextVNode(toDisplayString(unref(getOperationStability)(
|
|
74
|
+
createTextVNode(toDisplayString(unref(getOperationStability)(__props.operation)), 1)
|
|
75
75
|
]),
|
|
76
76
|
_: 1
|
|
77
77
|
}, 8, ["class"])) : createCommentVNode("", true),
|
|
78
|
-
|
|
78
|
+
__props.isWebhook ? (openBlock(), createBlock(unref(Badge), {
|
|
79
79
|
key: 2,
|
|
80
80
|
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
81
81
|
}, {
|
|
@@ -86,24 +86,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
_: 1
|
|
87
87
|
})) : createCommentVNode("", true),
|
|
88
88
|
createVNode(unref(_sfc_main$1), {
|
|
89
|
-
badges:
|
|
89
|
+
badges: __props.operation["x-badges"],
|
|
90
90
|
position: "before"
|
|
91
91
|
}, null, 8, ["badges"])
|
|
92
92
|
]),
|
|
93
93
|
createElementVNode("div", _hoisted_3, [
|
|
94
94
|
createVNode(unref(_sfc_main$1), {
|
|
95
|
-
badges:
|
|
95
|
+
badges: __props.operation["x-badges"],
|
|
96
96
|
position: "after"
|
|
97
97
|
}, null, 8, ["badges"])
|
|
98
98
|
])
|
|
99
99
|
]),
|
|
100
100
|
createElementVNode("div", {
|
|
101
|
-
class: normalizeClass(unref(isOperationDeprecated)(
|
|
101
|
+
class: normalizeClass(unref(isOperationDeprecated)(__props.operation) ? "deprecated" : "")
|
|
102
102
|
}, [
|
|
103
103
|
createVNode(unref(SectionHeader), null, {
|
|
104
104
|
default: withCtx(() => [
|
|
105
105
|
createVNode(unref(_sfc_main$2), {
|
|
106
|
-
onCopyAnchorUrl: _cache[0] || (_cache[0] = () =>
|
|
106
|
+
onCopyAnchorUrl: _cache[0] || (_cache[0] = () => __props.eventBus?.emit("copy-url:nav-item", { id: __props.id }))
|
|
107
107
|
}, {
|
|
108
108
|
default: withCtx(() => [
|
|
109
109
|
createVNode(unref(SectionHeaderTag), {
|
|
@@ -129,40 +129,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
129
|
createElementVNode("div", _hoisted_4, [
|
|
130
130
|
createVNode(_sfc_main$3, { value: operationExtensions.value }, null, 8, ["value"]),
|
|
131
131
|
createVNode(unref(ScalarMarkdown), {
|
|
132
|
-
anchorPrefix:
|
|
132
|
+
anchorPrefix: __props.id,
|
|
133
133
|
"aria-label": "Operation Description",
|
|
134
134
|
role: "group",
|
|
135
135
|
transformType: "heading",
|
|
136
|
-
value:
|
|
136
|
+
value: __props.operation.description,
|
|
137
137
|
withAnchors: "",
|
|
138
138
|
withImages: ""
|
|
139
139
|
}, null, 8, ["anchorPrefix", "value"]),
|
|
140
140
|
createVNode(_sfc_main$4, {
|
|
141
|
-
breadcrumb: [
|
|
142
|
-
eventBus:
|
|
143
|
-
options:
|
|
141
|
+
breadcrumb: [__props.id],
|
|
142
|
+
eventBus: __props.eventBus,
|
|
143
|
+
options: __props.options,
|
|
144
144
|
parameters: (
|
|
145
145
|
// These have been resolved in the Operation.vue component
|
|
146
|
-
|
|
146
|
+
__props.operation.parameters
|
|
147
147
|
),
|
|
148
|
-
requestBody: unref(getResolvedRef)(
|
|
148
|
+
requestBody: unref(getResolvedRef)(__props.operation.requestBody)
|
|
149
149
|
}, null, 8, ["breadcrumb", "eventBus", "options", "parameters", "requestBody"]),
|
|
150
150
|
createVNode(_sfc_main$5, {
|
|
151
|
-
breadcrumb: [
|
|
152
|
-
collapsableItems: !
|
|
153
|
-
eventBus:
|
|
154
|
-
options:
|
|
155
|
-
responses:
|
|
151
|
+
breadcrumb: [__props.id],
|
|
152
|
+
collapsableItems: !__props.options.expandAllResponses,
|
|
153
|
+
eventBus: __props.eventBus,
|
|
154
|
+
options: __props.options,
|
|
155
|
+
responses: __props.operation.responses
|
|
156
156
|
}, null, 8, ["breadcrumb", "collapsableItems", "eventBus", "options", "responses"]),
|
|
157
157
|
createVNode(unref(ScalarErrorBoundary), null, {
|
|
158
158
|
default: withCtx(() => [
|
|
159
|
-
|
|
159
|
+
__props.operation.callbacks ? (openBlock(), createBlock(_sfc_main$6, {
|
|
160
160
|
key: 0,
|
|
161
|
-
callbacks:
|
|
161
|
+
callbacks: __props.operation.callbacks,
|
|
162
162
|
class: "mt-6",
|
|
163
|
-
eventBus:
|
|
164
|
-
options:
|
|
165
|
-
path:
|
|
163
|
+
eventBus: __props.eventBus,
|
|
164
|
+
options: __props.options,
|
|
165
|
+
path: __props.path
|
|
166
166
|
}, null, 8, ["callbacks", "eventBus", "options", "path"])) : createCommentVNode("", true)
|
|
167
167
|
]),
|
|
168
168
|
_: 1
|
|
@@ -174,10 +174,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
174
174
|
createVNode(unref(SectionColumn), null, {
|
|
175
175
|
default: withCtx(() => [
|
|
176
176
|
createElementVNode("div", _hoisted_5, [
|
|
177
|
-
|
|
177
|
+
__props.operation.externalDocs ? (openBlock(), createBlock(unref(LinkList), { key: 0 }, {
|
|
178
178
|
default: withCtx(() => [
|
|
179
179
|
createVNode(unref(_sfc_main$7), {
|
|
180
|
-
value:
|
|
180
|
+
value: __props.operation.externalDocs
|
|
181
181
|
}, null, 8, ["value"])
|
|
182
182
|
]),
|
|
183
183
|
_: 1
|
|
@@ -185,35 +185,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
185
185
|
createVNode(unref(ScalarErrorBoundary), null, {
|
|
186
186
|
default: withCtx(() => [
|
|
187
187
|
createVNode(unref(OperationCodeSample), {
|
|
188
|
-
clientOptions:
|
|
189
|
-
eventBus:
|
|
188
|
+
clientOptions: __props.clientOptions,
|
|
189
|
+
eventBus: __props.eventBus,
|
|
190
190
|
fallback: "",
|
|
191
|
-
isWebhook:
|
|
192
|
-
method:
|
|
193
|
-
operation:
|
|
194
|
-
path:
|
|
195
|
-
securitySchemes:
|
|
196
|
-
selectedClient:
|
|
197
|
-
selectedServer:
|
|
191
|
+
isWebhook: __props.isWebhook,
|
|
192
|
+
method: __props.method,
|
|
193
|
+
operation: __props.operation,
|
|
194
|
+
path: __props.path,
|
|
195
|
+
securitySchemes: __props.selectedSecuritySchemes,
|
|
196
|
+
selectedClient: __props.selectedClient,
|
|
197
|
+
selectedServer: __props.selectedServer
|
|
198
198
|
}, createSlots({
|
|
199
199
|
header: withCtx(() => [
|
|
200
200
|
createVNode(OperationPath, {
|
|
201
201
|
class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
|
|
202
|
-
deprecated:
|
|
203
|
-
path:
|
|
202
|
+
deprecated: __props.operation?.deprecated,
|
|
203
|
+
path: __props.path
|
|
204
204
|
}, null, 8, ["deprecated", "path"])
|
|
205
205
|
]),
|
|
206
206
|
_: 2
|
|
207
207
|
}, [
|
|
208
|
-
!
|
|
208
|
+
!__props.isWebhook ? {
|
|
209
209
|
name: "footer",
|
|
210
210
|
fn: withCtx(() => [
|
|
211
|
-
!
|
|
211
|
+
!__props.options.hideTestRequestButton ? (openBlock(), createBlock(unref(TestRequestButton), {
|
|
212
212
|
key: 0,
|
|
213
|
-
id:
|
|
214
|
-
eventBus:
|
|
215
|
-
method:
|
|
216
|
-
path:
|
|
213
|
+
id: __props.id,
|
|
214
|
+
eventBus: __props.eventBus,
|
|
215
|
+
method: __props.method,
|
|
216
|
+
path: __props.path
|
|
217
217
|
}, null, 8, ["id", "eventBus", "method", "path"])) : createCommentVNode("", true)
|
|
218
218
|
]),
|
|
219
219
|
key: "0"
|
|
@@ -224,9 +224,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
224
224
|
}),
|
|
225
225
|
createVNode(unref(ScalarErrorBoundary), null, {
|
|
226
226
|
default: withCtx(() => [
|
|
227
|
-
|
|
227
|
+
__props.operation.responses ? (openBlock(), createBlock(unref(ExampleResponses), {
|
|
228
228
|
key: 0,
|
|
229
|
-
responses:
|
|
229
|
+
responses: __props.operation.responses,
|
|
230
230
|
style: { "margin-top": "12px" }
|
|
231
231
|
}, null, 8, ["responses"])) : createCommentVNode("", true)
|
|
232
232
|
]),
|
|
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
42
|
}
|
|
43
43
|
return (_ctx, _cache) => {
|
|
44
44
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
45
|
-
|
|
45
|
+
__props.forceIcon ? (openBlock(), createBlock(unref(ScalarIconButton), {
|
|
46
46
|
key: 0,
|
|
47
47
|
icon: unref(ScalarIconMagnifyingGlass),
|
|
48
48
|
label: "Search",
|
|
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "sr-only" }, "CTRL", -1)),
|
|
63
63
|
_cache[3] || (_cache[3] = createElementVNode("span", { "aria-hidden": "true" }, "⌃", -1))
|
|
64
64
|
], 64)),
|
|
65
|
-
createTextVNode(" " + toDisplayString(
|
|
65
|
+
createTextVNode(" " + toDisplayString(__props.searchHotKey), 1)
|
|
66
66
|
]),
|
|
67
67
|
default: withCtx(() => [
|
|
68
68
|
_cache[4] || (_cache[4] = createElementVNode("span", { class: "sr-only" }, "Open Search", -1)),
|
|
@@ -74,9 +74,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
_: 1
|
|
75
75
|
}, 8, ["class"])),
|
|
76
76
|
createVNode(SearchModal, {
|
|
77
|
-
document:
|
|
78
|
-
eventBus:
|
|
79
|
-
hideModels:
|
|
77
|
+
document: __props.document,
|
|
78
|
+
eventBus: __props.eventBus,
|
|
79
|
+
hideModels: __props.hideModels,
|
|
80
80
|
modalState: unref(modalState)
|
|
81
81
|
}, null, 8, ["document", "eventBus", "hideModels", "modalState"])
|
|
82
82
|
], 64);
|
|
@@ -53,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
53
|
return (_ctx, _cache) => {
|
|
54
54
|
return openBlock(), createBlock(unref(ScalarModal), {
|
|
55
55
|
"aria-label": "Reference Search",
|
|
56
|
-
state:
|
|
56
|
+
state: __props.modalState,
|
|
57
57
|
variant: "search"
|
|
58
58
|
}, {
|
|
59
59
|
default: withCtx(() => [
|
|
@@ -29,49 +29,49 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
};
|
|
30
30
|
return (_ctx, _cache) => {
|
|
31
31
|
return openBlock(), createBlock(unref(ScalarSearchResultItem), {
|
|
32
|
-
id:
|
|
33
|
-
icon: ENTRY_ICONS[
|
|
34
|
-
selected:
|
|
32
|
+
id: __props.id,
|
|
33
|
+
icon: ENTRY_ICONS[__props.result.item.type],
|
|
34
|
+
selected: __props.isSelected
|
|
35
35
|
}, createSlots({
|
|
36
36
|
default: withCtx(() => [
|
|
37
37
|
createElementVNode("span", {
|
|
38
38
|
class: normalizeClass({
|
|
39
|
-
"text-decoration-line":
|
|
39
|
+
"text-decoration-line": __props.result.item.entry.type === "operation" && __props.result.item.entry.isDeprecated
|
|
40
40
|
})
|
|
41
41
|
}, [
|
|
42
42
|
createElementVNode("span", _hoisted_1, [
|
|
43
|
-
createTextVNode(toDisplayString(ENTRY_LABELS[
|
|
44
|
-
|
|
43
|
+
createTextVNode(toDisplayString(ENTRY_LABELS[__props.result.item.type]) + ": ", 1),
|
|
44
|
+
__props.result.item.entry.type === "operation" && __props.result.item.entry.isDeprecated ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
45
45
|
createTextVNode(" (Deprecated) ")
|
|
46
46
|
], 64)) : createCommentVNode("", true)
|
|
47
47
|
]),
|
|
48
|
-
createTextVNode(" " + toDisplayString(
|
|
48
|
+
createTextVNode(" " + toDisplayString(__props.result.item.title) + " ", 1),
|
|
49
49
|
_cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, ",", -1))
|
|
50
50
|
], 2)
|
|
51
51
|
]),
|
|
52
52
|
_: 2
|
|
53
53
|
}, [
|
|
54
|
-
|
|
54
|
+
__props.result.item.type !== "webhook" && (__props.result.item.method || __props.result.item.path) && __props.result.item.path !== __props.result.item.title ? {
|
|
55
55
|
name: "description",
|
|
56
56
|
fn: withCtx(() => [
|
|
57
57
|
createElementVNode("span", _hoisted_2, [
|
|
58
|
-
|
|
58
|
+
__props.result.item.type === "operation" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
59
59
|
createVNode(unref(HttpMethod), {
|
|
60
60
|
"aria-hidden": "true",
|
|
61
|
-
method:
|
|
61
|
+
method: __props.result.item.method ?? "get"
|
|
62
62
|
}, null, 8, ["method"]),
|
|
63
|
-
createElementVNode("span", _hoisted_3, " HTTP Method: " + toDisplayString(
|
|
63
|
+
createElementVNode("span", _hoisted_3, " HTTP Method: " + toDisplayString(__props.result.item.method ?? "get"), 1)
|
|
64
64
|
], 64)) : createCommentVNode("", true),
|
|
65
65
|
_cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Path: ", -1)),
|
|
66
|
-
createTextVNode(" " + toDisplayString(
|
|
66
|
+
createTextVNode(" " + toDisplayString(__props.result.item.path), 1)
|
|
67
67
|
])
|
|
68
68
|
]),
|
|
69
69
|
key: "0"
|
|
70
|
-
} :
|
|
70
|
+
} : __props.result.item.description ? {
|
|
71
71
|
name: "description",
|
|
72
72
|
fn: withCtx(() => [
|
|
73
73
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "sr-only" }, "Description: ", -1)),
|
|
74
|
-
createTextVNode(" " + toDisplayString(
|
|
74
|
+
createTextVNode(" " + toDisplayString(__props.result.item.description), 1)
|
|
75
75
|
]),
|
|
76
76
|
key: "1"
|
|
77
77
|
} : void 0
|
|
@@ -34,17 +34,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
() => prettyPrintJson(getContent())
|
|
35
35
|
);
|
|
36
36
|
return (_ctx, _cache) => {
|
|
37
|
-
return
|
|
37
|
+
return __props.example !== void 0 && !shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
|
|
38
38
|
key: 0,
|
|
39
39
|
class: "bg-b-2 -outline-offset-2",
|
|
40
40
|
lang: "json",
|
|
41
41
|
prettyPrintedContent: prettyPrintedContent.value
|
|
42
|
-
}, null, 8, ["prettyPrintedContent"])) :
|
|
42
|
+
}, null, 8, ["prettyPrintedContent"])) : __props.response?.schema && !shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
|
|
43
43
|
key: 1,
|
|
44
44
|
class: "bg-b-2 -outline-offset-2",
|
|
45
45
|
lang: "json",
|
|
46
46
|
prettyPrintedContent: prettyPrintedContent.value
|
|
47
|
-
}, null, 8, ["prettyPrintedContent"])) : (
|
|
47
|
+
}, null, 8, ["prettyPrintedContent"])) : (__props.example !== void 0 || __props.response?.schema) && shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarVirtualText), {
|
|
48
48
|
key: 2,
|
|
49
49
|
containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
|
|
50
50
|
contentClass: "language-plaintext whitespace-pre font-code text-base",
|
|
@@ -20,9 +20,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
},
|
|
21
21
|
setup(__props) {
|
|
22
22
|
return (_ctx, _cache) => {
|
|
23
|
-
return
|
|
23
|
+
return __props.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
24
24
|
createElementVNode("a", {
|
|
25
|
-
href:
|
|
25
|
+
href: __props.value.url,
|
|
26
26
|
class: "text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none",
|
|
27
27
|
target: "_blank",
|
|
28
28
|
rel: "noopener noreferrer"
|
|
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
weight: "bold",
|
|
32
32
|
class: "size-3 text-current"
|
|
33
33
|
}),
|
|
34
|
-
|
|
34
|
+
__props.value.description ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.value.description), 1)) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(__props.value.url), 1))
|
|
35
35
|
], 8, _hoisted_2)
|
|
36
36
|
])) : createCommentVNode("", true);
|
|
37
37
|
};
|
|
@@ -22,21 +22,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
return (_ctx, _cache) => {
|
|
25
|
-
return
|
|
26
|
-
|
|
25
|
+
return __props.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
26
|
+
__props.value?.email ? (openBlock(), createElementBlock("a", {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: normalizeClass(unref(variants)({ link: true })),
|
|
29
|
-
href: `mailto:${
|
|
29
|
+
href: `mailto:${__props.value?.email}`
|
|
30
30
|
}, [
|
|
31
31
|
createVNode(unref(ScalarIconEnvelopeSimple), {
|
|
32
32
|
weight: "bold",
|
|
33
33
|
class: "size-3 text-current"
|
|
34
34
|
}),
|
|
35
|
-
createElementVNode("span", _hoisted_3, toDisplayString(
|
|
36
|
-
], 10, _hoisted_2)) :
|
|
35
|
+
createElementVNode("span", _hoisted_3, toDisplayString(__props.value.name), 1)
|
|
36
|
+
], 10, _hoisted_2)) : __props.value?.name ? (openBlock(), createElementBlock("span", {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: normalizeClass(unref(variants)({ link: false }))
|
|
39
|
-
}, toDisplayString(
|
|
39
|
+
}, toDisplayString(__props.value.name), 3)) : createCommentVNode("", true)
|
|
40
40
|
])) : createCommentVNode("", true);
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -12,10 +12,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
12
|
setup(__props) {
|
|
13
13
|
return (_ctx, _cache) => {
|
|
14
14
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
15
|
-
|
|
15
|
+
__props.value?.url ? (openBlock(), createElementBlock("a", {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "text-c-1 hover:bg-b-2 mr-2 flex min-h-7 min-w-7 items-center rounded-lg border px-2 py-1 no-underline group-last:mr-0 xl:border-none",
|
|
18
|
-
href:
|
|
18
|
+
href: __props.value.url,
|
|
19
19
|
target: "_blank",
|
|
20
20
|
rel: "noopener noreferrer"
|
|
21
21
|
}, [
|
|
@@ -23,13 +23,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
weight: "bold",
|
|
24
24
|
class: "size-3 text-current"
|
|
25
25
|
}),
|
|
26
|
-
createElementVNode("span", _hoisted_3, toDisplayString(
|
|
26
|
+
createElementVNode("span", _hoisted_3, toDisplayString(__props.value?.name || __props.value.identifier || __props.value.url), 1)
|
|
27
27
|
], 8, _hoisted_2)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
28
28
|
createVNode(unref(ScalarIconGavel), {
|
|
29
29
|
weight: "bold",
|
|
30
30
|
class: "size-3 text-current"
|
|
31
31
|
}),
|
|
32
|
-
createElementVNode("span", _hoisted_4, toDisplayString(
|
|
32
|
+
createElementVNode("span", _hoisted_4, toDisplayString(__props.value?.name), 1)
|
|
33
33
|
], 64))
|
|
34
34
|
]);
|
|
35
35
|
};
|