@scalar/api-reference 1.35.5 → 1.35.6
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 +21 -0
- package/dist/browser/standalone.js +18150 -18465
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/WithBreadcrumb.vue2.js +8 -11
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +4 -4
- package/dist/components/ApiReferenceLayout.vue2.js +247 -268
- package/dist/components/Badge/Badge.vue.js +1 -1
- package/dist/components/ClassicHeader.vue.js +1 -1
- package/dist/components/Content/Content.vue.js +145 -169
- package/dist/components/Content/Content.vue3.js +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue2.js +32 -35
- package/dist/components/Content/Models/Models.vue.js +27 -31
- package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +32 -35
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +26 -27
- package/dist/components/Content/Operations/get-current-index.js +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +1 -1
- package/dist/components/Content/Schema/Schema.vue2.js +68 -74
- package/dist/components/Content/Schema/SchemaComposition.vue.js +42 -45
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +45 -50
- package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +41 -48
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +142 -157
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +160 -164
- package/dist/components/Content/Schema/helpers/get-schema-type.js +15 -17
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +74 -77
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +10 -11
- package/dist/components/Content/Tags/ClassicLayout.vue.js +1 -1
- package/dist/components/Content/Tags/ClassicLayout.vue2.js +36 -39
- package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
- package/dist/components/Content/Tags/ModernLayout.vue2.js +31 -35
- package/dist/components/Content/Tags/TagSection.vue.js +86 -92
- package/dist/components/GettingStarted.vue.js +1 -1
- package/dist/components/LinkList/LinkList.vue.js +1 -1
- package/dist/components/LoadingSkeleton.vue.js +1 -1
- package/dist/components/MobileHeader.vue.d.ts.map +1 -1
- package/dist/components/MobileHeader.vue.js +3 -3
- package/dist/components/MobileHeader.vue2.js +13 -12
- package/dist/components/OperationPath.vue.js +1 -1
- package/dist/components/OperationsList/OperationsList.vue.js +1 -1
- package/dist/components/OperationsList/OperationsList.vue2.js +45 -51
- package/dist/components/OperationsList/OperationsListItem.vue.js +1 -1
- package/dist/components/ScreenReader.vue.js +1 -1
- package/dist/components/Section/CompactSection.vue.js +1 -1
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/Section/Section.vue2.js +13 -14
- package/dist/components/Section/SectionAccordion.vue.js +1 -1
- package/dist/components/Section/SectionAccordion.vue2.js +29 -30
- package/dist/components/Section/SectionColumn.vue.js +1 -1
- package/dist/components/Section/SectionColumns.vue.js +1 -1
- package/dist/components/Section/SectionContainer.vue.js +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +1 -1
- package/dist/components/Section/SectionContent.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue.js +1 -1
- package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
- package/dist/components/SectionFlare/SectionFlare.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue2.js +12 -13
- package/dist/features/Operation/Operation.vue.js +31 -36
- package/dist/features/Operation/components/Headers.vue.js +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +8 -11
- package/dist/features/Operation/components/ParameterList.vue.js +21 -24
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue2.js +36 -37
- package/dist/features/Operation/components/RequestBody.vue.js +1 -1
- package/dist/features/Operation/components/RequestBody.vue2.js +45 -52
- package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +32 -35
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +4 -4
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +114 -119
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +87 -89
- package/dist/features/Search/components/SearchButton.vue.js +23 -25
- package/dist/features/Search/components/SearchModal.vue.js +1 -1
- package/dist/features/Search/components/SearchModal.vue2.js +53 -54
- package/dist/features/api-client-modal/ApiClientModal.vue.js +31 -38
- package/dist/features/document-source/hooks/useDocumentFetcher.js +17 -18
- package/dist/features/document-source/hooks/useDocumentSource.js +16 -16
- package/dist/features/example-responses/ExampleResponse.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponse.vue2.js +23 -26
- package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
- package/dist/features/example-responses/ExampleResponses.vue2.js +128 -153
- package/dist/features/info-object/Contact.vue.js +24 -27
- package/dist/features/info-object/License.vue.js +26 -29
- package/dist/features/multiple-documents/DocumentSelector.vue.js +22 -31
- package/dist/features/multiple-documents/useMultipleDocuments.js +52 -56
- package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -1
- package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
- package/dist/features/sidebar/components/Sidebar.vue2.js +74 -79
- package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarElement.vue2.js +52 -53
- package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
- package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
- package/dist/features/specification-extension/SpecificationExtension.vue2.js +28 -31
- package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue2.js +1 -2
- package/dist/features/traverse-schema/helpers/traverse-description.js +13 -14
- package/dist/features/traverse-schema/helpers/traverse-document.js +14 -15
- package/dist/features/traverse-schema/helpers/traverse-paths.js +20 -23
- package/dist/features/traverse-schema/helpers/traverse-schemas.js +13 -15
- package/dist/features/traverse-schema/helpers/traverse-webhooks.js +8 -10
- package/dist/hooks/useFreezing.js +14 -14
- package/dist/hooks/useNavState.js +37 -39
- package/dist/index.js +2 -2
- package/dist/libs/openapi.js +28 -31
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +68 -75
- package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +116 -135
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +40 -47
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +45 -46
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +109 -125
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +84 -84
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.js +12 -13
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +1 -4
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +1 -1
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +77 -82
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +46 -49
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +1 -1
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +74 -89
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +24 -27
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +106 -119
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +11 -12
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +3 -3
- package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.js +11 -14
- package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +45 -48
- package/dist/v2/helpers/get-document-name.js +10 -10
- package/dist/v2/helpers/map-configuration.js +48 -51
- package/dist/v2/hooks/use-legacy-store-events.js +44 -48
- package/dist/v2/hooks/use-workspace-store-events.js +23 -26
- package/package.json +22 -22
- package/dist/components/ApiReferenceLayout.vue3.js +0 -4
- package/dist/components/ApiReferenceLayout.vue4.js +0 -4
- package/dist/components/ApiReferenceLayout.vue5.js +0 -4
- package/dist/components/ApiReferenceLayout.vue6.js +0 -4
- package/dist/components/Badge/Badge.vue3.js +0 -4
- package/dist/components/ClassicHeader.vue2.js +0 -4
- package/dist/components/Content/Content.vue2.js +0 -4
- package/dist/components/Content/Models/ClassicLayout.vue3.js +0 -4
- package/dist/components/Content/Models/ModernLayout.vue3.js +0 -4
- package/dist/components/Content/Schema/Schema.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaHeading.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaProperty.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +0 -4
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +0 -4
- package/dist/components/Content/Tags/ClassicLayout.vue3.js +0 -4
- package/dist/components/Content/Tags/ModernLayout.vue3.js +0 -4
- package/dist/components/GettingStarted.vue3.js +0 -4
- package/dist/components/LinkList/LinkList.vue3.js +0 -4
- package/dist/components/LoadingSkeleton.vue3.js +0 -4
- package/dist/components/MobileHeader.vue3.js +0 -4
- package/dist/components/OperationPath.vue3.js +0 -4
- package/dist/components/OperationsList/OperationsList.vue3.js +0 -4
- package/dist/components/OperationsList/OperationsListItem.vue3.js +0 -4
- package/dist/components/ScreenReader.vue3.js +0 -4
- package/dist/components/Section/CompactSection.vue3.js +0 -4
- package/dist/components/Section/Section.vue3.js +0 -4
- package/dist/components/Section/SectionAccordion.vue3.js +0 -4
- package/dist/components/Section/SectionColumn.vue2.js +0 -4
- package/dist/components/Section/SectionColumns.vue2.js +0 -4
- package/dist/components/Section/SectionContainer.vue3.js +0 -4
- package/dist/components/Section/SectionContainerAccordion.vue3.js +0 -4
- package/dist/components/Section/SectionContent.vue3.js +0 -4
- package/dist/components/Section/SectionHeader.vue3.js +0 -4
- package/dist/components/Section/SectionHeaderTag.vue3.js +0 -4
- package/dist/components/SectionFlare/SectionFlare.vue2.js +0 -4
- package/dist/components/ShowMoreButton.vue3.js +0 -4
- package/dist/features/Operation/components/Headers.vue3.js +0 -4
- package/dist/features/Operation/components/ParameterListItem.vue3.js +0 -4
- package/dist/features/Operation/components/RequestBody.vue3.js +0 -4
- package/dist/features/Operation/components/callbacks/Callback.vue3.js +0 -4
- package/dist/features/Operation/layouts/ClassicLayout.vue3.js +0 -4
- package/dist/features/Operation/layouts/ModernLayout.vue3.js +0 -4
- package/dist/features/Search/components/SearchModal.vue3.js +0 -4
- package/dist/features/example-responses/ExampleResponse.vue3.js +0 -4
- package/dist/features/example-responses/ExampleResponseTab.vue3.js +0 -4
- package/dist/features/example-responses/ExampleResponseTabList.vue3.js +0 -4
- package/dist/features/example-responses/ExampleResponses.vue3.js +0 -4
- package/dist/features/sidebar/components/Sidebar.vue3.js +0 -4
- package/dist/features/sidebar/components/SidebarElement.vue3.js +0 -4
- package/dist/features/sidebar/components/SidebarGroup.vue3.js +0 -4
- package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +0 -4
- package/dist/features/test-request-button/TestRequestButton.vue3.js +0 -4
- package/dist/v2/ApiReferenceWorkspace.vue2.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue3.js +0 -4
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue3.js +0 -4
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue3.js +0 -4
- package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue3.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue3.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue3.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue3.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue2.js +0 -4
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue3.js +0 -4
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +0 -4
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdown as
|
|
3
|
-
import { ScalarIconWebhooksLogo as
|
|
4
|
-
import { getOperationStability as
|
|
5
|
-
import { getResolvedRef as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { defineComponent as v, computed as S, useId as C, createBlock as r, openBlock as i, unref as o, withCtx as t, createVNode as a, createElementVNode as s, createCommentVNode as l, normalizeClass as c, createTextVNode as n, toDisplayString as h, createSlots as w } from "vue";
|
|
2
|
+
import { ScalarMarkdown as B, ScalarErrorBoundary as p } from "@scalar/components";
|
|
3
|
+
import { ScalarIconWebhooksLogo as O } from "@scalar/icons";
|
|
4
|
+
import { getOperationStability as b, getOperationStabilityColor as W, isOperationDeprecated as I } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { getResolvedRef as R } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
6
|
+
import $ from "../../../components/OperationPath.vue.js";
|
|
7
|
+
import q from "../components/callbacks/Callbacks.vue.js";
|
|
8
|
+
import L from "../components/OperationParameters.vue.js";
|
|
9
|
+
import T from "../components/OperationResponses.vue.js";
|
|
10
10
|
import D from "../../../components/Section/Section.vue.js";
|
|
11
11
|
import E from "../../../components/Section/SectionContent.vue.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import g from "../../../components/Badge/Badge.vue.js";
|
|
13
|
+
import y from "../../x-badges/XBadges.vue.js";
|
|
14
14
|
import N from "../../../components/Section/SectionHeader.vue.js";
|
|
15
15
|
import V from "../../../components/Anchor/Anchor.vue.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
const
|
|
16
|
+
import _ from "../../../components/Section/SectionHeaderTag.vue.js";
|
|
17
|
+
import P from "../../../components/Section/SectionColumns.vue.js";
|
|
18
|
+
import k from "../../../components/Section/SectionColumn.vue.js";
|
|
19
|
+
import j from "../../../components/LinkList/LinkList.vue.js";
|
|
20
|
+
import z from "../../external-docs/ExternalDocs.vue.js";
|
|
21
|
+
import A from "../../../v2/blocks/scalar-request-example-block/components/RequestExample.vue.js";
|
|
22
|
+
import H from "../../test-request-button/TestRequestButton.vue.js";
|
|
23
|
+
import M from "../../example-responses/ExampleResponses.vue.js";
|
|
24
|
+
const F = { class: "flex flex-row justify-between gap-1" }, G = { class: "flex gap-1" }, J = { class: "flex gap-1" }, K = { class: "operation-details" }, Q = { class: "examples" }, ye = /* @__PURE__ */ v({
|
|
25
25
|
__name: "ModernLayout",
|
|
26
26
|
props: {
|
|
27
27
|
id: {},
|
|
@@ -36,65 +36,65 @@ const G = { class: "flex flex-row justify-between gap-1" }, J = { class: "flex g
|
|
|
36
36
|
store: {}
|
|
37
37
|
},
|
|
38
38
|
setup(d) {
|
|
39
|
-
const m =
|
|
39
|
+
const m = S(() => d.operation.summary || d.path || ""), u = C();
|
|
40
40
|
return (e, f) => (i(), r(o(D), {
|
|
41
41
|
id: e.id,
|
|
42
42
|
"aria-labelledby": o(u),
|
|
43
43
|
label: m.value,
|
|
44
44
|
tabindex: "-1"
|
|
45
45
|
}, {
|
|
46
|
-
default:
|
|
47
|
-
|
|
46
|
+
default: t(() => [
|
|
47
|
+
a(o(E), {
|
|
48
48
|
loading: e.config.isLoading
|
|
49
49
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
o(
|
|
50
|
+
default: t(() => [
|
|
51
|
+
s("div", F, [
|
|
52
|
+
s("div", G, [
|
|
53
|
+
o(b)(e.operation) ? (i(), r(o(g), {
|
|
54
54
|
key: 0,
|
|
55
|
-
class:
|
|
55
|
+
class: c(["capitalize", o(W)(e.operation)])
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
58
|
-
n(
|
|
57
|
+
default: t(() => [
|
|
58
|
+
n(h(o(b)(e.operation)), 1)
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
|
-
}, 8, ["class"])) :
|
|
62
|
-
e.isWebhook ? (i(), r(o(
|
|
61
|
+
}, 8, ["class"])) : l("", !0),
|
|
62
|
+
e.isWebhook ? (i(), r(o(g), {
|
|
63
63
|
key: 1,
|
|
64
64
|
class: "font-code text-green flex w-fit items-center justify-center gap-1"
|
|
65
65
|
}, {
|
|
66
|
-
default:
|
|
67
|
-
|
|
66
|
+
default: t(() => [
|
|
67
|
+
a(o(O), { weight: "bold" }),
|
|
68
68
|
f[0] || (f[0] = n("Webhook "))
|
|
69
69
|
]),
|
|
70
70
|
_: 1,
|
|
71
71
|
__: [0]
|
|
72
|
-
})) :
|
|
73
|
-
|
|
72
|
+
})) : l("", !0),
|
|
73
|
+
a(o(y), {
|
|
74
74
|
badges: e.operation["x-badges"],
|
|
75
75
|
position: "before"
|
|
76
76
|
}, null, 8, ["badges"])
|
|
77
77
|
]),
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
s("div", J, [
|
|
79
|
+
a(o(y), {
|
|
80
80
|
badges: e.operation["x-badges"],
|
|
81
81
|
position: "after"
|
|
82
82
|
}, null, 8, ["badges"])
|
|
83
83
|
])
|
|
84
84
|
]),
|
|
85
|
-
|
|
86
|
-
class:
|
|
85
|
+
s("div", {
|
|
86
|
+
class: c(o(I)(e.operation) ? "deprecated" : "")
|
|
87
87
|
}, [
|
|
88
|
-
|
|
89
|
-
default:
|
|
90
|
-
|
|
91
|
-
default:
|
|
92
|
-
|
|
88
|
+
a(o(N), null, {
|
|
89
|
+
default: t(() => [
|
|
90
|
+
a(o(V), { id: e.id }, {
|
|
91
|
+
default: t(() => [
|
|
92
|
+
a(o(_), {
|
|
93
93
|
id: o(u),
|
|
94
94
|
level: 3
|
|
95
95
|
}, {
|
|
96
|
-
default:
|
|
97
|
-
n(
|
|
96
|
+
default: t(() => [
|
|
97
|
+
n(h(m.value), 1)
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["id"])
|
|
@@ -105,40 +105,40 @@ const G = { class: "flex flex-row justify-between gap-1" }, J = { class: "flex g
|
|
|
105
105
|
_: 1
|
|
106
106
|
})
|
|
107
107
|
], 2),
|
|
108
|
-
|
|
109
|
-
default:
|
|
110
|
-
|
|
111
|
-
default:
|
|
112
|
-
|
|
113
|
-
|
|
108
|
+
a(o(P), null, {
|
|
109
|
+
default: t(() => [
|
|
110
|
+
a(o(k), null, {
|
|
111
|
+
default: t(() => [
|
|
112
|
+
s("div", K, [
|
|
113
|
+
a(o(B), {
|
|
114
114
|
anchorPrefix: e.id,
|
|
115
115
|
transformType: "heading",
|
|
116
116
|
value: e.operation.description,
|
|
117
117
|
withAnchors: "",
|
|
118
118
|
withImages: ""
|
|
119
119
|
}, null, 8, ["anchorPrefix", "value"]),
|
|
120
|
-
|
|
120
|
+
a(L, {
|
|
121
121
|
breadcrumb: [e.id],
|
|
122
122
|
parameters: (
|
|
123
123
|
// These have been resolved in the Operation.vue component
|
|
124
124
|
e.operation.parameters
|
|
125
125
|
),
|
|
126
|
-
requestBody: o(
|
|
126
|
+
requestBody: o(R)(e.operation.requestBody)
|
|
127
127
|
}, null, 8, ["breadcrumb", "parameters", "requestBody"]),
|
|
128
|
-
|
|
128
|
+
a(T, {
|
|
129
129
|
breadcrumb: [e.id],
|
|
130
130
|
collapsableItems: !e.config.expandAllResponses,
|
|
131
131
|
responses: e.operation.responses
|
|
132
132
|
}, null, 8, ["breadcrumb", "collapsableItems", "responses"]),
|
|
133
|
-
|
|
134
|
-
default:
|
|
135
|
-
e.operation.callbacks ? (i(), r(
|
|
133
|
+
a(o(p), null, {
|
|
134
|
+
default: t(() => [
|
|
135
|
+
e.operation.callbacks ? (i(), r(q, {
|
|
136
136
|
key: 0,
|
|
137
137
|
callbacks: e.operation.callbacks,
|
|
138
138
|
class: "mt-6",
|
|
139
139
|
method: e.method,
|
|
140
140
|
path: e.path
|
|
141
|
-
}, null, 8, ["callbacks", "method", "path"])) :
|
|
141
|
+
}, null, 8, ["callbacks", "method", "path"])) : l("", !0)
|
|
142
142
|
]),
|
|
143
143
|
_: 1
|
|
144
144
|
})
|
|
@@ -146,62 +146,60 @@ const G = { class: "flex flex-row justify-between gap-1" }, J = { class: "flex g
|
|
|
146
146
|
]),
|
|
147
147
|
_: 1
|
|
148
148
|
}),
|
|
149
|
-
|
|
150
|
-
default:
|
|
151
|
-
|
|
152
|
-
e.operation.externalDocs ? (i(), r(o(
|
|
153
|
-
default:
|
|
154
|
-
|
|
149
|
+
a(o(k), null, {
|
|
150
|
+
default: t(() => [
|
|
151
|
+
s("div", Q, [
|
|
152
|
+
e.operation.externalDocs ? (i(), r(o(j), { key: 0 }, {
|
|
153
|
+
default: t(() => [
|
|
154
|
+
a(o(z), {
|
|
155
155
|
value: e.operation.externalDocs
|
|
156
156
|
}, null, 8, ["value"])
|
|
157
157
|
]),
|
|
158
158
|
_: 1
|
|
159
|
-
})) :
|
|
160
|
-
|
|
161
|
-
default:
|
|
162
|
-
|
|
159
|
+
})) : l("", !0),
|
|
160
|
+
a(o(p), null, {
|
|
161
|
+
default: t(() => [
|
|
162
|
+
a(o(A), {
|
|
163
163
|
clientOptions: e.clientOptions,
|
|
164
164
|
fallback: "",
|
|
165
165
|
method: e.method,
|
|
166
166
|
operation: e.operation,
|
|
167
167
|
path: e.path,
|
|
168
|
+
isWebhook: e.isWebhook,
|
|
168
169
|
securitySchemes: e.securitySchemes,
|
|
169
170
|
selectedClient: e.store.workspace["x-scalar-default-client"],
|
|
170
171
|
selectedServer: e.server
|
|
171
|
-
},
|
|
172
|
-
header:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}, null, 8, ["deprecated", "path"])
|
|
180
|
-
];
|
|
181
|
-
}),
|
|
172
|
+
}, w({
|
|
173
|
+
header: t(() => [
|
|
174
|
+
a($, {
|
|
175
|
+
class: "font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",
|
|
176
|
+
deprecated: e.operation?.deprecated,
|
|
177
|
+
path: e.path
|
|
178
|
+
}, null, 8, ["deprecated", "path"])
|
|
179
|
+
]),
|
|
182
180
|
_: 2
|
|
183
181
|
}, [
|
|
184
182
|
e.isWebhook ? void 0 : {
|
|
185
183
|
name: "footer",
|
|
186
|
-
fn:
|
|
187
|
-
|
|
184
|
+
fn: t(() => [
|
|
185
|
+
a(o(H), {
|
|
188
186
|
method: e.method,
|
|
189
187
|
path: e.path
|
|
190
188
|
}, null, 8, ["method", "path"])
|
|
191
189
|
]),
|
|
192
190
|
key: "0"
|
|
193
191
|
}
|
|
194
|
-
]), 1032, ["clientOptions", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"])
|
|
192
|
+
]), 1032, ["clientOptions", "method", "operation", "path", "isWebhook", "securitySchemes", "selectedClient", "selectedServer"])
|
|
195
193
|
]),
|
|
196
194
|
_: 1
|
|
197
195
|
}),
|
|
198
|
-
|
|
199
|
-
default:
|
|
200
|
-
e.operation.responses ? (i(), r(o(
|
|
196
|
+
a(o(p), null, {
|
|
197
|
+
default: t(() => [
|
|
198
|
+
e.operation.responses ? (i(), r(o(M), {
|
|
201
199
|
key: 0,
|
|
202
200
|
responses: e.operation.responses,
|
|
203
201
|
style: { "margin-top": "12px" }
|
|
204
|
-
}, null, 8, ["responses"])) :
|
|
202
|
+
}, null, 8, ["responses"])) : l("", !0)
|
|
205
203
|
]),
|
|
206
204
|
_: 1
|
|
207
205
|
})
|
|
@@ -221,5 +219,5 @@ const G = { class: "flex flex-row justify-between gap-1" }, J = { class: "flex g
|
|
|
221
219
|
}
|
|
222
220
|
});
|
|
223
221
|
export {
|
|
224
|
-
|
|
222
|
+
ye as default
|
|
225
223
|
};
|
|
@@ -1,49 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import { isMacOS as
|
|
4
|
-
import
|
|
5
|
-
import { useApiClient as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as h, ref as S, watch as k, nextTick as w, onMounted as C, onBeforeUnmount as M, createElementBlock as a, openBlock as r, Fragment as s, createVNode as p, unref as l, normalizeClass as v, withCtx as u, createElementVNode as n, createTextVNode as B, toDisplayString as K } from "vue";
|
|
2
|
+
import { useModal as b, ScalarSidebarSearchButton as E } from "@scalar/components";
|
|
3
|
+
import { isMacOS as m } from "@scalar/helpers/general/is-mac-os";
|
|
4
|
+
import H from "./SearchModal.vue.js";
|
|
5
|
+
import { useApiClient as g } from "../../api-client-modal/useApiClient.js";
|
|
6
|
+
const D = /* @__PURE__ */ h({
|
|
7
7
|
__name: "SearchButton",
|
|
8
8
|
props: {
|
|
9
9
|
searchHotKey: { default: "k" },
|
|
10
10
|
hideModels: { type: Boolean, default: !1 }
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const d =
|
|
14
|
-
|
|
15
|
-
(f() ? o.metaKey : o.ctrlKey) && o.key === y.searchHotKey && !((e = c.value) != null && e.modalState.open) && (o.preventDefault(), o.stopPropagation(), t.open ? t.hide() : t.show());
|
|
12
|
+
setup(f) {
|
|
13
|
+
const d = S(), t = b(), { client: y } = g(), i = (o) => {
|
|
14
|
+
(m() ? o.metaKey : o.ctrlKey) && o.key === f.searchHotKey && !y.value?.modalState.open && (o.preventDefault(), o.stopPropagation(), t.open ? t.hide() : t.show());
|
|
16
15
|
};
|
|
17
|
-
|
|
16
|
+
k(
|
|
18
17
|
() => t.open,
|
|
19
18
|
(o, e) => {
|
|
20
|
-
!o && e &&
|
|
21
|
-
|
|
22
|
-
(p = d.value) == null || p.$el.focus();
|
|
19
|
+
!o && e && w(() => {
|
|
20
|
+
d.value?.$el.focus();
|
|
23
21
|
});
|
|
24
22
|
}
|
|
25
|
-
),
|
|
26
|
-
function
|
|
23
|
+
), C(() => window.addEventListener("keydown", i)), M(() => window.removeEventListener("keydown", i));
|
|
24
|
+
function c() {
|
|
27
25
|
t.show();
|
|
28
26
|
}
|
|
29
27
|
return (o, e) => (r(), a(s, null, [
|
|
30
|
-
|
|
28
|
+
p(l(E), {
|
|
31
29
|
ref_key: "button",
|
|
32
30
|
ref: d,
|
|
33
|
-
class:
|
|
34
|
-
onClick:
|
|
31
|
+
class: v(["w-full", o.$attrs.class]),
|
|
32
|
+
onClick: c
|
|
35
33
|
}, {
|
|
36
|
-
shortcut:
|
|
37
|
-
l(
|
|
34
|
+
shortcut: u(() => [
|
|
35
|
+
l(m)() ? (r(), a(s, { key: 0 }, [
|
|
38
36
|
e[0] || (e[0] = n("span", { class: "sr-only" }, "Command", -1)),
|
|
39
37
|
e[1] || (e[1] = n("span", { "aria-hidden": "true" }, "⌘", -1))
|
|
40
38
|
], 64)) : (r(), a(s, { key: 1 }, [
|
|
41
39
|
e[2] || (e[2] = n("span", { class: "sr-only" }, "CTRL", -1)),
|
|
42
40
|
e[3] || (e[3] = n("span", { "aria-hidden": "true" }, "⌃", -1))
|
|
43
41
|
], 64)),
|
|
44
|
-
|
|
42
|
+
B(" " + K(o.searchHotKey), 1)
|
|
45
43
|
]),
|
|
46
|
-
default:
|
|
44
|
+
default: u(() => [
|
|
47
45
|
e[4] || (e[4] = n("span", { class: "sr-only" }, "Open Search", -1)),
|
|
48
46
|
e[5] || (e[5] = n("span", {
|
|
49
47
|
"aria-hidden": "true",
|
|
@@ -53,7 +51,7 @@ const O = /* @__PURE__ */ S({
|
|
|
53
51
|
_: 1,
|
|
54
52
|
__: [4, 5]
|
|
55
53
|
}, 8, ["class"]),
|
|
56
|
-
|
|
54
|
+
p(H, {
|
|
57
55
|
modalState: l(t),
|
|
58
56
|
hideModels: o.hideModels
|
|
59
57
|
}, null, 8, ["modalState", "hideModels"])
|
|
@@ -61,5 +59,5 @@ const O = /* @__PURE__ */ S({
|
|
|
61
59
|
}
|
|
62
60
|
});
|
|
63
61
|
export {
|
|
64
|
-
|
|
62
|
+
D as default
|
|
65
63
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as A, ref as Y, watch as C, createBlock as T, openBlock as m, unref as n, withCtx as
|
|
1
|
+
import { defineComponent as A, ref as Y, watch as C, createBlock as T, openBlock as m, unref as n, withCtx as i, createElementVNode as a, createVNode as S, withKeys as g, withModifiers as v, isRef as _, createElementBlock as w, Fragment as I, renderList as j, createSlots as G, normalizeClass as J, createTextVNode as l, createCommentVNode as M, toDisplayString as c } from "vue";
|
|
2
2
|
import { ScalarModal as Q, ScalarSearchInput as X, ScalarSearchResultList as Z, ScalarSearchResultItem as ee } from "@scalar/components";
|
|
3
3
|
import { isDefined as te } from "@scalar/helpers/array/is-defined";
|
|
4
|
-
import { scrollToId as
|
|
5
|
-
import { ScalarIconTerminalWindow as
|
|
6
|
-
import { isOperationDeprecated as
|
|
4
|
+
import { scrollToId as $ } from "@scalar/helpers/dom/scroll-to-id";
|
|
5
|
+
import { ScalarIconTerminalWindow as E, ScalarIconTag as oe, ScalarIconBracketsCurly as ne, ScalarIconTextAlignLeft as ae } from "@scalar/icons";
|
|
6
|
+
import { isOperationDeprecated as N } from "@scalar/oas-utils/helpers";
|
|
7
7
|
import { nanoid as re } from "nanoid";
|
|
8
|
-
import
|
|
9
|
-
import { useSearchIndex as
|
|
10
|
-
import { useSidebar as
|
|
8
|
+
import se from "../../sidebar/components/SidebarHttpBadge.vue.js";
|
|
9
|
+
import { useSearchIndex as ie } from "../hooks/useSearchIndex.js";
|
|
10
|
+
import { useSidebar as V } from "../../sidebar/hooks/useSidebar.js";
|
|
11
11
|
import { lazyBus as le } from "../../../components/Lazy/lazyBus.js";
|
|
12
|
-
const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1" }, me = { class: "sr-only" },
|
|
12
|
+
const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1" }, me = { class: "sr-only" }, be = /* @__PURE__ */ A({
|
|
13
13
|
__name: "SearchModal",
|
|
14
14
|
props: {
|
|
15
15
|
modalState: {},
|
|
16
16
|
hideModels: { type: Boolean }
|
|
17
17
|
},
|
|
18
18
|
setup(L) {
|
|
19
|
-
const
|
|
19
|
+
const u = L, f = re(), R = `${f}-search-result`, b = `${f}-search-instructions`, h = (o) => `${f}${o}`, { items: D } = V(), {
|
|
20
20
|
resetSearch: F,
|
|
21
|
-
selectedIndex:
|
|
21
|
+
selectedIndex: r,
|
|
22
22
|
selectedSearchResult: k,
|
|
23
23
|
searchResultsWithPlaceholderResults: d,
|
|
24
24
|
query: p
|
|
25
|
-
} =
|
|
25
|
+
} = ie(D), H = {
|
|
26
26
|
heading: ae,
|
|
27
27
|
model: ne,
|
|
28
|
-
operation:
|
|
28
|
+
operation: E,
|
|
29
29
|
tag: oe,
|
|
30
|
-
webhook:
|
|
30
|
+
webhook: E
|
|
31
31
|
}, O = {
|
|
32
32
|
heading: "Heading",
|
|
33
33
|
operation: "Operation",
|
|
@@ -36,59 +36,58 @@ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1"
|
|
|
36
36
|
webhook: "Webhook"
|
|
37
37
|
}, P = Y(null);
|
|
38
38
|
C(
|
|
39
|
-
() =>
|
|
39
|
+
() => u.modalState.open,
|
|
40
40
|
(o) => {
|
|
41
41
|
o && F();
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
|
-
const { setCollapsedSidebarItem: U } =
|
|
44
|
+
const { setCollapsedSidebarItem: U } = V(), K = /#(tag\/[^/]*)/;
|
|
45
45
|
function B(o) {
|
|
46
46
|
let t = "models";
|
|
47
47
|
const e = o.item.href.match(K);
|
|
48
|
-
e
|
|
49
|
-
const
|
|
50
|
-
if (document.getElementById(
|
|
51
|
-
|
|
48
|
+
e?.length && e.length > 1 && (t = e[1]), U(t, !0);
|
|
49
|
+
const s = o.item.href.replace("#", "");
|
|
50
|
+
if (document.getElementById(s))
|
|
51
|
+
$(s), u.modalState.hide();
|
|
52
52
|
else {
|
|
53
53
|
const y = le.on((z) => {
|
|
54
|
-
z.loaded ===
|
|
54
|
+
z.loaded === s && ($(s), y(), u.modalState.hide());
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
C(
|
|
59
|
-
var r;
|
|
58
|
+
C(r, (o) => {
|
|
60
59
|
if (typeof o != "number")
|
|
61
60
|
return;
|
|
62
|
-
const t = d.value[o], e = h(t
|
|
63
|
-
|
|
61
|
+
const t = d.value[o], e = h(t?.item.href);
|
|
62
|
+
document.getElementById(e)?.scrollIntoView({
|
|
64
63
|
behavior: "smooth",
|
|
65
64
|
block: "nearest"
|
|
66
65
|
});
|
|
67
66
|
});
|
|
68
67
|
const x = (o) => {
|
|
69
68
|
const t = o === "up" ? -1 : 1, e = d.value.length;
|
|
70
|
-
if (typeof
|
|
71
|
-
const
|
|
72
|
-
|
|
69
|
+
if (typeof r.value == "number") {
|
|
70
|
+
const s = (r.value + t + e) % e;
|
|
71
|
+
r.value = s;
|
|
73
72
|
} else
|
|
74
|
-
|
|
73
|
+
r.value = t === -1 ? e - 1 : 0;
|
|
75
74
|
};
|
|
76
75
|
function W(o) {
|
|
77
76
|
const t = new URL(window.location.href);
|
|
78
77
|
return t.hash = o, t.toString();
|
|
79
78
|
}
|
|
80
79
|
function q() {
|
|
81
|
-
if (!te(
|
|
80
|
+
if (!te(r.value))
|
|
82
81
|
return;
|
|
83
82
|
const o = d.value;
|
|
84
|
-
o.length !== 0 && B(o[
|
|
83
|
+
o.length !== 0 && B(o[r.value]);
|
|
85
84
|
}
|
|
86
85
|
return (o, t) => (m(), T(n(Q), {
|
|
87
86
|
"aria-label": "Reference Search",
|
|
88
87
|
state: o.modalState,
|
|
89
88
|
variant: "search"
|
|
90
89
|
}, {
|
|
91
|
-
default:
|
|
90
|
+
default: i(() => [
|
|
92
91
|
a("div", {
|
|
93
92
|
ref_key: "searchModalRef",
|
|
94
93
|
ref: P,
|
|
@@ -100,47 +99,47 @@ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1"
|
|
|
100
99
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => _(p) ? p.value = e : null),
|
|
101
100
|
"aria-activedescendant": n(k) ? h(n(k).item.href) : void 0,
|
|
102
101
|
"aria-autocomplete": "list",
|
|
103
|
-
"aria-controls":
|
|
104
|
-
"aria-describedby":
|
|
102
|
+
"aria-controls": R,
|
|
103
|
+
"aria-describedby": b,
|
|
105
104
|
role: "combobox",
|
|
106
|
-
onBlur: t[1] || (t[1] = (e) =>
|
|
105
|
+
onBlur: t[1] || (t[1] = (e) => r.value = void 0),
|
|
107
106
|
onKeydown: [
|
|
108
|
-
t[2] || (t[2] = v(
|
|
109
|
-
v(
|
|
110
|
-
t[3] || (t[3] = v(
|
|
107
|
+
t[2] || (t[2] = g(v((e) => x("down"), ["stop", "prevent"]), ["down"])),
|
|
108
|
+
g(v(q, ["stop", "prevent"]), ["enter"]),
|
|
109
|
+
t[3] || (t[3] = g(v((e) => x("up"), ["stop", "prevent"]), ["up"]))
|
|
111
110
|
]
|
|
112
111
|
}, null, 8, ["modelValue", "aria-activedescendant", "onKeydown"])
|
|
113
112
|
], 512),
|
|
114
113
|
S(n(Z), {
|
|
115
|
-
id:
|
|
114
|
+
id: R,
|
|
116
115
|
"aria-label": "Reference Search Results",
|
|
117
116
|
class: "ref-search-results custom-scroll",
|
|
118
117
|
noResults: !n(d).length
|
|
119
118
|
}, {
|
|
120
|
-
query:
|
|
119
|
+
query: i(() => [
|
|
121
120
|
l(c(n(p)), 1)
|
|
122
121
|
]),
|
|
123
|
-
default:
|
|
124
|
-
(m(!0), I
|
|
122
|
+
default: i(() => [
|
|
123
|
+
(m(!0), w(I, null, j(n(d), (e, s) => (m(), T(n(ee), {
|
|
125
124
|
id: h(e.item.href),
|
|
126
125
|
key: e.refIndex,
|
|
127
126
|
href: W(e.item.href),
|
|
128
127
|
icon: H[e.item.type],
|
|
129
|
-
selected: n(
|
|
128
|
+
selected: n(r) === s,
|
|
130
129
|
onClick: (y) => B(e),
|
|
131
|
-
onFocus: (y) =>
|
|
130
|
+
onFocus: (y) => r.value = s
|
|
132
131
|
}, G({
|
|
133
|
-
default:
|
|
132
|
+
default: i(() => [
|
|
134
133
|
a("span", {
|
|
135
134
|
class: J({
|
|
136
|
-
deprecated: "operation" in e.item.entry && n(
|
|
135
|
+
deprecated: "operation" in e.item.entry && n(N)(e.item.entry.operation)
|
|
137
136
|
})
|
|
138
137
|
}, [
|
|
139
138
|
a("span", ce, [
|
|
140
139
|
l(c(O[e.item.type]) + ": ", 1),
|
|
141
|
-
"operation" in e.item.entry && n(
|
|
140
|
+
"operation" in e.item.entry && n(N)(e.item.entry.operation) ? (m(), w(I, { key: 0 }, [
|
|
142
141
|
l(" (Deprecated) ")
|
|
143
|
-
], 64)) :
|
|
142
|
+
], 64)) : M("", !0)
|
|
144
143
|
]),
|
|
145
144
|
l(" " + c(e.item.title) + " ", 1),
|
|
146
145
|
t[4] || (t[4] = a("span", { class: "sr-only" }, ",", -1))
|
|
@@ -150,15 +149,15 @@ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1"
|
|
|
150
149
|
}, [
|
|
151
150
|
e.item.type !== "webhook" && (e.item.method || e.item.path) && e.item.path !== e.item.title ? {
|
|
152
151
|
name: "description",
|
|
153
|
-
fn:
|
|
152
|
+
fn: i(() => [
|
|
154
153
|
a("span", de, [
|
|
155
|
-
e.item.type === "operation" ? (m(), I
|
|
156
|
-
S(
|
|
154
|
+
e.item.type === "operation" ? (m(), w(I, { key: 0 }, [
|
|
155
|
+
S(se, {
|
|
157
156
|
"aria-hidden": "true",
|
|
158
157
|
method: e.item.method ?? "get"
|
|
159
158
|
}, null, 8, ["method"]),
|
|
160
159
|
a("span", me, " HTTP Method: " + c(e.item.method ?? "get"), 1)
|
|
161
|
-
], 64)) :
|
|
160
|
+
], 64)) : M("", !0),
|
|
162
161
|
t[5] || (t[5] = a("span", { class: "sr-only" }, "Path: ", -1)),
|
|
163
162
|
l(" " + c(e.item.path), 1)
|
|
164
163
|
])
|
|
@@ -166,7 +165,7 @@ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1"
|
|
|
166
165
|
key: "0"
|
|
167
166
|
} : e.item.description ? {
|
|
168
167
|
name: "description",
|
|
169
|
-
fn:
|
|
168
|
+
fn: i(() => [
|
|
170
169
|
t[6] || (t[6] = a("span", { class: "sr-only" }, "Description: ", -1)),
|
|
171
170
|
l(" " + c(e.item.description), 1)
|
|
172
171
|
]),
|
|
@@ -177,7 +176,7 @@ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1"
|
|
|
177
176
|
_: 1
|
|
178
177
|
}, 8, ["noResults"]),
|
|
179
178
|
a("div", {
|
|
180
|
-
id:
|
|
179
|
+
id: b,
|
|
181
180
|
class: "ref-search-meta"
|
|
182
181
|
}, t[7] || (t[7] = [
|
|
183
182
|
a("span", {
|
|
@@ -195,5 +194,5 @@ const ce = { class: "sr-only" }, de = { class: "inline-flex items-center gap-1"
|
|
|
195
194
|
}
|
|
196
195
|
});
|
|
197
196
|
export {
|
|
198
|
-
|
|
197
|
+
be as default
|
|
199
198
|
};
|