@scalar/api-reference 1.33.0 → 1.34.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.
Files changed (148) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/browser/standalone.js +13276 -13205
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/WithBreadcrumb.vue.d.ts +24 -0
  5. package/dist/components/Anchor/WithBreadcrumb.vue.d.ts.map +1 -0
  6. package/dist/components/Anchor/WithBreadcrumb.vue.js +4 -0
  7. package/dist/components/Anchor/WithBreadcrumb.vue2.js +46 -0
  8. package/dist/components/Anchor/index.d.ts +1 -0
  9. package/dist/components/Anchor/index.d.ts.map +1 -1
  10. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  11. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  12. package/dist/components/ApiReferenceLayout.vue2.js +184 -201
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  15. package/dist/components/Content/Introduction/Introduction.vue2.js +1 -0
  16. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +1 -0
  17. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Operations/TraversedEntry.vue.js +34 -32
  19. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +33 -29
  21. package/dist/components/Content/Operations/get-current-index.d.ts +4 -0
  22. package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -0
  23. package/dist/components/Content/Operations/get-current-index.js +16 -0
  24. package/dist/components/Content/Schema/Schema.preview.d.ts +28 -0
  25. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  26. package/dist/components/Content/Schema/Schema.vue.d.ts +2 -0
  27. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  29. package/dist/components/Content/Schema/Schema.vue2.js +164 -157
  30. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +1 -0
  31. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Schema/SchemaComposition.vue.js +58 -53
  33. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +1 -0
  34. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +52 -40
  36. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -0
  37. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  39. package/dist/components/Content/Schema/SchemaProperty.vue2.js +100 -87
  40. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
  42. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +4 -1
  43. package/dist/components/Lazy/Lazy.vue.d.ts +1 -0
  44. package/dist/components/Lazy/Lazy.vue.d.ts.map +1 -1
  45. package/dist/components/Lazy/Lazy.vue2.js +12 -11
  46. package/dist/components/Lazy/lazyBus.d.ts +5 -3
  47. package/dist/components/Lazy/lazyBus.d.ts.map +1 -1
  48. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  49. package/dist/components/OperationsList/OperationsListItem.vue.js +1 -1
  50. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +4 -4
  51. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  52. package/dist/features/Operation/components/OperationParameters.vue.d.ts +1 -0
  53. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  54. package/dist/features/Operation/components/OperationParameters.vue.js +49 -43
  55. package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -0
  56. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  57. package/dist/features/Operation/components/OperationResponses.vue.js +4 -3
  58. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +1 -0
  59. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  60. package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
  61. package/dist/features/Operation/components/ParameterHeaders.vue2.js +28 -26
  62. package/dist/features/Operation/components/ParameterList.vue.d.ts +1 -0
  63. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  64. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  65. package/dist/features/Operation/components/ParameterList.vue2.js +17 -15
  66. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +1 -0
  67. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  68. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  69. package/dist/features/Operation/components/ParameterListItem.vue2.js +17 -16
  70. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -2
  71. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  72. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  73. package/dist/features/Operation/components/RequestBody.vue2.js +47 -39
  74. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +1 -0
  75. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  76. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  77. package/dist/features/Operation/components/callbacks/Callback.vue2.js +12 -11
  78. package/dist/features/Operation/components/callbacks/Callback.vue3.js +2 -2
  79. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  80. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  81. package/dist/features/Operation/layouts/ModernLayout.vue2.js +63 -61
  82. package/dist/features/Search/{SearchButton.vue.d.ts → components/SearchButton.vue.d.ts} +0 -2
  83. package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -0
  84. package/dist/features/Search/components/SearchButton.vue.js +65 -0
  85. package/dist/features/Search/{SearchModal.vue.d.ts → components/SearchModal.vue.d.ts} +0 -2
  86. package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -0
  87. package/dist/features/Search/components/SearchModal.vue.js +7 -0
  88. package/dist/features/Search/components/SearchModal.vue2.js +199 -0
  89. package/dist/features/Search/helpers/create-fuse-instance.d.ts +9 -0
  90. package/dist/features/Search/helpers/create-fuse-instance.d.ts.map +1 -0
  91. package/dist/features/Search/helpers/create-fuse-instance.js +46 -0
  92. package/dist/features/Search/helpers/create-search-index.d.ts +7 -0
  93. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -0
  94. package/dist/features/Search/helpers/create-search-index.js +109 -0
  95. package/dist/features/Search/hooks/useSearchIndex.d.ts +14 -0
  96. package/dist/features/Search/hooks/useSearchIndex.d.ts.map +1 -0
  97. package/dist/features/Search/hooks/useSearchIndex.js +46 -0
  98. package/dist/features/Search/index.d.ts +2 -2
  99. package/dist/features/Search/index.d.ts.map +1 -1
  100. package/dist/features/Search/types.d.ts +15 -0
  101. package/dist/features/Search/types.d.ts.map +1 -0
  102. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  103. package/dist/features/api-client-modal/ApiClientModal.vue.js +45 -45
  104. package/dist/features/api-client-modal/useApiClient.d.ts +14 -14
  105. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  106. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +3 -1
  107. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
  108. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
  109. package/dist/features/traverse-schema/helpers/traverse-schemas.js +18 -18
  110. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
  111. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
  112. package/dist/features/traverse-schema/types.d.ts +10 -6
  113. package/dist/features/traverse-schema/types.d.ts.map +1 -1
  114. package/dist/helpers/test-utils.d.ts +9 -0
  115. package/dist/helpers/test-utils.d.ts.map +1 -1
  116. package/dist/hooks/useNavState.d.ts +4 -1
  117. package/dist/hooks/useNavState.d.ts.map +1 -1
  118. package/dist/index.d.ts +0 -1
  119. package/dist/index.d.ts.map +1 -1
  120. package/dist/index.js +17 -19
  121. package/dist/libs/openapi.d.ts +11 -8
  122. package/dist/libs/openapi.d.ts.map +1 -1
  123. package/dist/libs/openapi.js +34 -55
  124. package/dist/style.css +1 -1
  125. package/dist/types.d.ts +1 -6
  126. package/dist/types.d.ts.map +1 -1
  127. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  128. package/dist/v2/ApiReferenceWorkspace.vue.js +120 -111
  129. package/dist/v2/helpers/get-document-name.d.ts +13 -0
  130. package/dist/v2/helpers/get-document-name.d.ts.map +1 -0
  131. package/dist/v2/helpers/get-document-name.js +15 -0
  132. package/dist/v2/helpers/normalize-content.d.ts +3 -0
  133. package/dist/v2/helpers/normalize-content.d.ts.map +1 -0
  134. package/dist/v2/helpers/normalize-content.js +8 -0
  135. package/package.json +16 -10
  136. package/dist/features/Search/SearchButton.vue.d.ts.map +0 -1
  137. package/dist/features/Search/SearchButton.vue.js +0 -66
  138. package/dist/features/Search/SearchModal.vue.d.ts.map +0 -1
  139. package/dist/features/Search/SearchModal.vue.js +0 -7
  140. package/dist/features/Search/SearchModal.vue2.js +0 -207
  141. package/dist/features/Search/useSearchIndex.d.ts +0 -32
  142. package/dist/features/Search/useSearchIndex.d.ts.map +0 -1
  143. package/dist/features/Search/useSearchIndex.js +0 -170
  144. package/dist/helpers/parse.d.ts +0 -10
  145. package/dist/helpers/parse.d.ts.map +0 -1
  146. package/dist/helpers/parse.js +0 -81
  147. /package/dist/features/Search/{SearchButton.vue2.js → components/SearchButton.vue2.js} +0 -0
  148. /package/dist/features/Search/{SearchModal.vue3.js → components/SearchModal.vue3.js} +0 -0
@@ -1,44 +1,42 @@
1
- import { defineComponent as fe, computed as M, provide as S, ref as T, onBeforeMount as ve, onMounted as Y, watch as O, toValue as K, onUnmounted as pe, useId as ge, createElementBlock as f, openBlock as a, Fragment as z, createElementVNode as p, createVNode as v, normalizeStyle as he, normalizeClass as Se, unref as r, createCommentVNode as i, withDirectives as be, createBlock as b, renderSlot as d, normalizeProps as g, guardReactiveProps as h, withCtx as n, vShow as ye, createSlots as we } from "vue";
2
- import { provideUseId as ke } from "@headlessui/vue";
3
- import { OpenApiClientButton as $e } from "@scalar/api-client/components";
4
- import { LAYOUT_SYMBOL as Me } from "@scalar/api-client/hooks";
5
- import { WORKSPACE_SYMBOL as Te, ACTIVE_ENTITIES_SYMBOL as De } from "@scalar/api-client/store";
6
- import { addScalarClassesToHeadless as Ce, ScalarErrorBoundary as Ee, ScalarSidebarFooter as Oe, ScalarColorModeToggleButton as Ie, ScalarColorModeToggleIcon as Be } from "@scalar/components";
7
- import { sleep as Le } from "@scalar/helpers/testing/sleep";
8
- import { hasObtrusiveScrollbars as Re, getThemeStyles as _e } from "@scalar/themes";
9
- import { apiReferenceConfigurationSchema as Ae } from "@scalar/types/api-reference";
10
- import { useBreakpoints as Pe } from "@scalar/use-hooks/useBreakpoints";
11
- import { useToasts as He, ScalarToasts as Fe } from "@scalar/use-toasts";
12
- import { useMediaQuery as Ne, useResizeObserver as Ve, useDebounceFn as Ue } from "@vueuse/core";
13
- import Ye from "./ClassicHeader.vue.js";
14
- import Ke from "./GettingStarted.vue.js";
15
- import { hasLazyLoaded as ze } from "./Lazy/lazyBus.js";
16
- import Ge from "./MobileHeader.vue.js";
17
- import { parse as Qe } from "../helpers/parse.js";
18
- import { CONFIGURATION_SYMBOL as We } from "../hooks/useConfig.js";
19
- import { useNavState as je } from "../hooks/useNavState.js";
20
- import { downloadEventBus as G, downloadDocument as qe } from "../libs/download.js";
21
- import { createEmptySpecification as Je } from "../libs/openapi.js";
22
- import { useDocumentSource as Xe } from "../features/document-source/hooks/useDocumentSource.js";
23
- import { OPENAPI_VERSION_SYMBOL as Ze } from "../features/download-link/openapi-version-symbol.js";
24
- import { useSidebar as xe } from "../features/sidebar/hooks/useSidebar.js";
25
- import { PLUGIN_MANAGER_SYMBOL as et } from "../plugins/hooks/usePluginManager.js";
26
- import { createPluginManager as tt } from "../plugins/plugin-manager.js";
27
- import ot from "../features/sidebar/components/Sidebar.vue.js";
28
- import Q from "../features/Search/SearchButton.vue.js";
29
- import rt from "./Content/Content.vue.js";
1
+ import { defineComponent as me, computed as M, provide as S, ref as C, onBeforeMount as fe, onMounted as V, watch as I, toValue as U, onUnmounted as ve, useId as pe, createElementBlock as m, openBlock as a, Fragment as Y, createElementVNode as p, createVNode as f, normalizeStyle as ge, normalizeClass as he, unref as r, createCommentVNode as l, withDirectives as Se, createBlock as b, renderSlot as d, normalizeProps as g, guardReactiveProps as h, withCtx as s, vShow as be, createSlots as ye } from "vue";
2
+ import { provideUseId as we } from "@headlessui/vue";
3
+ import { OpenApiClientButton as ke } from "@scalar/api-client/components";
4
+ import { LAYOUT_SYMBOL as $e } from "@scalar/api-client/hooks";
5
+ import { WORKSPACE_SYMBOL as Me, ACTIVE_ENTITIES_SYMBOL as Te } from "@scalar/api-client/store";
6
+ import { addScalarClassesToHeadless as De, ScalarErrorBoundary as Ce, ScalarSidebarFooter as Ee, ScalarColorModeToggleButton as Oe, ScalarColorModeToggleIcon as Ie } from "@scalar/components";
7
+ import { sleep as Be } from "@scalar/helpers/testing/sleep";
8
+ import { hasObtrusiveScrollbars as Le, getThemeStyles as Re } from "@scalar/themes";
9
+ import { apiReferenceConfigurationSchema as _e } from "@scalar/types/api-reference";
10
+ import { useBreakpoints as Ae } from "@scalar/use-hooks/useBreakpoints";
11
+ import { useToasts as Pe, ScalarToasts as He } from "@scalar/use-toasts";
12
+ import { useMediaQuery as Fe, useResizeObserver as Ne, useDebounceFn as Ve } from "@vueuse/core";
13
+ import Ue from "./ClassicHeader.vue.js";
14
+ import Ye from "./GettingStarted.vue.js";
15
+ import { hasLazyLoaded as Ke } from "./Lazy/lazyBus.js";
16
+ import ze from "./MobileHeader.vue.js";
17
+ import { CONFIGURATION_SYMBOL as Ge } from "../hooks/useConfig.js";
18
+ import { useNavState as Qe } from "../hooks/useNavState.js";
19
+ import { downloadEventBus as K, downloadDocument as We } from "../libs/download.js";
20
+ import { useDocumentSource as je } from "../features/document-source/hooks/useDocumentSource.js";
21
+ import { OPENAPI_VERSION_SYMBOL as qe } from "../features/download-link/openapi-version-symbol.js";
22
+ import { useSidebar as Je } from "../features/sidebar/hooks/useSidebar.js";
23
+ import { PLUGIN_MANAGER_SYMBOL as Xe } from "../plugins/hooks/usePluginManager.js";
24
+ import { createPluginManager as Ze } from "../plugins/plugin-manager.js";
25
+ import xe from "../features/sidebar/components/Sidebar.vue.js";
26
+ import z from "../features/Search/components/SearchButton.vue.js";
27
+ import et from "./Content/Content.vue.js";
30
28
  import "./Content/Content.vue2.js";
31
- import at from "../features/api-client-modal/ApiClientModal.vue.js";
32
- const st = ["innerHTML"], it = { class: "references-header" }, nt = ["aria-label"], lt = { class: "references-navigation-list" }, dt = { key: 0 }, ut = {
29
+ import tt from "../features/api-client-modal/ApiClientModal.vue.js";
30
+ const ot = ["innerHTML"], rt = { class: "references-header" }, at = ["aria-label"], nt = { class: "references-navigation-list" }, lt = { key: 0 }, st = {
33
31
  key: 1,
34
32
  class: "scalar-api-references-standalone-search"
35
- }, ct = { key: 1 }, mt = { class: "references-editor" }, ft = { class: "references-editor-textarea" }, vt = ["aria-label"], pt = {
33
+ }, it = { key: 1 }, dt = { class: "references-editor" }, ut = { class: "references-editor-textarea" }, ct = ["aria-label"], mt = {
36
34
  key: 0,
37
35
  class: "w-64 *:!p-0 empty:hidden"
38
- }, gt = {
36
+ }, ft = {
39
37
  key: 0,
40
38
  class: "references-footer"
41
- }, jt = /* @__PURE__ */ fe({
39
+ }, Kt = /* @__PURE__ */ me({
42
40
  inheritAttrs: !1,
43
41
  __name: "ApiReferenceLayout",
44
42
  props: {
@@ -46,204 +44,190 @@ const st = ["innerHTML"], it = { class: "references-header" }, nt = ["aria-label
46
44
  dereferencedDocument: {},
47
45
  originalDocument: {},
48
46
  isDark: { type: Boolean },
49
- parsedSpec: {},
50
47
  rawSpec: {},
51
48
  store: {}
52
49
  },
53
50
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
54
- setup(D) {
51
+ setup(T) {
55
52
  const t = M(
56
- () => Ae.parse(D.configuration)
57
- ), { initializeToasts: W, toast: j } = He();
58
- W((e) => j(e));
53
+ () => _e.parse(T.configuration)
54
+ ), { initializeToasts: G, toast: Q } = Pe();
55
+ G((e) => Q(e));
59
56
  const {
60
- originalDocument: q,
61
- originalOpenApiVersion: J,
62
- dereferencedDocument: u,
63
- workspaceStore: X,
64
- activeEntitiesStore: Z
65
- } = Xe({
57
+ originalDocument: W,
58
+ originalOpenApiVersion: j,
59
+ dereferencedDocument: v,
60
+ workspaceStore: q,
61
+ activeEntitiesStore: J
62
+ } = je({
66
63
  configuration: t,
67
- dereferencedDocument: D.dereferencedDocument,
68
- originalDocument: D.originalDocument
64
+ dereferencedDocument: T.dereferencedDocument,
65
+ originalDocument: T.originalDocument
69
66
  });
70
- S(Ze, J), S(Te, X), S(De, Z);
71
- const x = Ne("(min-width: 1150px)"), ee = T("100dvh"), y = T(null);
72
- Ve(y, (e) => {
73
- ee.value = e[0] ? e[0].contentRect.height + "px" : "100dvh";
67
+ S(qe, j), S(Me, q), S(Te, J);
68
+ const X = Fe("(min-width: 1150px)"), Z = C("100dvh"), y = C(null);
69
+ Ne(y, (e) => {
70
+ Z.value = e[0] ? e[0].contentRect.height + "px" : "100dvh";
74
71
  });
75
- const te = M(Re), L = je(t), { isSidebarOpen: I, setCollapsedSidebarItem: R, scrollToOperation: oe, items: _ } = xe(u, {
76
- ...L,
72
+ const x = M(Le), B = Qe(t), { isSidebarOpen: E, setCollapsedSidebarItem: L, scrollToOperation: ee, items: te } = Je(v, {
73
+ ...B,
77
74
  config: t
78
75
  }), {
79
- getReferenceId: re,
80
- getPathRoutingId: ae,
81
- getSectionId: se,
82
- getTagId: ie,
83
- hash: C,
84
- isIntersectionEnabled: A,
85
- updateHash: P,
86
- replaceUrlState: ne
87
- } = L;
76
+ getReferenceId: oe,
77
+ getPathRoutingId: re,
78
+ getSectionId: ae,
79
+ getTagId: ne,
80
+ hash: D,
81
+ isIntersectionEnabled: R,
82
+ updateHash: _,
83
+ replaceUrlState: le
84
+ } = B;
88
85
  if (t.value.redirect && typeof window < "u") {
89
86
  const e = t.value.redirect(
90
87
  (t.value.pathRouting ? window.location.pathname : "") + window.location.hash
91
88
  );
92
89
  e && history.replaceState({}, "", e);
93
90
  }
94
- ve(() => {
95
- P(), Ce();
91
+ fe(() => {
92
+ _(), De();
96
93
  });
97
- const H = async (e) => {
94
+ const A = async (e) => {
98
95
  var o;
99
- A.value = !1, P(), e ? oe(e) : (o = y.value) == null || o.scrollTo(0, 0), await Le(100), A.value = !0;
100
- }, F = T(0);
101
- Y(() => {
102
- var s, w, k;
96
+ R.value = !1, _(), e ? ee(e) : (o = y.value) == null || o.scrollTo(0, 0), await Be(100), R.value = !0;
97
+ }, P = C(0);
98
+ V(() => {
99
+ var n, w, k;
103
100
  history.scrollRestoration = "manual";
104
- const e = (w = (s = y.value) == null ? void 0 : s.parentElement) == null ? void 0 : w.getBoundingClientRect(), o = (k = y.value) == null ? void 0 : k.getBoundingClientRect();
101
+ const e = (w = (n = y.value) == null ? void 0 : n.parentElement) == null ? void 0 : w.getBoundingClientRect(), o = (k = y.value) == null ? void 0 : k.getBoundingClientRect();
105
102
  if (e && o) {
106
103
  const $ = o.top - e.top;
107
- F.value = $ < 2 ? 0 : $;
104
+ P.value = $ < 2 ? 0 : $;
108
105
  }
109
106
  window.onhashchange = () => {
110
- H(re());
111
- }, window.onpopstate = () => t.value.pathRouting && H(ae(window.location.pathname)), window.addEventListener("scroll", N, { passive: !0 });
107
+ A(oe());
108
+ }, window.onpopstate = () => t.value.pathRouting && A(re(window.location.pathname)), window.addEventListener("scroll", H, { passive: !0 });
112
109
  });
113
- const le = M(
114
- () => x.value || !t.value.isEditable
115
- ), N = Ue(() => {
116
- window.scrollY < 50 && ze.value && ne("");
117
- }), de = T(!1);
118
- O(u, (e) => {
110
+ const se = M(
111
+ () => X.value || !t.value.isEditable
112
+ ), H = Ve(() => {
113
+ window.scrollY < 50 && Ke.value && le("");
114
+ }), ie = C(!1);
115
+ I(v, (e) => {
119
116
  var o;
120
- if (C.value) {
121
- const s = se(C.value);
122
- s && R(s, !0);
117
+ if (D.value) {
118
+ const n = ae(D.value);
119
+ n && L(n, !0);
123
120
  } else {
124
- const s = (o = e.tags) == null ? void 0 : o[0];
125
- s && R(ie(s), !0);
121
+ const n = (o = e.tags) == null ? void 0 : o[0];
122
+ n && L(ne(n), !0);
126
123
  }
127
- de.value = !0;
124
+ ie.value = !0;
128
125
  });
129
- const E = T(Je());
130
- O(
131
- u,
132
- async (e) => {
133
- if (!e)
134
- return;
135
- const o = await Qe(e, _.value.entries);
136
- E.value = o;
137
- },
138
- { immediate: !0 }
139
- );
140
- const c = M(() => {
126
+ const u = M(() => {
141
127
  var e;
142
128
  return {
143
- spec: E.value,
144
- breadcrumb: ((e = _.value) == null ? void 0 : e.titles.get(C.value)) ?? ""
129
+ breadcrumb: ((e = te.value) == null ? void 0 : e.titles.get(D.value)) ?? ""
145
130
  };
146
131
  });
147
- Y(
148
- () => G.on(({ filename: e, format: o }) => {
149
- qe(
150
- K(q) || K(D.rawSpec) || "",
132
+ V(
133
+ () => K.on(({ filename: e, format: o }) => {
134
+ We(
135
+ U(W) || U(T.rawSpec) || "",
151
136
  e,
152
137
  o
153
138
  );
154
139
  })
155
- ), pe(() => {
156
- window.removeEventListener("scroll", N), G.reset();
157
- }), ke(() => ge()), S(Me, "modal"), S(We, t), S(
158
- et,
159
- tt({
140
+ ), ve(() => {
141
+ window.removeEventListener("scroll", H), K.reset();
142
+ }), we(() => pe()), S($e, "modal"), S(Ge, t), S(
143
+ Xe,
144
+ Ze({
160
145
  plugins: t.value.plugins
161
146
  })
162
147
  );
163
- const ue = M(
148
+ const de = M(
164
149
  () => `<style>
165
- ${_e(t.value.theme, {
150
+ ${Re(t.value.theme, {
166
151
  fonts: t.value.withDefaultFonts
167
152
  })}</style>`
168
- ), { mediaQueries: ce } = Pe(), me = !1;
169
- return O(ce.lg, (e, o) => {
170
- o && !e && (I.value = !1);
171
- }), O(C, (e, o) => {
172
- e && e !== o && (I.value = !1);
153
+ ), { mediaQueries: ue } = Ae(), ce = !1;
154
+ return I(ue.lg, (e, o) => {
155
+ o && !e && (E.value = !1);
156
+ }), I(D, (e, o) => {
157
+ e && e !== o && (E.value = !1);
173
158
  }), (e, o) => {
174
- var s, w, k, $, V;
175
- return a(), f(z, null, [
176
- p("div", { innerHTML: ue.value }, null, 8, st),
159
+ var n, w, k, $, F;
160
+ return a(), m(Y, null, [
161
+ p("div", { innerHTML: de.value }, null, 8, ot),
177
162
  p("div", {
178
163
  ref_key: "documentEl",
179
164
  ref: y,
180
- class: Se(["scalar-app scalar-api-reference references-layout", [
165
+ class: he(["scalar-app scalar-api-reference references-layout", [
181
166
  {
182
167
  "scalar-api-references-standalone-mobile": t.value.showSidebar ?? !0,
183
- "scalar-scrollbars-obtrusive": te.value,
168
+ "scalar-scrollbars-obtrusive": x.value,
184
169
  "references-editable": t.value.isEditable,
185
170
  "references-sidebar": t.value.showSidebar,
186
- "references-sidebar-mobile-open": r(I),
171
+ "references-sidebar-mobile-open": r(E),
187
172
  "references-classic": t.value.layout === "classic"
188
173
  },
189
174
  e.$attrs.class
190
175
  ]]),
191
- style: he({
192
- "--scalar-y-offset": `var(--scalar-custom-header-height, ${F.value}px)`
176
+ style: ge({
177
+ "--scalar-y-offset": `var(--scalar-custom-header-height, ${P.value}px)`
193
178
  })
194
179
  }, [
195
- p("div", it, [
196
- t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (a(), b(Ge, {
180
+ p("div", rt, [
181
+ t.value.layout === "modern" && (t.value.showSidebar ?? !0) ? (a(), b(ze, {
197
182
  key: 0,
198
- breadcrumb: c.value.breadcrumb
199
- }, null, 8, ["breadcrumb"])) : i("", !0),
200
- d(e.$slots, "header", g(h(c.value)), void 0, !0)
183
+ breadcrumb: u.value.breadcrumb
184
+ }, null, 8, ["breadcrumb"])) : l("", !0),
185
+ d(e.$slots, "header", g(h(u.value)), void 0, !0)
201
186
  ]),
202
- t.value.showSidebar ? (a(), f("aside", {
187
+ t.value.showSidebar ? (a(), m("aside", {
203
188
  key: 0,
204
- "aria-label": `Sidebar for ${(w = (s = r(u)) == null ? void 0 : s.info) == null ? void 0 : w.title}`,
189
+ "aria-label": `Sidebar for ${(w = (n = r(v)) == null ? void 0 : n.info) == null ? void 0 : w.title}`,
205
190
  class: "references-navigation t-doc__sidebar"
206
191
  }, [
207
- p("div", lt, [
208
- v(r(Ee), null, {
209
- default: n(() => {
210
- var l, m;
192
+ p("div", nt, [
193
+ f(r(Ce), null, {
194
+ default: s(() => {
195
+ var i, c;
211
196
  return [
212
- v(r(ot), {
213
- title: ((m = (l = r(u)) == null ? void 0 : l.info) == null ? void 0 : m.title) ?? "The OpenAPI Schema"
197
+ f(r(xe), {
198
+ title: ((c = (i = r(v)) == null ? void 0 : i.info) == null ? void 0 : c.title) ?? "The OpenAPI Schema"
214
199
  }, {
215
- "sidebar-start": n(() => {
216
- var B, U;
200
+ "sidebar-start": s(() => {
201
+ var O, N;
217
202
  return [
218
- e.$slots["document-selector"] ? (a(), f("div", dt, [
203
+ e.$slots["document-selector"] ? (a(), m("div", lt, [
219
204
  d(e.$slots, "document-selector", {}, void 0, !0)
220
- ])) : i("", !0),
221
- t.value.hideSearch ? i("", !0) : (a(), f("div", ut, [
222
- v(r(Q), {
223
- searchHotKey: (B = t.value) == null ? void 0 : B.searchHotKey,
224
- hideModels: (U = t.value) == null ? void 0 : U.hideModels,
225
- spec: E.value
226
- }, null, 8, ["searchHotKey", "hideModels", "spec"])
205
+ ])) : l("", !0),
206
+ t.value.hideSearch ? l("", !0) : (a(), m("div", st, [
207
+ f(r(z), {
208
+ searchHotKey: (O = t.value) == null ? void 0 : O.searchHotKey,
209
+ hideModels: (N = t.value) == null ? void 0 : N.hideModels
210
+ }, null, 8, ["searchHotKey", "hideModels"])
227
211
  ])),
228
- d(e.$slots, "sidebar-start", g(h(c.value)), void 0, !0)
212
+ d(e.$slots, "sidebar-start", g(h(u.value)), void 0, !0)
229
213
  ];
230
214
  }),
231
- "sidebar-end": n(() => [
232
- d(e.$slots, "sidebar-end", g(h(c.value)), () => [
233
- v(r(Oe), { class: "darklight-reference" }, {
234
- toggle: n(() => [
235
- t.value.hideDarkModeToggle ? (a(), f("span", ct)) : (a(), b(r(Ie), {
215
+ "sidebar-end": s(() => [
216
+ d(e.$slots, "sidebar-end", g(h(u.value)), () => [
217
+ f(r(Ee), { class: "darklight-reference" }, {
218
+ toggle: s(() => [
219
+ t.value.hideDarkModeToggle ? (a(), m("span", it)) : (a(), b(r(Oe), {
236
220
  key: 0,
237
221
  modelValue: e.isDark,
238
- "onUpdate:modelValue": o[0] || (o[0] = (B) => e.$emit("toggleDarkMode"))
222
+ "onUpdate:modelValue": o[0] || (o[0] = (O) => e.$emit("toggleDarkMode"))
239
223
  }, null, 8, ["modelValue"]))
240
224
  ]),
241
- default: n(() => [
242
- t.value.hideClientButton ? i("", !0) : (a(), b(r($e), {
225
+ default: s(() => [
226
+ t.value.hideClientButton ? l("", !0) : (a(), b(r(ke), {
243
227
  key: 0,
244
228
  buttonSource: "sidebar",
245
229
  integration: t.value._integration,
246
- isDevelopment: me,
230
+ isDevelopment: ce,
247
231
  url: t.value.url
248
232
  }, null, 8, ["integration", "url"]))
249
233
  ]),
@@ -258,93 +242,92 @@ const st = ["innerHTML"], it = { class: "references-header" }, nt = ["aria-label
258
242
  _: 3
259
243
  })
260
244
  ])
261
- ], 8, nt)) : i("", !0),
262
- be(p("div", mt, [
263
- p("div", ft, [
264
- d(e.$slots, "editor", g(h(c.value)), void 0, !0)
245
+ ], 8, at)) : l("", !0),
246
+ Se(p("div", dt, [
247
+ p("div", ut, [
248
+ d(e.$slots, "editor", g(h(u.value)), void 0, !0)
265
249
  ])
266
250
  ], 512), [
267
- [ye, t.value.isEditable]
251
+ [be, t.value.isEditable]
268
252
  ]),
269
- le.value ? (a(), f(z, { key: 1 }, [
253
+ se.value ? (a(), m(Y, { key: 1 }, [
270
254
  p("main", {
271
- "aria-label": `Open API Documentation for ${($ = (k = r(u)) == null ? void 0 : k.info) == null ? void 0 : $.title}`,
255
+ "aria-label": `Open API Documentation for ${($ = (k = r(v)) == null ? void 0 : k.info) == null ? void 0 : $.title}`,
272
256
  class: "references-rendered"
273
257
  }, [
274
- v(r(rt), {
275
- document: r(u),
258
+ f(r(et), {
259
+ document: r(v),
276
260
  config: t.value,
277
261
  store: e.store
278
- }, we({
279
- start: n(() => [
280
- d(e.$slots, "content-start", g(h(c.value)), () => [
281
- t.value.layout === "classic" ? (a(), b(Ye, { key: 0 }, {
282
- "dark-mode-toggle": n(() => [
283
- t.value.hideDarkModeToggle ? i("", !0) : (a(), b(r(Be), {
262
+ }, ye({
263
+ start: s(() => [
264
+ d(e.$slots, "content-start", g(h(u.value)), () => [
265
+ t.value.layout === "classic" ? (a(), b(Ue, { key: 0 }, {
266
+ "dark-mode-toggle": s(() => [
267
+ t.value.hideDarkModeToggle ? l("", !0) : (a(), b(r(Ie), {
284
268
  key: 0,
285
269
  class: "text-c-2 hover:text-c-1",
286
270
  mode: e.isDark ? "dark" : "light",
287
271
  style: { transform: "scale(1.4)" },
288
272
  variant: "icon",
289
- onClick: o[1] || (o[1] = (l) => e.$emit("toggleDarkMode"))
273
+ onClick: o[1] || (o[1] = (i) => e.$emit("toggleDarkMode"))
290
274
  }, null, 8, ["mode"]))
291
275
  ]),
292
- default: n(() => {
293
- var l;
276
+ default: s(() => {
277
+ var i;
294
278
  return [
295
- e.$slots["document-selector"] ? (a(), f("div", pt, [
279
+ e.$slots["document-selector"] ? (a(), m("div", mt, [
296
280
  d(e.$slots, "document-selector", {}, void 0, !0)
297
- ])) : i("", !0),
298
- t.value.hideSearch ? i("", !0) : (a(), b(r(Q), {
281
+ ])) : l("", !0),
282
+ t.value.hideSearch ? l("", !0) : (a(), b(r(z), {
299
283
  key: 1,
300
284
  class: "t-doc__sidebar max-w-64",
301
285
  searchHotKey: t.value.searchHotKey,
302
- hideModels: (l = t.value) == null ? void 0 : l.hideModels,
303
- spec: E.value
304
- }, null, 8, ["searchHotKey", "hideModels", "spec"]))
286
+ hideModels: (i = t.value) == null ? void 0 : i.hideModels
287
+ }, null, 8, ["searchHotKey", "hideModels"]))
305
288
  ];
306
289
  }),
307
290
  _: 3
308
- })) : i("", !0)
291
+ })) : l("", !0)
309
292
  ], !0)
310
293
  ]),
311
- end: n(() => [
312
- d(e.$slots, "content-end", g(h(c.value)), void 0, !0)
294
+ end: s(() => [
295
+ d(e.$slots, "content-end", g(h(u.value)), void 0, !0)
313
296
  ]),
314
297
  _: 2
315
298
  }, [
316
- (V = t.value) != null && V.isEditable ? {
299
+ (F = t.value) != null && F.isEditable ? {
317
300
  name: "empty-state",
318
- fn: n(() => {
319
- var l;
301
+ fn: s(() => {
302
+ var i;
320
303
  return [
321
- v(Ke, {
322
- theme: ((l = t.value) == null ? void 0 : l.theme) || "default",
323
- onChangeTheme: o[2] || (o[2] = (m) => e.$emit("changeTheme", m)),
324
- onLinkSwaggerFile: o[3] || (o[3] = (m) => e.$emit("linkSwaggerFile")),
325
- onLoadSwaggerFile: o[4] || (o[4] = (m) => e.$emit("loadSwaggerFile")),
326
- onUpdateContent: o[5] || (o[5] = (m) => e.$emit("updateContent", m))
304
+ f(Ye, {
305
+ theme: ((i = t.value) == null ? void 0 : i.theme) || "default",
306
+ onChangeTheme: o[2] || (o[2] = (c) => e.$emit("changeTheme", c)),
307
+ onLinkSwaggerFile: o[3] || (o[3] = (c) => e.$emit("linkSwaggerFile")),
308
+ onLoadSwaggerFile: o[4] || (o[4] = (c) => e.$emit("loadSwaggerFile")),
309
+ onUpdateContent: o[5] || (o[5] = (c) => e.$emit("updateContent", c))
327
310
  }, null, 8, ["theme"])
328
311
  ];
329
312
  }),
330
313
  key: "0"
331
314
  } : void 0
332
315
  ]), 1032, ["document", "config", "store"])
333
- ], 8, vt),
334
- e.$slots.footer ? (a(), f("div", gt, [
335
- d(e.$slots, "footer", g(h(c.value)), void 0, !0)
336
- ])) : i("", !0)
337
- ], 64)) : i("", !0),
338
- v(r(at), {
316
+ ], 8, ct),
317
+ e.$slots.footer ? (a(), m("div", ft, [
318
+ d(e.$slots, "footer", g(h(u.value)), void 0, !0)
319
+ ])) : l("", !0)
320
+ ], 64)) : l("", !0),
321
+ f(r(tt), {
339
322
  configuration: t.value,
340
- dereferencedDocument: r(u)
323
+ dereferencedDocument: r(v)
341
324
  }, null, 8, ["configuration", "dereferencedDocument"])
342
325
  ], 6),
343
- v(r(Fe))
326
+ f(r(He))
344
327
  ], 64);
345
328
  };
346
329
  }
347
330
  });
348
331
  export {
349
- jt as default
332
+ Kt as default
350
333
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAkNA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAOvF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,CAAC,EAAE,yBAAyB,CAAA;IAClC,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;AA8NF,wBAOG"}
1
+ {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAOvF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,CAAC,EAAE,yBAAyB,CAAA;IAClC,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;AA8NF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Introduction.vue2.js";
2
2
  import "./Introduction.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e8c6528c"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e808708e"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -53,6 +53,7 @@ const F = {
53
53
  ), { hash: v } = I();
54
54
  return (e, c) => (i(), y(t(j), {
55
55
  id: "introduction-card",
56
+ prev: "",
56
57
  isLazy: !!t(v) && !t(v).startsWith("description")
57
58
  }, {
58
59
  default: a(() => [
@@ -6,6 +6,7 @@ import { type TraversedEntry } from '../../../features/traverse-schema';
6
6
  import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
7
7
  type __VLS_Props = {
8
8
  level?: number;
9
+ rootIndex: number;
9
10
  entries: TraversedEntry[];
10
11
  document: OpenAPIV3_1.Document;
11
12
  config: ApiReferenceConfiguration;
@@ -1 +1 @@
1
- {"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AA6IA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAOpE,OAAO,EACL,KAAK,cAAc,EAGpB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,EAAE,yBAAyB,CAAA;IACjC,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,gBAAgB,EAAE,UAAU,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;;AAwKF,wBAOG"}
1
+ {"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AA6JA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAQpE,OAAO,EACL,KAAK,cAAc,EAGpB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AAIvF,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,EAAE,yBAAyB,CAAA;IACjC,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,gBAAgB,EAAE,UAAU,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;;;;AAoLF,wBAOG"}