@scalar/api-reference 1.35.7 → 1.36.1
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 +39 -0
- package/dist/browser/standalone.js +14984 -15007
- 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 +4 -1
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue2.js +49 -40
- 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 +25 -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 +54 -51
- 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/Schema.vue.d.ts +3 -4
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +72 -75
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +4 -5
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +46 -49
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +2 -7
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +33 -54
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -6
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +72 -76
- 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/Schema/types.d.ts +17 -0
- package/dist/components/Content/Schema/types.d.ts.map +1 -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/Header.vue.d.ts +2 -0
- package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Header.vue.js +15 -10
- package/dist/features/Operation/components/Headers.vue.d.ts +2 -0
- package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Headers.vue.js +1 -1
- package/dist/features/Operation/components/Headers.vue2.js +23 -21
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +55 -48
- 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 +74 -49
- 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 +40 -40
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/helpers/convert-security-scheme.d.ts +1 -1
- 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/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +5 -6
- 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 +11 -11
- 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
|
@@ -2,7 +2,7 @@ import { defineComponent as h, ref as f, useId as y, computed as C, createBlock
|
|
|
2
2
|
import B from "../../ShowMoreButton.vue.js";
|
|
3
3
|
import { useNavState as v } from "../../../hooks/useNavState.js";
|
|
4
4
|
import I from "./TagSection.vue.js";
|
|
5
|
-
import { useSidebar as O } from "../../../
|
|
5
|
+
import { useSidebar as O } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
6
6
|
import $ from "../../Section/SectionContainer.vue.js";
|
|
7
7
|
import w from "../../Lazy/Lazy.vue2.js";
|
|
8
8
|
const E = /* @__PURE__ */ h({
|
|
@@ -13,7 +13,7 @@ const E = /* @__PURE__ */ h({
|
|
|
13
13
|
},
|
|
14
14
|
setup(o) {
|
|
15
15
|
const u = f(), s = f(), d = y(), { collapsedSidebarItems: c } = O(), { hash: n } = v(), g = C(
|
|
16
|
-
() => o.moreThanOneTag || o.tag?.title !== "default" || o.tag?.
|
|
16
|
+
() => o.moreThanOneTag || o.tag?.title !== "default" || o.tag?.description !== ""
|
|
17
17
|
);
|
|
18
18
|
async function p() {
|
|
19
19
|
await S(), s.value?.querySelector("button")?.focus();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAKhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;CACxB,CAAC;AA0CF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAsBhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/TagSection.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAgBhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAgLF,wBAMG"}
|
|
@@ -11,7 +11,7 @@ import y from "../../Section/SectionColumns.vue.js";
|
|
|
11
11
|
import p from "../../Section/SectionColumn.vue.js";
|
|
12
12
|
import B from "../../OperationsList/OperationsList.vue.js";
|
|
13
13
|
import I from "../../../features/specification-extension/SpecificationExtension.vue2.js";
|
|
14
|
-
const
|
|
14
|
+
const q = /* @__PURE__ */ f({
|
|
15
15
|
__name: "TagSection",
|
|
16
16
|
props: {
|
|
17
17
|
tag: {},
|
|
@@ -67,7 +67,7 @@ const z = /* @__PURE__ */ f({
|
|
|
67
67
|
default: a(() => [
|
|
68
68
|
t(e(c), {
|
|
69
69
|
clamp: o.isCollapsed ? 7 : void 0,
|
|
70
|
-
value: o.tag
|
|
70
|
+
value: o.tag?.description ?? "",
|
|
71
71
|
withImages: ""
|
|
72
72
|
}, null, 8, ["clamp", "value"])
|
|
73
73
|
]),
|
|
@@ -86,7 +86,7 @@ const z = /* @__PURE__ */ f({
|
|
|
86
86
|
_: 1
|
|
87
87
|
}, 8, ["loading"]),
|
|
88
88
|
t(e(I), {
|
|
89
|
-
value: o.tag.
|
|
89
|
+
value: o.tag.xKeys
|
|
90
90
|
}, null, 8, ["value"])
|
|
91
91
|
]),
|
|
92
92
|
_: 1
|
|
@@ -94,5 +94,5 @@ const z = /* @__PURE__ */ f({
|
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
96
|
export {
|
|
97
|
-
|
|
97
|
+
q as default
|
|
98
98
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./MobileHeader.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-12742423"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as t, createElementBlock as a, openBlock as c, createVNode as i, createElementVNode as s, unref as e, toDisplayString as l, renderSlot as d } from "vue";
|
|
2
2
|
import { ScalarIconButton as m } from "@scalar/components";
|
|
3
3
|
import { ScalarIconX as p, ScalarIconList as u } from "@scalar/icons";
|
|
4
|
-
import { useSidebar as b } from "../
|
|
4
|
+
import { useSidebar as b } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
5
5
|
const _ = { class: "references-mobile-header t-doc__header" }, f = { class: "references-mobile-breadcrumbs" }, S = { class: "references-mobile-header-actions" }, M = /* @__PURE__ */ t({
|
|
6
6
|
__name: "MobileHeader",
|
|
7
7
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsList.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAOhG,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;CAClB,CAAC;;AAmHF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OperationsList.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-50e4708f"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, computed as m, createBlock as l, createCommentVNode as u, openBlock as a, unref as r, withCtx as t, createVNode as o, createTextVNode as i, toDisplayString as s, createElementVNode as f, createElementBlock as h, Fragment as g, renderList as k } from "vue";
|
|
2
2
|
import { ScalarCard as _, ScalarCardHeader as C, ScalarCardSection as S } from "@scalar/components";
|
|
3
3
|
import b from "../ScreenReader.vue.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import y from "./OperationsListItem.vue.js";
|
|
5
|
+
const N = ["aria-label"], E = /* @__PURE__ */ p({
|
|
6
6
|
__name: "OperationsList",
|
|
7
7
|
props: {
|
|
8
8
|
tag: {}
|
|
9
9
|
},
|
|
10
10
|
setup(d) {
|
|
11
|
-
const c =
|
|
12
|
-
() =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
);
|
|
16
|
-
return (e, y) => e.tag.children?.length > 0 ? (a(), l(r(_), {
|
|
11
|
+
const c = m(() => d.tag.children?.filter(
|
|
12
|
+
(e) => e.type === "operation" || e.type === "webhook"
|
|
13
|
+
) ?? []);
|
|
14
|
+
return (e, V) => e.tag.children && e.tag.children?.length > 0 ? (a(), l(r(_), {
|
|
17
15
|
key: 0,
|
|
18
16
|
class: "endpoints-card"
|
|
19
17
|
}, {
|
|
@@ -36,11 +34,11 @@ const V = ["aria-label"], E = /* @__PURE__ */ m({
|
|
|
36
34
|
"aria-label": `${e.tag.title} endpoints`,
|
|
37
35
|
class: "endpoints"
|
|
38
36
|
}, [
|
|
39
|
-
(a(!0), h(g, null, k(c.value, (n) => (a(), l(
|
|
37
|
+
(a(!0), h(g, null, k(c.value, (n) => (a(), l(y, {
|
|
40
38
|
key: n.id,
|
|
41
39
|
operation: n
|
|
42
40
|
}, null, 8, ["operation"]))), 128))
|
|
43
|
-
], 8,
|
|
41
|
+
], 8, N)
|
|
44
42
|
]),
|
|
45
43
|
_: 1
|
|
46
44
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TraversedOperation, TraversedWebhook } from '
|
|
1
|
+
import type { TraversedOperation, TraversedWebhook } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
operation: TraversedOperation | TraversedWebhook;
|
|
4
4
|
isCollapsed?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/OperationsList/OperationsListItem.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAEV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,8DAA8D,CAAA;AAOrE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAA;IAChD,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAsJF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./OperationsListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-836b3c7f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,63 +1,60 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getHttpMethodInfo as
|
|
3
|
-
import { ScalarIconWebhooksLogo as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const w = ["href"], j = /* @__PURE__ */ u({
|
|
1
|
+
import { defineComponent as h, computed as u, createElementBlock as y, openBlock as r, createBlock as a, createCommentVNode as i, createElementVNode as s, unref as o, withCtx as l, createTextVNode as k, toDisplayString as p, withModifiers as C, createVNode as g, normalizeStyle as S, normalizeClass as V } from "vue";
|
|
2
|
+
import { getHttpMethodInfo as b } from "@scalar/helpers/http/http-info";
|
|
3
|
+
import { ScalarIconWebhooksLogo as v } from "@scalar/icons";
|
|
4
|
+
import { useSidebar as B } from "../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
5
|
+
import H from "../Section/SectionHeaderTag.vue.js";
|
|
6
|
+
import N from "../HttpMethod/HttpMethod.vue.js";
|
|
7
|
+
const T = ["href"], L = /* @__PURE__ */ h({
|
|
9
8
|
__name: "OperationsListItem",
|
|
10
9
|
props: {
|
|
11
10
|
operation: {},
|
|
12
11
|
isCollapsed: { type: Boolean }
|
|
13
12
|
},
|
|
14
13
|
setup(t) {
|
|
15
|
-
const { scrollToOperation: d } =
|
|
14
|
+
const { scrollToOperation: d } = B(), m = async (e) => {
|
|
16
15
|
d(e.id, !0);
|
|
17
|
-
}, c =
|
|
18
|
-
|
|
19
|
-
), h = (e) => "webhook" in e;
|
|
20
|
-
return (e, n) => (r(), k("li", {
|
|
16
|
+
}, c = u(() => "path" in t.operation ? t.operation.path : t.operation.title), f = (e) => e.type === "webhook";
|
|
17
|
+
return (e, n) => (r(), y("li", {
|
|
21
18
|
key: e.operation.id,
|
|
22
19
|
class: "contents"
|
|
23
20
|
}, [
|
|
24
|
-
e.isCollapsed ? (r(),
|
|
21
|
+
e.isCollapsed ? (r(), a(o(H), {
|
|
25
22
|
key: 0,
|
|
26
23
|
class: "sr-only",
|
|
27
24
|
level: 3
|
|
28
25
|
}, {
|
|
29
26
|
default: l(() => [
|
|
30
|
-
|
|
27
|
+
k(p(e.operation.title) + " (Hidden) ", 1)
|
|
31
28
|
]),
|
|
32
29
|
_: 1
|
|
33
|
-
})) :
|
|
30
|
+
})) : i("", !0),
|
|
34
31
|
s("a", {
|
|
35
32
|
class: "endpoint",
|
|
36
33
|
href: `#${e.operation.id}`,
|
|
37
|
-
onClick: n[0] || (n[0] =
|
|
34
|
+
onClick: n[0] || (n[0] = C((w) => m(e.operation), ["prevent"]))
|
|
38
35
|
}, [
|
|
39
|
-
|
|
36
|
+
g(o(N), {
|
|
40
37
|
class: "endpoint-method items-center justify-end gap-2",
|
|
41
38
|
method: e.operation.method
|
|
42
39
|
}, {
|
|
43
40
|
default: l(() => [
|
|
44
|
-
|
|
41
|
+
f(e.operation) ? (r(), a(o(v), {
|
|
45
42
|
key: 0,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}, null, 8, ["style"])) :
|
|
43
|
+
class: "size-3.5",
|
|
44
|
+
style: S({
|
|
45
|
+
color: o(b)(e.operation.method).colorVar
|
|
46
|
+
})
|
|
47
|
+
}, null, 8, ["style"])) : i("", !0)
|
|
51
48
|
]),
|
|
52
49
|
_: 1
|
|
53
50
|
}, 8, ["method"]),
|
|
54
51
|
s("span", {
|
|
55
|
-
class:
|
|
52
|
+
class: V(["endpoint-path", { deprecated: e.operation.isDeprecated }])
|
|
56
53
|
}, p(c.value), 3)
|
|
57
|
-
], 8,
|
|
54
|
+
], 8, T)
|
|
58
55
|
]));
|
|
59
56
|
}
|
|
60
57
|
});
|
|
61
58
|
export {
|
|
62
|
-
|
|
59
|
+
L as default
|
|
63
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Section.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/Section.vue"],"names":[],"mappings":"AAiEA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AA2DF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAqB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Section.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dbc12a67"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,31 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useNavState as
|
|
4
|
-
|
|
5
|
-
const v = /* @__PURE__ */ l({
|
|
1
|
+
import { defineComponent as s, createBlock as a, openBlock as l, withCtx as c, renderSlot as d } from "vue";
|
|
2
|
+
import p from "../IntersectionObserver.vue.js";
|
|
3
|
+
import { useNavState as f } from "../../hooks/useNavState.js";
|
|
4
|
+
const b = /* @__PURE__ */ s({
|
|
6
5
|
__name: "Section",
|
|
7
6
|
props: {
|
|
8
7
|
id: {},
|
|
9
8
|
label: {}
|
|
10
9
|
},
|
|
11
10
|
setup(o) {
|
|
12
|
-
const e = o, {
|
|
13
|
-
function
|
|
14
|
-
!e.label || !
|
|
11
|
+
const e = o, { isIntersectionEnabled: n, replaceUrlState: r } = f();
|
|
12
|
+
function i() {
|
|
13
|
+
!e.label || !n.value || r(e.id ?? "");
|
|
15
14
|
}
|
|
16
|
-
return (t,
|
|
15
|
+
return (t, u) => (l(), a(p, {
|
|
17
16
|
is: "section",
|
|
18
17
|
id: t.id,
|
|
19
18
|
class: "section",
|
|
20
|
-
onIntersecting:
|
|
19
|
+
onIntersecting: i
|
|
21
20
|
}, {
|
|
22
|
-
default:
|
|
23
|
-
|
|
21
|
+
default: c(() => [
|
|
22
|
+
d(t.$slots, "default", {}, void 0, !0)
|
|
24
23
|
]),
|
|
25
24
|
_: 3
|
|
26
25
|
}, 8, ["id"]));
|
|
27
26
|
}
|
|
28
27
|
});
|
|
29
28
|
export {
|
|
30
|
-
|
|
29
|
+
b as default
|
|
31
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionAccordion.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SectionAccordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Section/SectionAccordion.vue"],"names":[],"mappings":"AAkJA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;AA6JF,QAAA,IAAyB,QAAQ,IAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC9G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACjD;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA4BhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SectionAccordion.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-224efaa7"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1,64 +1,63 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Disclosure as
|
|
3
|
-
import { ScalarIconCaretRight as
|
|
4
|
-
import { useElementHover as
|
|
5
|
-
import { useNavState as
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const D = { class: "section-accordion-button-content" }, V = {
|
|
1
|
+
import { defineComponent as h, ref as $, createBlock as b, openBlock as c, withCtx as e, createVNode as s, unref as t, normalizeClass as l, createElementVNode as d, createElementBlock as u, createCommentVNode as m, renderSlot as n } from "vue";
|
|
2
|
+
import { Disclosure as k, DisclosureButton as S, DisclosurePanel as B } from "@headlessui/vue";
|
|
3
|
+
import { ScalarIconCaretRight as C } from "@scalar/icons";
|
|
4
|
+
import { useElementHover as y } from "@vueuse/core";
|
|
5
|
+
import { useNavState as E } from "../../hooks/useNavState.js";
|
|
6
|
+
import N from "../IntersectionObserver.vue.js";
|
|
7
|
+
const D = { class: "section-accordion-button-content" }, I = {
|
|
9
8
|
key: 0,
|
|
10
9
|
class: "section-accordion-button-actions"
|
|
11
|
-
},
|
|
10
|
+
}, V = {
|
|
12
11
|
key: 0,
|
|
13
12
|
class: "section-accordion-description"
|
|
14
|
-
},
|
|
13
|
+
}, g = { class: "section-accordion-content-card" }, j = /* @__PURE__ */ h({
|
|
15
14
|
__name: "SectionAccordion",
|
|
16
15
|
props: {
|
|
17
16
|
id: {},
|
|
18
17
|
transparent: { type: Boolean }
|
|
19
18
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
!
|
|
19
|
+
setup(r) {
|
|
20
|
+
const i = $(), f = y(i), { isIntersectionEnabled: p, replaceUrlState: v } = E(), _ = () => {
|
|
21
|
+
!r.id || !p.value || v(r.id);
|
|
23
22
|
};
|
|
24
|
-
return (
|
|
25
|
-
id:
|
|
23
|
+
return (o, w) => (c(), b(N, {
|
|
24
|
+
id: o.id,
|
|
26
25
|
class: "section-wrapper",
|
|
27
|
-
onIntersecting:
|
|
26
|
+
onIntersecting: _
|
|
28
27
|
}, {
|
|
29
|
-
default:
|
|
30
|
-
|
|
28
|
+
default: e(() => [
|
|
29
|
+
s(t(k), {
|
|
31
30
|
as: "section",
|
|
32
|
-
class:
|
|
31
|
+
class: l(["section-accordion", { "section-accordion-transparent": o.transparent }])
|
|
33
32
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
|
|
33
|
+
default: e(({ open: a }) => [
|
|
34
|
+
s(t(S), {
|
|
36
35
|
ref_key: "button",
|
|
37
|
-
ref:
|
|
36
|
+
ref: i,
|
|
38
37
|
class: "section-accordion-button"
|
|
39
38
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
default: e(() => [
|
|
40
|
+
d("div", D, [
|
|
41
|
+
n(o.$slots, "title", {}, void 0, !0)
|
|
43
42
|
]),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
active:
|
|
43
|
+
o.$slots.actions ? (c(), u("div", I, [
|
|
44
|
+
n(o.$slots, "actions", {
|
|
45
|
+
active: t(f) || a
|
|
47
46
|
}, void 0, !0)
|
|
48
47
|
])) : m("", !0),
|
|
49
|
-
|
|
50
|
-
class:
|
|
48
|
+
s(t(C), {
|
|
49
|
+
class: l(["section-accordion-chevron size-4.5 transition-transform", { "rotate-90": a }])
|
|
51
50
|
}, null, 8, ["class"])
|
|
52
51
|
]),
|
|
53
52
|
_: 2
|
|
54
53
|
}, 1536),
|
|
55
|
-
|
|
56
|
-
default:
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
s(t(B), { class: "section-accordion-content" }, {
|
|
55
|
+
default: e(() => [
|
|
56
|
+
o.$slots.description ? (c(), u("div", V, [
|
|
57
|
+
n(o.$slots, "description", {}, void 0, !0)
|
|
59
58
|
])) : m("", !0),
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
d("div", g, [
|
|
60
|
+
n(o.$slots, "default", {}, void 0, !0)
|
|
62
61
|
])
|
|
63
62
|
]),
|
|
64
63
|
_: 3
|
|
@@ -72,5 +71,5 @@ const D = { class: "section-accordion-button-content" }, V = {
|
|
|
72
71
|
}
|
|
73
72
|
});
|
|
74
73
|
export {
|
|
75
|
-
|
|
74
|
+
j as default
|
|
76
75
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ShowMoreButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-46471107"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as c, createElementBlock as i, openBlock as s, createTextVNode as a, createVNode as m, unref as l } from "vue";
|
|
2
2
|
import { ScalarIconCaretDown as d } from "@scalar/icons";
|
|
3
3
|
import { useConfig as u } from "../hooks/useConfig.js";
|
|
4
|
-
import { useSidebar as f } from "../
|
|
4
|
+
import { useSidebar as f } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
5
5
|
const h = /* @__PURE__ */ c({
|
|
6
6
|
__name: "ShowMoreButton",
|
|
7
7
|
props: {
|
|
@@ -18,8 +18,8 @@ const h = /* @__PURE__ */ c({
|
|
|
18
18
|
}, [
|
|
19
19
|
o[0] || (o[0] = a(" Show More ")),
|
|
20
20
|
m(l(d), {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
class: "text-c-2 mt-0.25 size-3",
|
|
22
|
+
weight: "bold"
|
|
23
23
|
})
|
|
24
24
|
]));
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../src/features/Operation/Operation.vue"],"names":[],"mappings":"AA8HA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,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;AAEpE,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAMvF,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,UAAU,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,MAAM,EAAE,yBAAyB,CAAA;IACjC,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,EAAE,OAAO,CAAA;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,cAAc,CAAA;IACrB,iGAAiG;IACjG,UAAU,EAAE,UAAU,CAAA;CACvB,CAAC;;AAyJJ,wBAMG"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWorkspace as
|
|
1
|
+
import { defineComponent as u, computed as r, createElementBlock as h, createCommentVNode as p, openBlock as s, Fragment as d, createBlock as m } from "vue";
|
|
2
|
+
import { useWorkspace as v } from "@scalar/api-client/store";
|
|
3
3
|
import { filterSecurityRequirements as f } from "@scalar/api-client/views/Request/RequestSection";
|
|
4
4
|
import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
|
-
import { combineParams as
|
|
6
|
-
import { convertSecurityScheme as
|
|
7
|
-
import
|
|
8
|
-
import b from "./layouts/
|
|
9
|
-
|
|
5
|
+
import { combineParams as k } from "./helpers/combine-params.js";
|
|
6
|
+
import { convertSecurityScheme as S } from "../../helpers/convert-security-scheme.js";
|
|
7
|
+
import { getFirstServer as g } from "./helpers/get-first-server.js";
|
|
8
|
+
import b from "./layouts/ClassicLayout.vue.js";
|
|
9
|
+
import W from "./layouts/ModernLayout.vue.js";
|
|
10
|
+
const I = /* @__PURE__ */ u({
|
|
10
11
|
__name: "Operation",
|
|
11
12
|
props: {
|
|
12
13
|
path: {},
|
|
@@ -21,27 +22,36 @@ const w = /* @__PURE__ */ l({
|
|
|
21
22
|
collection: {}
|
|
22
23
|
},
|
|
23
24
|
setup(o) {
|
|
24
|
-
const
|
|
25
|
+
const i = r(() => {
|
|
25
26
|
const e = o.isWebhook ? "webhooks" : "paths";
|
|
26
27
|
return o.document[e]?.[o.path];
|
|
27
28
|
}), t = r(() => {
|
|
28
|
-
const e = y(
|
|
29
|
+
const e = y(i.value?.[o.method]);
|
|
29
30
|
if (!e)
|
|
30
31
|
return null;
|
|
31
|
-
const
|
|
32
|
-
|
|
32
|
+
const a = k(
|
|
33
|
+
i.value?.parameters,
|
|
33
34
|
e.parameters
|
|
34
35
|
);
|
|
35
|
-
return { ...e, parameters:
|
|
36
|
-
}), { securitySchemes:
|
|
36
|
+
return { ...e, parameters: a };
|
|
37
|
+
}), { securitySchemes: l } = v(), n = r(
|
|
37
38
|
() => f(
|
|
38
39
|
t.value?.security || o.document.security || [],
|
|
39
40
|
o.collection.selectedSecuritySchemeUids,
|
|
40
|
-
|
|
41
|
-
).map(
|
|
41
|
+
l
|
|
42
|
+
).map(S)
|
|
43
|
+
), c = r(
|
|
44
|
+
() => g(
|
|
45
|
+
// 1) Operation
|
|
46
|
+
t.value?.servers,
|
|
47
|
+
// 2) Path Item
|
|
48
|
+
i.value?.servers,
|
|
49
|
+
// 3) Document
|
|
50
|
+
o.server
|
|
51
|
+
)
|
|
42
52
|
);
|
|
43
|
-
return (e,
|
|
44
|
-
e.config.layout === "classic" ? (
|
|
53
|
+
return (e, a) => t.value ? (s(), h(d, { key: 0 }, [
|
|
54
|
+
e.config.layout === "classic" ? (s(), m(b, {
|
|
45
55
|
key: 0,
|
|
46
56
|
id: e.id,
|
|
47
57
|
clientOptions: e.clientOptions,
|
|
@@ -51,9 +61,9 @@ const w = /* @__PURE__ */ l({
|
|
|
51
61
|
operation: t.value,
|
|
52
62
|
path: e.path,
|
|
53
63
|
securitySchemes: n.value,
|
|
54
|
-
server:
|
|
64
|
+
server: c.value,
|
|
55
65
|
store: e.store
|
|
56
|
-
}, null, 8, ["id", "clientOptions", "config", "isWebhook", "method", "operation", "path", "securitySchemes", "server", "store"])) : (
|
|
66
|
+
}, null, 8, ["id", "clientOptions", "config", "isWebhook", "method", "operation", "path", "securitySchemes", "server", "store"])) : (s(), m(W, {
|
|
57
67
|
key: 1,
|
|
58
68
|
id: e.id,
|
|
59
69
|
clientOptions: e.clientOptions,
|
|
@@ -63,12 +73,12 @@ const w = /* @__PURE__ */ l({
|
|
|
63
73
|
operation: t.value,
|
|
64
74
|
path: e.path,
|
|
65
75
|
securitySchemes: n.value,
|
|
66
|
-
server:
|
|
76
|
+
server: c.value,
|
|
67
77
|
store: e.store
|
|
68
78
|
}, null, 8, ["id", "clientOptions", "config", "isWebhook", "method", "operation", "path", "securitySchemes", "server", "store"]))
|
|
69
|
-
], 64)) :
|
|
79
|
+
], 64)) : p("", !0);
|
|
70
80
|
}
|
|
71
81
|
});
|
|
72
82
|
export {
|
|
73
|
-
|
|
83
|
+
I as default
|
|
74
84
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
1
2
|
import type { HeaderObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
header: HeaderObject;
|
|
4
5
|
name: string;
|
|
5
6
|
breadcrumb?: string[];
|
|
7
|
+
config: ApiReferenceConfiguration;
|
|
6
8
|
};
|
|
7
9
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
10
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/Header.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/Header.vue"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC;;AA0DF,wBAMG"}
|