@scalar/api-reference 1.24.20 → 1.24.21

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 (82) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/browser/standalone.js +8172 -8136
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  5. package/dist/components/ApiClientModal.vue.js +1 -1
  6. package/dist/components/ApiClientModal.vue3.js +5 -0
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +105 -116
  10. package/dist/components/Content/Content.vue.d.ts +0 -3
  11. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.js +2 -2
  13. package/dist/components/Content/Content.vue2.js +70 -93
  14. package/dist/components/Content/Introduction/Introduction.vue.d.ts +2 -2
  15. package/dist/components/Content/Schema/Schema.vue.d.ts +2 -2
  16. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  17. package/dist/components/api-client-bus.d.ts +1 -1
  18. package/dist/components/api-client-bus.d.ts.map +1 -1
  19. package/dist/{components/Content/BaseUrl/ServerVariables.vue.d.ts → features/BaseUrl/BaseUrl.vue.d.ts} +18 -4
  20. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -0
  21. package/dist/features/BaseUrl/BaseUrl.vue.js +87 -0
  22. package/dist/features/BaseUrl/BaseUrl.vue2.js +4 -0
  23. package/dist/features/BaseUrl/ServerForm.vue.d.ts +41 -0
  24. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -0
  25. package/dist/features/BaseUrl/ServerForm.vue.js +7 -0
  26. package/dist/features/BaseUrl/ServerForm.vue2.js +66 -0
  27. package/dist/{components/Content/BaseUrl/ServerItem.vue.d.ts → features/BaseUrl/ServerUrl.vue.d.ts} +6 -6
  28. package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -0
  29. package/dist/features/BaseUrl/ServerUrl.vue.js +8 -0
  30. package/dist/features/BaseUrl/ServerUrl.vue2.js +29 -0
  31. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +30 -0
  32. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -0
  33. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +7 -0
  34. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +56 -0
  35. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +23 -0
  36. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -0
  37. package/dist/features/BaseUrl/ServerVariablesForm.vue.js +7 -0
  38. package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +53 -0
  39. package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue.d.ts → features/BaseUrl/ServerVariablesSelect.vue.d.ts} +1 -1
  40. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -0
  41. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +7 -0
  42. package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue2.js → features/BaseUrl/ServerVariablesSelect.vue2.js} +1 -1
  43. package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts → features/BaseUrl/ServerVariablesTextbox.vue.d.ts} +1 -1
  44. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -0
  45. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +7 -0
  46. package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue2.js → features/BaseUrl/ServerVariablesTextbox.vue2.js} +6 -6
  47. package/dist/features/BaseUrl/index.d.ts +3 -0
  48. package/dist/features/BaseUrl/index.d.ts.map +1 -0
  49. package/dist/features/BaseUrl/types.d.ts +10 -0
  50. package/dist/features/BaseUrl/types.d.ts.map +1 -0
  51. package/dist/features/BaseUrl/utils/getServers.d.ts +15 -0
  52. package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -0
  53. package/dist/features/BaseUrl/utils/getServers.js +29 -0
  54. package/dist/features/BaseUrl/utils/index.d.ts +2 -0
  55. package/dist/features/BaseUrl/utils/index.d.ts.map +1 -0
  56. package/dist/helpers/createEmptySpecification.d.ts +1 -1
  57. package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
  58. package/dist/helpers/createEmptySpecification.js +5 -4
  59. package/dist/helpers/getModels.d.ts +1 -1
  60. package/dist/hooks/useReactiveSpec.d.ts +8 -8
  61. package/dist/index.js +1 -1
  62. package/dist/style.css +1 -1
  63. package/dist/types.d.ts +1 -4
  64. package/dist/types.d.ts.map +1 -1
  65. package/package.json +7 -7
  66. package/dist/components/ApiClientModal.vue2.js +0 -4
  67. package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts +0 -3
  68. package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts.map +0 -1
  69. package/dist/components/Content/BaseUrl/BaseUrl.vue.js +0 -7
  70. package/dist/components/Content/BaseUrl/BaseUrl.vue2.js +0 -90
  71. package/dist/components/Content/BaseUrl/ServerItem.vue.d.ts.map +0 -1
  72. package/dist/components/Content/BaseUrl/ServerItem.vue.js +0 -8
  73. package/dist/components/Content/BaseUrl/ServerItem.vue2.js +0 -35
  74. package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.d.ts.map +0 -1
  75. package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.js +0 -7
  76. package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts.map +0 -1
  77. package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.js +0 -7
  78. package/dist/components/Content/BaseUrl/ServerVariables.vue.d.ts.map +0 -1
  79. package/dist/components/Content/BaseUrl/ServerVariables.vue.js +0 -7
  80. package/dist/components/Content/BaseUrl/ServerVariables.vue2.js +0 -47
  81. package/dist/components/Content/BaseUrl/index.d.ts +0 -2
  82. package/dist/components/Content/BaseUrl/index.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AA+E1D,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiClientModal.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AAiF1D,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -11,7 +11,7 @@ const B = /* @__PURE__ */ c({
11
11
  const t = a, e = s(null), { authentication: p } = d();
12
12
  return u(async () => {
13
13
  if (!e.value) return;
14
- const { createScalarApiClient: o } = await import("@scalar/api-client-modal"), { modalState: n, open: i, updateAuth: l } = await o(
14
+ const { createScalarApiClient: o } = await import("@scalar/client-app"), { modalState: n, open: i, updateAuth: l } = await o(
15
15
  e.value,
16
16
  {
17
17
  spec: t.spec ?? {},
@@ -0,0 +1,5 @@
1
+ import o from "./ApiClientModal.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAokBA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,gBAAgB,CAAA;AAC7D,OAAO,0BAA0B,CAAA;AA0BjC,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2kBjB,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAujBA,OAAO,8BAA8B,CAAA;AAGrC,OAAO,EAAE,KAAK,OAAO,EAAkB,MAAM,gBAAgB,CAAA;AAC7D,OAAO,0BAA0B,CAAA;AA0BjC,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4jBjB,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c9906691"]]);
5
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a1d14223"]]);
6
6
  export {
7
- a as default
7
+ m as default
8
8
  };
@@ -1,31 +1,33 @@
1
- import { defineComponent as X, defineAsyncComponent as Z, ref as b, onMounted as D, onBeforeMount as O, computed as A, watch as _, onServerPrefetch as x, useSSRContext as ee, getCurrentInstance as oe, provide as B, openBlock as f, createElementBlock as h, Fragment as P, createVNode as v, unref as s, withCtx as p, createTextVNode as te, toDisplayString as re, createElementVNode as m, normalizeClass as ae, normalizeStyle as ne, renderSlot as d, normalizeProps as l, guardReactiveProps as c, createCommentVNode as y, withDirectives as se, vShow as ie, createSlots as de, createBlock as U } from "vue";
2
- import { provideUseId as le } from "@headlessui/vue";
1
+ import { defineComponent as X, defineAsyncComponent as Z, ref as b, onMounted as L, onBeforeMount as B, computed as O, watch as _, onServerPrefetch as x, useSSRContext as ee, getCurrentInstance as oe, provide as P, openBlock as f, createElementBlock as h, Fragment as U, createVNode as v, unref as i, withCtx as p, createTextVNode as te, toDisplayString as re, createElementVNode as m, normalizeClass as ae, normalizeStyle as ne, renderSlot as l, normalizeProps as d, guardReactiveProps as c, createCommentVNode as y, withDirectives as ie, vShow as se, createSlots as le, createBlock as A } from "vue";
2
+ import { provideUseId as de } from "@headlessui/vue";
3
+ import { addScalarClassesToHeadless as ce } from "@scalar/components";
3
4
  import "@scalar/components/style.css";
4
- import { defaultStateFactory as ce } from "@scalar/oas-utils/helpers";
5
- import { getThemeStyles as ue } from "@scalar/themes";
5
+ import { defaultStateFactory as ue } from "@scalar/oas-utils/helpers";
6
+ import { getThemeStyles as pe } from "@scalar/themes";
6
7
  import "@scalar/themes/style.css";
7
- import { useToasts as pe, ScalarToasts as fe } from "@scalar/use-toasts";
8
- import { useMediaQuery as me, useResizeObserver as ge, useDebounceFn as ve } from "@vueuse/core";
8
+ import { useToasts as fe, ScalarToasts as me } from "@scalar/use-toasts";
9
+ import { useMediaQuery as ge, useResizeObserver as ve, useDebounceFn as Se } from "@vueuse/core";
9
10
  import { NEW_API_MODAL as F } from "../features.js";
10
- import Se from "./ApiClientModal.vue.js";
11
- import he from "./GettingStarted.vue.js";
12
- import { downloadSpecBus as be, downloadSpecFile as ye } from "../helpers/specDownloads.js";
13
- import { useDeprecationWarnings as we } from "../hooks/useDeprecationWarnings.js";
14
- import Re from "./Util/Style.vue.js";
15
- import $e from "./Sidebar/Sidebar.vue.js";
16
- import Ce from "./Content/Content.vue.js";
17
- import { useSidebar as Te } from "../hooks/useSidebar.js";
18
- import { GLOBAL_SECURITY_SYMBOL as Le, HIDE_DOWNLOAD_BUTTON_SYMBOL as ke } from "../helpers/provideSymbols.js";
19
- import { useNavState as Ie } from "../hooks/useNavState.js";
20
- import { scrollToId as Ee } from "../helpers/scrollToId.js";
21
- import { sleep as De } from "../helpers/sleep.js";
22
- const Oe = { class: "references-header" }, Ae = {
11
+ import he from "./ApiClientModal.vue.js";
12
+ /* empty css */
13
+ import be from "./GettingStarted.vue.js";
14
+ import { downloadSpecBus as ye, downloadSpecFile as we } from "../helpers/specDownloads.js";
15
+ import { useDeprecationWarnings as Ce } from "../hooks/useDeprecationWarnings.js";
16
+ import $e from "./Util/Style.vue.js";
17
+ import Re from "./Sidebar/Sidebar.vue.js";
18
+ import Te from "./Content/Content.vue.js";
19
+ import { useSidebar as ke } from "../hooks/useSidebar.js";
20
+ import { GLOBAL_SECURITY_SYMBOL as Ie, HIDE_DOWNLOAD_BUTTON_SYMBOL as Ee } from "../helpers/provideSymbols.js";
21
+ import { useNavState as De } from "../hooks/useNavState.js";
22
+ import { scrollToId as Le } from "../helpers/scrollToId.js";
23
+ import { sleep as Be } from "../helpers/sleep.js";
24
+ const Oe = { class: "references-header" }, Pe = {
23
25
  key: 0,
24
26
  class: "references-navigation t-doc__sidebar"
25
- }, Be = { class: "references-navigation-list" }, Pe = { class: "references-editor" }, Ue = { class: "references-editor-textarea" }, Fe = { class: "references-rendered" }, Me = {
27
+ }, Ue = { class: "references-navigation-list" }, Ae = { class: "references-editor" }, Fe = { class: "references-editor-textarea" }, Me = { class: "references-rendered" }, Ne = {
26
28
  key: 0,
27
29
  class: "references-footer"
28
- }, no = /* @__PURE__ */ X({
30
+ }, lo = /* @__PURE__ */ X({
29
31
  inheritAttrs: !1,
30
32
  __name: "ApiReferenceLayout",
31
33
  props: {
@@ -35,9 +37,9 @@ const Oe = { class: "references-header" }, Ae = {
35
37
  },
36
38
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
37
39
  setup(M) {
38
- const n = M, { initializeToasts: N, toast: z } = pe();
40
+ const r = M, { initializeToasts: N, toast: z } = fe();
39
41
  N((e) => z(e));
40
- const V = Z(() => F ? (
42
+ const H = Z(() => F ? (
41
43
  // Empty component
42
44
  new Promise((e) => {
43
45
  e({ render: () => null });
@@ -45,14 +47,14 @@ const Oe = { class: "references-header" }, Ae = {
45
47
  ) : (
46
48
  // Load component
47
49
  import("./ApiClientModalOld.vue.js")
48
- )), Y = me("(min-width: 1150px)"), H = b("100dvh"), g = b(null);
49
- ge(g, (e) => {
50
- H.value = e[0].contentRect.height + "px";
50
+ )), V = ge("(min-width: 1150px)"), Y = b("100dvh"), g = b(null);
51
+ ve(g, (e) => {
52
+ Y.value = e[0].contentRect.height + "px";
51
53
  });
52
54
  const w = b(0);
53
- D(() => {
54
- var r, t, a;
55
- const e = (t = (r = g.value) == null ? void 0 : r.parentElement) == null ? void 0 : t.getBoundingClientRect(), o = (a = g.value) == null ? void 0 : a.getBoundingClientRect();
55
+ L(() => {
56
+ var t, a, n;
57
+ const e = (a = (t = g.value) == null ? void 0 : t.parentElement) == null ? void 0 : a.getBoundingClientRect(), o = (n = g.value) == null ? void 0 : n.getBoundingClientRect();
56
58
  if (e && o) {
57
59
  const u = o.top - e.top;
58
60
  w.value = u < 2 ? 0 : u;
@@ -62,83 +64,70 @@ const Oe = { class: "references-header" }, Ae = {
62
64
  breadcrumb: W,
63
65
  collapsedSidebarItems: S,
64
66
  isSidebarOpen: G,
65
- setCollapsedSidebarItem: R,
67
+ setCollapsedSidebarItem: C,
66
68
  hideModels: j,
67
69
  setParsedSpec: K
68
- } = Te(), {
70
+ } = ke(), {
69
71
  getPathRoutingId: $,
70
72
  getSectionId: Q,
71
73
  getTagId: q,
72
- hash: C,
74
+ hash: R,
73
75
  isIntersectionEnabled: T,
74
- pathRouting: L,
75
- updateHash: k
76
- } = Ie();
77
- L.value = n.configuration.pathRouting, O(() => k());
78
- const I = async (e) => {
76
+ pathRouting: k,
77
+ updateHash: I
78
+ } = De();
79
+ k.value = r.configuration.pathRouting, B(() => I());
80
+ const E = async (e) => {
79
81
  var o;
80
- T.value = !1, k(), e ? Ee(e) : (o = g.value) == null || o.scrollTo(0, 0), await De(100), T.value = !0;
82
+ T.value = !1, I(), e ? Le(e) : (o = g.value) == null || o.scrollTo(0, 0), await Be(100), T.value = !0;
81
83
  };
82
- O(() => {
83
- const e = new MutationObserver((o) => {
84
- const r = o.find(
85
- (t) => Array.from(t.addedNodes).find(
86
- (a) => a.id === "headlessui-portal-root"
87
- )
88
- );
89
- if (r) {
90
- const t = r.addedNodes[0];
91
- t.classList.add("scalar-app"), t.classList.add("scalar-client"), e.disconnect();
92
- }
93
- });
94
- e.observe(document.body, { childList: !0 });
95
- }), D(() => {
96
- be.on(({ specTitle: e }) => {
97
- ye(n.rawSpec, e);
98
- }), window.onhashchange = () => I(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => L.value && I($(window.location.pathname));
84
+ B(() => ce()), L(() => {
85
+ ye.on(({ specTitle: e }) => {
86
+ we(r.rawSpec, e);
87
+ }), window.onhashchange = () => E(decodeURIComponent(window.location.hash.replace(/^#/, ""))), window.onpopstate = () => k.value && E($(window.location.pathname));
99
88
  });
100
- const J = A(
101
- () => Y.value || !n.configuration.isEditable
102
- ), E = ve((e) => {
89
+ const J = O(
90
+ () => V.value || !r.configuration.isEditable
91
+ ), D = Se((e) => {
103
92
  if ((e.target.scrollTop ?? 0) < 50) {
104
- const r = n.configuration.pathRouting ? n.configuration.pathRouting.basePath : window.location.pathname;
105
- window.history.replaceState({}, "", r + window.location.search), C.value = "";
93
+ const t = r.configuration.pathRouting ? r.configuration.pathRouting.basePath : window.location.pathname;
94
+ window.history.replaceState({}, "", t + window.location.search), R.value = "";
106
95
  }
107
- }), i = A(() => ({
96
+ }), s = O(() => ({
108
97
  breadcrumb: W.value,
109
- spec: n.parsedSpec
98
+ spec: r.parsedSpec
110
99
  }));
111
- return _(() => n.parsedSpec, K, { deep: !0 }), x(() => {
112
- var o, r;
100
+ return _(() => r.parsedSpec, K, { deep: !0 }), x(() => {
101
+ var o, t;
113
102
  const e = ee();
114
- if (e && ((o = e.payload).data || (o.data = ce()), n.configuration.pathRouting)) {
115
- const t = $(e.url);
116
- C.value = t, e.payload.data.hash = t;
117
- for (const a in S)
118
- Object.hasOwn(S, a) && delete S[a];
119
- if (t)
120
- R(Q(t), !0);
103
+ if (e && ((o = e.payload).data || (o.data = ue()), r.configuration.pathRouting)) {
104
+ const a = $(e.url);
105
+ R.value = a, e.payload.data.hash = a;
106
+ for (const n in S)
107
+ Object.hasOwn(S, n) && delete S[n];
108
+ if (a)
109
+ C(Q(a), !0);
121
110
  else {
122
- const a = (r = n.parsedSpec.tags) == null ? void 0 : r[0];
123
- a && R(q(a), !0);
111
+ const n = (t = r.parsedSpec.tags) == null ? void 0 : t[0];
112
+ n && C(q(n), !0);
124
113
  }
125
114
  e.payload.data["useSidebarContent-collapsedSidebarItems"] = S;
126
115
  }
127
- }), le(() => {
128
- var t;
116
+ }), de(() => {
117
+ var a;
129
118
  const e = oe(), o = "scalar-instance-id";
130
119
  if (!e) return o;
131
- let r = e.uid;
132
- return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = r) : (t = e.vnode.el) != null && t.getAttribute && (r = e.vnode.el.getAttribute(o)), `${o}-${r}`;
133
- }), B(Le, () => n.parsedSpec.security), B(
134
- ke,
135
- () => n.configuration.hideDownloadButton
136
- ), j.value = n.configuration.hideModels ?? !1, we(n.configuration), (e, o) => {
137
- var r, t;
138
- return f(), h(P, null, [
139
- v(s(Re), null, {
120
+ let t = e.uid;
121
+ return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[o] = t) : (a = e.vnode.el) != null && a.getAttribute && (t = e.vnode.el.getAttribute(o)), `${o}-${t}`;
122
+ }), P(Ie, () => r.parsedSpec.security), P(
123
+ Ee,
124
+ () => r.configuration.hideDownloadButton
125
+ ), j.value = r.configuration.hideModels ?? !1, Ce(r.configuration), (e, o) => {
126
+ var t, a;
127
+ return f(), h(U, null, [
128
+ v(i($e), null, {
140
129
  default: p(() => [
141
- te(re(s(ue)(e.configuration.theme, {
130
+ te(re(i(pe)(e.configuration.theme, {
142
131
  fonts: e.configuration.withDefaultFonts
143
132
  })), 1)
144
133
  ]),
@@ -151,7 +140,7 @@ const Oe = { class: "references-header" }, Ae = {
151
140
  {
152
141
  "references-editable": e.configuration.isEditable,
153
142
  "references-sidebar": e.configuration.showSidebar,
154
- "references-sidebar-mobile-open": s(G),
143
+ "references-sidebar-mobile-open": i(G),
155
144
  "references-classic": e.configuration.layout === "classic"
156
145
  },
157
146
  e.$attrs.class
@@ -160,54 +149,54 @@ const Oe = { class: "references-header" }, Ae = {
160
149
  "--scalar-y-offset": `var(--scalar-custom-header-height, ${w.value}px)`
161
150
  }),
162
151
  onScrollPassive: o[4] || (o[4] = //@ts-ignore
163
- (...a) => s(E) && s(E)(...a))
152
+ (...n) => i(D) && i(D)(...n))
164
153
  }, [
165
154
  m("div", Oe, [
166
- d(e.$slots, "header", l(c(i.value)), void 0, !0)
155
+ l(e.$slots, "header", d(c(s.value)), void 0, !0)
167
156
  ]),
168
- e.configuration.showSidebar ? (f(), h("aside", Ae, [
169
- m("div", Be, [
170
- v(s($e), { parsedSpec: e.parsedSpec }, {
157
+ e.configuration.showSidebar ? (f(), h("aside", Pe, [
158
+ m("div", Ue, [
159
+ v(i(Re), { parsedSpec: e.parsedSpec }, {
171
160
  "sidebar-start": p(() => [
172
- d(e.$slots, "sidebar-start", l(c(i.value)), void 0, !0)
161
+ l(e.$slots, "sidebar-start", d(c(s.value)), void 0, !0)
173
162
  ]),
174
163
  "sidebar-end": p(() => [
175
- d(e.$slots, "sidebar-end", l(c(i.value)), void 0, !0)
164
+ l(e.$slots, "sidebar-end", d(c(s.value)), void 0, !0)
176
165
  ]),
177
166
  _: 3
178
167
  }, 8, ["parsedSpec"])
179
168
  ])
180
169
  ])) : y("", !0),
181
- se(m("div", Pe, [
182
- m("div", Ue, [
183
- d(e.$slots, "editor", l(c(i.value)), void 0, !0)
170
+ ie(m("div", Ae, [
171
+ m("div", Fe, [
172
+ l(e.$slots, "editor", d(c(s.value)), void 0, !0)
184
173
  ])
185
174
  ], 512), [
186
- [ie, e.configuration.isEditable]
175
+ [se, e.configuration.isEditable]
187
176
  ]),
188
- J.value ? (f(), h(P, { key: 1 }, [
189
- m("div", Fe, [
190
- v(s(Ce), {
177
+ J.value ? (f(), h(U, { key: 1 }, [
178
+ m("div", Me, [
179
+ v(i(Te), {
191
180
  baseServerURL: e.configuration.baseServerURL,
192
181
  layout: e.configuration.layout === "classic" ? "accordion" : "default",
193
182
  parsedSpec: e.parsedSpec,
194
183
  proxy: e.configuration.proxy
195
- }, de({
184
+ }, le({
196
185
  start: p(() => [
197
- d(e.$slots, "content-start", l(c(i.value)), void 0, !0)
186
+ l(e.$slots, "content-start", d(c(s.value)), void 0, !0)
198
187
  ]),
199
188
  end: p(() => [
200
- d(e.$slots, "content-end", l(c(i.value)), void 0, !0)
189
+ l(e.$slots, "content-end", d(c(s.value)), void 0, !0)
201
190
  ]),
202
191
  _: 2
203
192
  }, [
204
- (r = e.configuration) != null && r.isEditable ? {
193
+ (t = e.configuration) != null && t.isEditable ? {
205
194
  name: "empty-state",
206
195
  fn: p(() => {
207
- var a;
196
+ var n;
208
197
  return [
209
- v(he, {
210
- theme: ((a = e.configuration) == null ? void 0 : a.theme) || "default",
198
+ v(be, {
199
+ theme: ((n = e.configuration) == null ? void 0 : n.theme) || "default",
211
200
  onChangeTheme: o[0] || (o[0] = (u) => e.$emit("changeTheme", u)),
212
201
  onLinkSwaggerFile: o[1] || (o[1] = (u) => e.$emit("linkSwaggerFile")),
213
202
  onLoadSwaggerFile: o[2] || (o[2] = (u) => e.$emit("loadSwaggerFile")),
@@ -219,33 +208,33 @@ const Oe = { class: "references-header" }, Ae = {
219
208
  } : void 0
220
209
  ]), 1032, ["baseServerURL", "layout", "parsedSpec", "proxy"])
221
210
  ]),
222
- e.$slots.footer ? (f(), h("div", Me, [
223
- d(e.$slots, "footer", l(c(i.value)), void 0, !0)
211
+ e.$slots.footer ? (f(), h("div", Ne, [
212
+ l(e.$slots, "footer", d(c(s.value)), void 0, !0)
224
213
  ])) : y("", !0)
225
214
  ], 64)) : y("", !0),
226
- s(F) ? (f(), U(Se, {
215
+ i(F) ? (f(), A(he, {
227
216
  key: 2,
228
217
  proxyUrl: e.configuration.proxy,
229
218
  spec: e.configuration.spec
230
- }, null, 8, ["proxyUrl", "spec"])) : (f(), U(s(V), {
219
+ }, null, 8, ["proxyUrl", "spec"])) : (f(), A(i(H), {
231
220
  key: 3,
232
221
  parsedSpec: e.parsedSpec,
233
- proxyUrl: (t = e.configuration) == null ? void 0 : t.proxy
222
+ proxyUrl: (a = e.configuration) == null ? void 0 : a.proxy
234
223
  }, {
235
224
  "sidebar-start": p(() => [
236
- d(e.$slots, "sidebar-start", l(c(i.value)), void 0, !0)
225
+ l(e.$slots, "sidebar-start", d(c(s.value)), void 0, !0)
237
226
  ]),
238
227
  "sidebar-end": p(() => [
239
- d(e.$slots, "sidebar-end", l(c(i.value)), void 0, !0)
228
+ l(e.$slots, "sidebar-end", d(c(s.value)), void 0, !0)
240
229
  ]),
241
230
  _: 3
242
231
  }, 8, ["parsedSpec", "proxyUrl"]))
243
232
  ], 38),
244
- v(s(fe))
233
+ v(i(me))
245
234
  ], 64);
246
235
  };
247
236
  }
248
237
  });
249
238
  export {
250
- no as default
239
+ lo as default
251
240
  };
@@ -1,17 +1,14 @@
1
- import { type Server } from '@scalar/api-client';
2
1
  import type { Spec } from '@scalar/oas-utils';
3
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
4
3
  parsedSpec: Spec;
5
4
  layout?: "default" | "accordion" | undefined;
6
5
  baseServerURL?: string | undefined;
7
6
  proxy?: string | undefined;
8
- servers?: Server[] | undefined;
9
7
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
10
8
  parsedSpec: Spec;
11
9
  layout?: "default" | "accordion" | undefined;
12
10
  baseServerURL?: string | undefined;
13
11
  proxy?: string | undefined;
14
- servers?: Server[] | undefined;
15
12
  }>>>, {}, {}>, {
16
13
  start?(_: {}): any;
17
14
  "empty-state"?(_: {}): any;
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AA6PA,OAAO,EAAE,KAAK,MAAM,EAAkB,MAAM,oBAAoB,CAAA;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;;;;;;;AA8X7C,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AA+MA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;;;;;;;;;AA+U7C,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-54f6ce8b"]]);
5
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-378846e4"]]);
6
6
  export {
7
- f as default
7
+ _ as default
8
8
  };