@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA0qBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA2BvB,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AA2ChB,KAAK,WAAW,GAAG;KACd,CAAC,IAAI,mBAAmB,GAAG,CAAC,KAAK,EAAE,kBAAkB,KAAK,GAAG;CAC/D,GAAG;IAAE,mBAAmB,EAAE,GAAG,CAAA;CAAE,CAAC;AA0oBnC,QAAA,MAAM,eAAe;;YA1qBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAirB9D,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"}
|
|
@@ -4,7 +4,7 @@ import o from "./ApiReferenceLayout.vue2.js";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
7
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-27c7b7dd"]]);
|
|
8
8
|
export {
|
|
9
9
|
c as default
|
|
10
10
|
};
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { provideUseId as
|
|
3
|
-
import { OpenApiClientButton as
|
|
4
|
-
import { LAYOUT_SYMBOL as
|
|
5
|
-
import { WORKSPACE_SYMBOL as
|
|
6
|
-
import { addScalarClassesToHeadless as ve, ScalarErrorBoundary as
|
|
7
|
-
import { sleep as
|
|
8
|
-
import { hasObtrusiveScrollbars as
|
|
9
|
-
import { apiReferenceConfigurationSchema as
|
|
10
|
-
import { useBreakpoints as
|
|
11
|
-
import { useToasts as
|
|
12
|
-
import { useMediaQuery as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { hasLazyLoaded as
|
|
1
|
+
import { defineComponent as Z, computed as g, provide as b, ref as k, onBeforeMount as x, onMounted as ee, watch as D, onUnmounted as te, useId as oe, createElementBlock as u, openBlock as a, Fragment as H, createElementVNode as m, createVNode as c, normalizeStyle as re, normalizeClass as ae, unref as r, createCommentVNode as s, withDirectives as se, createBlock as S, renderSlot as l, normalizeProps as v, guardReactiveProps as f, withCtx as i, vShow as ne, createSlots as ie } from "vue";
|
|
2
|
+
import { provideUseId as le } from "@headlessui/vue";
|
|
3
|
+
import { OpenApiClientButton as de } from "@scalar/api-client/components";
|
|
4
|
+
import { LAYOUT_SYMBOL as ue } from "@scalar/api-client/hooks";
|
|
5
|
+
import { WORKSPACE_SYMBOL as ce, ACTIVE_ENTITIES_SYMBOL as me } from "@scalar/api-client/store";
|
|
6
|
+
import { addScalarClassesToHeadless as ve, ScalarErrorBoundary as fe, ScalarSidebarFooter as pe, ScalarColorModeToggleButton as he, ScalarColorModeToggleIcon as ge } from "@scalar/components";
|
|
7
|
+
import { sleep as Se } from "@scalar/helpers/testing/sleep";
|
|
8
|
+
import { hasObtrusiveScrollbars as be, getThemeStyles as ye } from "@scalar/themes";
|
|
9
|
+
import { apiReferenceConfigurationSchema as we } from "@scalar/types/api-reference";
|
|
10
|
+
import { useBreakpoints as ke } from "@scalar/use-hooks/useBreakpoints";
|
|
11
|
+
import { useToasts as $e, ScalarToasts as Me } from "@scalar/use-toasts";
|
|
12
|
+
import { useMediaQuery as De, useResizeObserver as Te, useDebounceFn as Ce } from "@vueuse/core";
|
|
13
|
+
import Ee from "./ClassicHeader.vue.js";
|
|
14
|
+
import Be from "./GettingStarted.vue.js";
|
|
15
|
+
import { hasLazyLoaded as Le } from "./Lazy/lazyBus.js";
|
|
16
16
|
import Oe from "./MobileHeader.vue.js";
|
|
17
|
-
import { CONFIGURATION_SYMBOL as
|
|
18
|
-
import { useNavState as
|
|
17
|
+
import { CONFIGURATION_SYMBOL as Ie } from "../hooks/useConfig.js";
|
|
18
|
+
import { useNavState as Re } from "../hooks/useNavState.js";
|
|
19
19
|
import { useLegacyStoreEvents as He } from "../v2/hooks/use-legacy-store-events.js";
|
|
20
20
|
import { useDocumentSource as Ae } from "../features/document-source/hooks/useDocumentSource.js";
|
|
21
|
-
import { useSidebar as Fe } from "../
|
|
21
|
+
import { useSidebar as Fe } from "../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
|
|
22
22
|
import { PLUGIN_MANAGER_SYMBOL as Pe } from "../plugins/hooks/usePluginManager.js";
|
|
23
23
|
import { createPluginManager as Ne } from "../plugins/plugin-manager.js";
|
|
24
|
-
import
|
|
24
|
+
import _e from "../v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js";
|
|
25
25
|
import A from "../features/Search/components/SearchButton.vue.js";
|
|
26
|
-
import
|
|
26
|
+
import Ue from "./Content/Content.vue.js";
|
|
27
27
|
/* empty css */
|
|
28
|
-
import
|
|
29
|
-
const
|
|
28
|
+
import Ke from "../features/api-client-modal/ApiClientModal.vue.js";
|
|
29
|
+
const Ve = ["innerHTML"], Ye = { class: "references-header" }, ze = ["aria-label"], Ge = { class: "references-navigation-list" }, Qe = { key: 0 }, We = {
|
|
30
30
|
key: 1,
|
|
31
31
|
class: "scalar-api-references-standalone-search"
|
|
32
|
-
},
|
|
32
|
+
}, je = { key: 1 }, qe = { class: "references-editor" }, Je = { class: "references-editor-textarea" }, Xe = ["aria-label"], Ze = {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "w-64 *:!p-0 empty:hidden"
|
|
35
|
-
},
|
|
35
|
+
}, xe = {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "references-footer"
|
|
38
|
-
},
|
|
38
|
+
}, Et = /* @__PURE__ */ Z({
|
|
39
39
|
inheritAttrs: !1,
|
|
40
40
|
__name: "ApiReferenceLayout",
|
|
41
41
|
props: {
|
|
@@ -47,105 +47,102 @@ const Ye = ["innerHTML"], ze = { class: "references-header" }, Ge = ["aria-label
|
|
|
47
47
|
store: {}
|
|
48
48
|
},
|
|
49
49
|
emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
|
|
50
|
-
setup(
|
|
51
|
-
const t =
|
|
52
|
-
() =>
|
|
53
|
-
), { initializeToasts: F, toast: P } =
|
|
50
|
+
setup(p) {
|
|
51
|
+
const t = g(
|
|
52
|
+
() => we.parse(p.configuration)
|
|
53
|
+
), { initializeToasts: F, toast: P } = $e();
|
|
54
54
|
F((e) => P(e));
|
|
55
|
-
const { dereferencedDocument:
|
|
55
|
+
const { dereferencedDocument: y, workspaceStore: T, activeEntitiesStore: C } = Ae({
|
|
56
56
|
configuration: t,
|
|
57
|
-
dereferencedDocument:
|
|
58
|
-
originalDocument:
|
|
57
|
+
dereferencedDocument: p.dereferencedDocument,
|
|
58
|
+
originalDocument: p.originalDocument
|
|
59
59
|
});
|
|
60
|
-
b(
|
|
61
|
-
const N =
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
b(ce, T), b(me, C);
|
|
61
|
+
const N = De("(min-width: 1150px)"), _ = k("100dvh"), h = k(null);
|
|
62
|
+
Te(h, (e) => {
|
|
63
|
+
_.value = e[0] ? e[0].contentRect.height + "px" : "100dvh";
|
|
64
64
|
});
|
|
65
|
-
const
|
|
66
|
-
...E,
|
|
67
|
-
config: t
|
|
68
|
-
}), {
|
|
65
|
+
const U = g(be), K = Re(t), { isSidebarOpen: $, setCollapsedSidebarItem: E, scrollToOperation: V, items: M } = Fe(p.store), {
|
|
69
66
|
getReferenceId: Y,
|
|
70
67
|
getPathRoutingId: z,
|
|
71
|
-
getSectionId: G,
|
|
72
|
-
getTagId: Q,
|
|
73
68
|
hash: w,
|
|
74
|
-
isIntersectionEnabled:
|
|
75
|
-
updateHash:
|
|
76
|
-
replaceUrlState:
|
|
77
|
-
} =
|
|
69
|
+
isIntersectionEnabled: B,
|
|
70
|
+
updateHash: L,
|
|
71
|
+
replaceUrlState: G
|
|
72
|
+
} = K;
|
|
78
73
|
if (t.value.redirect && typeof window < "u") {
|
|
79
74
|
const e = t.value.redirect(
|
|
80
75
|
(t.value.pathRouting ? window.location.pathname : "") + window.location.hash
|
|
81
76
|
);
|
|
82
77
|
e && history.replaceState({}, "", e);
|
|
83
78
|
}
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
x(() => {
|
|
80
|
+
L(), ve();
|
|
86
81
|
});
|
|
87
82
|
const O = async (e) => {
|
|
88
|
-
|
|
89
|
-
},
|
|
90
|
-
|
|
83
|
+
B.value = !1, L(), e ? V(e) : h.value?.scrollTo(0, 0), await Se(100), B.value = !0;
|
|
84
|
+
}, I = k(0);
|
|
85
|
+
ee(() => {
|
|
91
86
|
history.scrollRestoration = "manual";
|
|
92
|
-
const e =
|
|
87
|
+
const e = h.value?.parentElement?.getBoundingClientRect(), o = h.value?.getBoundingClientRect();
|
|
93
88
|
if (e && o) {
|
|
94
|
-
const
|
|
95
|
-
|
|
89
|
+
const n = o.top - e.top;
|
|
90
|
+
I.value = n < 2 ? 0 : n;
|
|
96
91
|
}
|
|
97
92
|
window.onhashchange = () => {
|
|
98
93
|
O(Y());
|
|
99
|
-
}, window.onpopstate = () => t.value.pathRouting && O(z(window.location.pathname)), window.addEventListener("scroll",
|
|
94
|
+
}, window.onpopstate = () => t.value.pathRouting && O(z(window.location.pathname)), window.addEventListener("scroll", R, { passive: !0 });
|
|
100
95
|
});
|
|
101
|
-
const
|
|
96
|
+
const Q = g(
|
|
102
97
|
() => N.value || !t.value.isEditable
|
|
103
|
-
),
|
|
104
|
-
window.scrollY < 50 &&
|
|
105
|
-
}),
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
98
|
+
), R = Ce(() => {
|
|
99
|
+
window.scrollY < 50 && Le.value && G("");
|
|
100
|
+
}), W = k(!1);
|
|
101
|
+
D(
|
|
102
|
+
() => p.store.workspace.activeDocument,
|
|
103
|
+
() => {
|
|
104
|
+
if (w.value) {
|
|
105
|
+
const e = M.value.entities.get(w.value), o = e?.parent?.id ?? e?.id;
|
|
106
|
+
o && E(o, !0);
|
|
107
|
+
} else {
|
|
108
|
+
const e = M.value.entries.find((o) => o.type === "tag");
|
|
109
|
+
e && E(e.id, !0);
|
|
110
|
+
}
|
|
111
|
+
W.value = !0;
|
|
116
112
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
);
|
|
114
|
+
const j = g(
|
|
115
|
+
() => M.value.entities?.get(w.value)?.title ?? ""
|
|
116
|
+
), d = g(() => ({
|
|
117
|
+
breadcrumb: j.value
|
|
121
118
|
}));
|
|
122
|
-
|
|
123
|
-
window.removeEventListener("scroll",
|
|
124
|
-
}),
|
|
119
|
+
te(() => {
|
|
120
|
+
window.removeEventListener("scroll", R);
|
|
121
|
+
}), le(() => oe()), b(ue, "modal"), b(Ie, t), b(
|
|
125
122
|
Pe,
|
|
126
123
|
Ne({
|
|
127
124
|
plugins: t.value.plugins
|
|
128
125
|
})
|
|
129
126
|
);
|
|
130
|
-
const
|
|
127
|
+
const q = g(
|
|
131
128
|
() => `<style>
|
|
132
|
-
${
|
|
129
|
+
${ye(t.value.theme, {
|
|
133
130
|
fonts: t.value.withDefaultFonts
|
|
134
131
|
})}</style>`
|
|
135
|
-
), { mediaQueries:
|
|
136
|
-
return
|
|
132
|
+
), { mediaQueries: J } = ke(), X = !1;
|
|
133
|
+
return D(J.lg, (e, o) => {
|
|
137
134
|
o && !e && ($.value = !1);
|
|
138
|
-
}),
|
|
135
|
+
}), D(w, (e, o) => {
|
|
139
136
|
e && e !== o && ($.value = !1);
|
|
140
|
-
}), He(
|
|
141
|
-
m("div", { innerHTML:
|
|
137
|
+
}), He(p.store, T, C, h), (e, o) => (a(), u(H, null, [
|
|
138
|
+
m("div", { innerHTML: q.value }, null, 8, Ve),
|
|
142
139
|
m("div", {
|
|
143
140
|
ref_key: "documentEl",
|
|
144
|
-
ref:
|
|
145
|
-
class:
|
|
141
|
+
ref: h,
|
|
142
|
+
class: ae(["scalar-app scalar-api-reference references-layout", [
|
|
146
143
|
{
|
|
147
144
|
"scalar-api-references-standalone-mobile": t.value.showSidebar ?? !0,
|
|
148
|
-
"scalar-scrollbars-obtrusive":
|
|
145
|
+
"scalar-scrollbars-obtrusive": U.value,
|
|
149
146
|
"references-editable": t.value.isEditable,
|
|
150
147
|
"references-sidebar": t.value.showSidebar,
|
|
151
148
|
"references-sidebar-mobile-open": r($),
|
|
@@ -153,56 +150,57 @@ const Ye = ["innerHTML"], ze = { class: "references-header" }, Ge = ["aria-label
|
|
|
153
150
|
},
|
|
154
151
|
e.$attrs.class
|
|
155
152
|
]]),
|
|
156
|
-
style:
|
|
157
|
-
"--scalar-y-offset": `var(--scalar-custom-header-height, ${
|
|
153
|
+
style: re({
|
|
154
|
+
"--scalar-y-offset": `var(--scalar-custom-header-height, ${I.value}px)`
|
|
158
155
|
})
|
|
159
156
|
}, [
|
|
160
|
-
m("div",
|
|
161
|
-
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (a(),
|
|
157
|
+
m("div", Ye, [
|
|
158
|
+
t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (a(), S(Oe, {
|
|
162
159
|
key: 0,
|
|
163
160
|
breadcrumb: d.value.breadcrumb
|
|
164
|
-
}, null, 8, ["breadcrumb"])) :
|
|
165
|
-
|
|
161
|
+
}, null, 8, ["breadcrumb"])) : s("", !0),
|
|
162
|
+
l(e.$slots, "header", v(f(d.value)), void 0, !0)
|
|
166
163
|
]),
|
|
167
164
|
t.value.showSidebar ? (a(), u("aside", {
|
|
168
165
|
key: 0,
|
|
169
|
-
"aria-label": `Sidebar for ${r(
|
|
166
|
+
"aria-label": `Sidebar for ${r(y)?.info?.title}`,
|
|
170
167
|
class: "references-navigation t-doc__sidebar"
|
|
171
168
|
}, [
|
|
172
|
-
m("div",
|
|
173
|
-
c(r(
|
|
174
|
-
default:
|
|
175
|
-
c(r(
|
|
176
|
-
title: r(
|
|
169
|
+
m("div", Ge, [
|
|
170
|
+
c(r(fe), null, {
|
|
171
|
+
default: i(() => [
|
|
172
|
+
c(r(_e), {
|
|
173
|
+
title: r(y)?.info?.title ?? "The OpenAPI Schema"
|
|
177
174
|
}, {
|
|
178
|
-
"sidebar-start":
|
|
179
|
-
e.$slots["document-selector"] ? (a(), u("div",
|
|
180
|
-
|
|
181
|
-
])) :
|
|
182
|
-
t.value.hideSearch ?
|
|
175
|
+
"sidebar-start": i(() => [
|
|
176
|
+
e.$slots["document-selector"] ? (a(), u("div", Qe, [
|
|
177
|
+
l(e.$slots, "document-selector", {}, void 0, !0)
|
|
178
|
+
])) : s("", !0),
|
|
179
|
+
t.value.hideSearch ? s("", !0) : (a(), u("div", We, [
|
|
183
180
|
c(r(A), {
|
|
181
|
+
document: e.store.workspace.activeDocument,
|
|
184
182
|
hideModels: t.value?.hideModels,
|
|
185
183
|
searchHotKey: t.value?.searchHotKey
|
|
186
|
-
}, null, 8, ["hideModels", "searchHotKey"])
|
|
184
|
+
}, null, 8, ["document", "hideModels", "searchHotKey"])
|
|
187
185
|
])),
|
|
188
|
-
|
|
186
|
+
l(e.$slots, "sidebar-start", v(f(d.value)), void 0, !0)
|
|
189
187
|
]),
|
|
190
|
-
"sidebar-end":
|
|
191
|
-
|
|
188
|
+
"sidebar-end": i(() => [
|
|
189
|
+
l(e.$slots, "sidebar-end", v(f(d.value)), () => [
|
|
192
190
|
c(r(pe), { class: "darklight-reference" }, {
|
|
193
|
-
toggle:
|
|
194
|
-
t.value.hideDarkModeToggle ? (a(), u("span",
|
|
191
|
+
toggle: i(() => [
|
|
192
|
+
t.value.hideDarkModeToggle ? (a(), u("span", je)) : (a(), S(r(he), {
|
|
195
193
|
key: 0,
|
|
196
194
|
modelValue: e.isDark,
|
|
197
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
195
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => e.$emit("toggleDarkMode"))
|
|
198
196
|
}, null, 8, ["modelValue"]))
|
|
199
197
|
]),
|
|
200
|
-
default:
|
|
201
|
-
t.value.hideClientButton ?
|
|
198
|
+
default: i(() => [
|
|
199
|
+
t.value.hideClientButton ? s("", !0) : (a(), S(r(de), {
|
|
202
200
|
key: 0,
|
|
203
201
|
buttonSource: "sidebar",
|
|
204
202
|
integration: t.value._integration,
|
|
205
|
-
isDevelopment:
|
|
203
|
+
isDevelopment: X,
|
|
206
204
|
url: t.value.url
|
|
207
205
|
}, null, 8, ["integration", "url"]))
|
|
208
206
|
]),
|
|
@@ -216,41 +214,41 @@ const Ye = ["innerHTML"], ze = { class: "references-header" }, Ge = ["aria-label
|
|
|
216
214
|
_: 3
|
|
217
215
|
})
|
|
218
216
|
])
|
|
219
|
-
], 8,
|
|
220
|
-
|
|
221
|
-
m("div",
|
|
222
|
-
|
|
217
|
+
], 8, ze)) : s("", !0),
|
|
218
|
+
se(m("div", qe, [
|
|
219
|
+
m("div", Je, [
|
|
220
|
+
l(e.$slots, "editor", v(f(d.value)), void 0, !0)
|
|
223
221
|
])
|
|
224
222
|
], 512), [
|
|
225
|
-
[
|
|
223
|
+
[ne, t.value.isEditable]
|
|
226
224
|
]),
|
|
227
|
-
|
|
225
|
+
Q.value ? (a(), u(H, { key: 1 }, [
|
|
228
226
|
m("main", {
|
|
229
|
-
"aria-label": `Open API Documentation for ${r(
|
|
227
|
+
"aria-label": `Open API Documentation for ${r(y)?.info?.title}`,
|
|
230
228
|
class: "references-rendered"
|
|
231
229
|
}, [
|
|
232
|
-
c(r(
|
|
230
|
+
c(r(Ue), {
|
|
233
231
|
config: t.value,
|
|
234
232
|
store: e.store
|
|
235
|
-
},
|
|
236
|
-
start:
|
|
237
|
-
|
|
238
|
-
t.value.layout === "classic" ? (a(),
|
|
239
|
-
"dark-mode-toggle":
|
|
240
|
-
t.value.hideDarkModeToggle ?
|
|
233
|
+
}, ie({
|
|
234
|
+
start: i(() => [
|
|
235
|
+
l(e.$slots, "content-start", v(f(d.value)), void 0, !0),
|
|
236
|
+
t.value.layout === "classic" ? (a(), S(Ee, { key: 0 }, {
|
|
237
|
+
"dark-mode-toggle": i(() => [
|
|
238
|
+
t.value.hideDarkModeToggle ? s("", !0) : (a(), S(r(ge), {
|
|
241
239
|
key: 0,
|
|
242
240
|
class: "text-c-2 hover:text-c-1",
|
|
243
241
|
mode: e.isDark ? "dark" : "light",
|
|
244
242
|
style: { transform: "scale(1.4)" },
|
|
245
243
|
variant: "icon",
|
|
246
|
-
onClick: o[1] || (o[1] = (
|
|
244
|
+
onClick: o[1] || (o[1] = (n) => e.$emit("toggleDarkMode"))
|
|
247
245
|
}, null, 8, ["mode"]))
|
|
248
246
|
]),
|
|
249
|
-
default:
|
|
250
|
-
e.$slots["document-selector"] ? (a(), u("div",
|
|
251
|
-
|
|
252
|
-
])) :
|
|
253
|
-
t.value.hideSearch ?
|
|
247
|
+
default: i(() => [
|
|
248
|
+
e.$slots["document-selector"] ? (a(), u("div", Ze, [
|
|
249
|
+
l(e.$slots, "document-selector", {}, void 0, !0)
|
|
250
|
+
])) : s("", !0),
|
|
251
|
+
t.value.hideSearch ? s("", !0) : (a(), S(r(A), {
|
|
254
252
|
key: 1,
|
|
255
253
|
class: "t-doc__sidebar max-w-64",
|
|
256
254
|
hideModels: t.value?.hideModels,
|
|
@@ -258,35 +256,35 @@ const Ye = ["innerHTML"], ze = { class: "references-header" }, Ge = ["aria-label
|
|
|
258
256
|
}, null, 8, ["hideModels", "searchHotKey"]))
|
|
259
257
|
]),
|
|
260
258
|
_: 3
|
|
261
|
-
})) :
|
|
259
|
+
})) : s("", !0)
|
|
262
260
|
]),
|
|
263
|
-
end:
|
|
264
|
-
|
|
261
|
+
end: i(() => [
|
|
262
|
+
l(e.$slots, "content-end", v(f(d.value)), void 0, !0)
|
|
265
263
|
]),
|
|
266
264
|
_: 2
|
|
267
265
|
}, [
|
|
268
266
|
t.value?.isEditable ? {
|
|
269
267
|
name: "empty-state",
|
|
270
|
-
fn:
|
|
271
|
-
c(
|
|
268
|
+
fn: i(() => [
|
|
269
|
+
c(Be, {
|
|
272
270
|
theme: t.value?.theme || "default",
|
|
273
|
-
onChangeTheme: o[2] || (o[2] = (
|
|
274
|
-
onLinkSwaggerFile: o[3] || (o[3] = (
|
|
275
|
-
onLoadSwaggerFile: o[4] || (o[4] = (
|
|
276
|
-
onUpdateContent: o[5] || (o[5] = (
|
|
271
|
+
onChangeTheme: o[2] || (o[2] = (n) => e.$emit("changeTheme", n)),
|
|
272
|
+
onLinkSwaggerFile: o[3] || (o[3] = (n) => e.$emit("linkSwaggerFile")),
|
|
273
|
+
onLoadSwaggerFile: o[4] || (o[4] = (n) => e.$emit("loadSwaggerFile")),
|
|
274
|
+
onUpdateContent: o[5] || (o[5] = (n) => e.$emit("updateContent", n))
|
|
277
275
|
}, null, 8, ["theme"])
|
|
278
276
|
]),
|
|
279
277
|
key: "0"
|
|
280
278
|
} : void 0
|
|
281
279
|
]), 1032, ["config", "store"])
|
|
282
|
-
], 8,
|
|
283
|
-
e.$slots.footer ? (a(), u("div",
|
|
284
|
-
|
|
285
|
-
])) :
|
|
286
|
-
], 64)) :
|
|
287
|
-
c(r(
|
|
280
|
+
], 8, Xe),
|
|
281
|
+
e.$slots.footer ? (a(), u("div", xe, [
|
|
282
|
+
l(e.$slots, "footer", v(f(d.value)), void 0, !0)
|
|
283
|
+
])) : s("", !0)
|
|
284
|
+
], 64)) : s("", !0),
|
|
285
|
+
c(r(Ke), {
|
|
288
286
|
configuration: t.value,
|
|
289
|
-
dereferencedDocument: r(
|
|
287
|
+
dereferencedDocument: r(y)
|
|
290
288
|
}, null, 8, ["configuration", "dereferencedDocument"])
|
|
291
289
|
], 6),
|
|
292
290
|
c(r(Me))
|
|
@@ -294,5 +292,5 @@ const Ye = ["innerHTML"], ze = { class: "references-header" }, Ge = ["aria-label
|
|
|
294
292
|
}
|
|
295
293
|
});
|
|
296
294
|
export {
|
|
297
|
-
|
|
295
|
+
Et as default
|
|
298
296
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAoMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAkBpE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AAiUF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAuC5C,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"}
|