@scalar/api-reference 1.28.1 → 1.28.3

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 (83) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/blocks/hooks/useBlockProps.d.ts +4 -5
  3. package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -1
  4. package/dist/blocks/hooks/useBlockProps.js +10 -14
  5. package/dist/browser/standalone.js +11624 -11582
  6. package/dist/browser/webpack-stats.json +1 -1
  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 +103 -109
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +48 -40
  13. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  15. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +6 -7
  16. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Content.vue.js +2 -2
  18. package/dist/components/Content/Content.vue2.js +97 -71
  19. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  21. package/dist/components/Content/Introduction/Introduction.vue2.js +18 -18
  22. package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -0
  23. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Lazy/Loading.vue.js +58 -56
  25. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  27. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +77 -77
  28. package/dist/components/Content/Tag/OperationsList.vue.d.ts +2 -0
  29. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
  31. package/dist/components/Content/Tag/OperationsList.vue2.js +22 -20
  32. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -0
  33. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  35. package/dist/components/Content/Tag/OperationsListItem.vue2.js +10 -8
  36. package/dist/components/Content/Tag/Tag.vue.d.ts +2 -0
  37. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Tag/Tag.vue.js +38 -34
  39. package/dist/components/Content/Tag/TagList.vue.d.ts +3 -0
  40. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Tag/TagList.vue.js +32 -30
  42. package/dist/components/Content/Tag/TagSection.vue.d.ts +2 -0
  43. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  44. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  45. package/dist/components/Content/Tag/TagSection.vue2.js +16 -14
  46. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  47. package/dist/components/Section/CompactSection.vue.js +1 -1
  48. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  49. package/dist/components/ShowMoreButton.vue.js +2 -2
  50. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  51. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  52. package/dist/components/Sidebar/SidebarElement.vue2.js +41 -40
  53. package/dist/features/ApiClientModal/useApiClient.d.ts +6 -6
  54. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  55. package/dist/features/BaseUrl/BaseUrl.vue.d.ts +6 -1
  56. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  57. package/dist/features/BaseUrl/BaseUrl.vue.js +36 -32
  58. package/dist/features/Operation/Operation.vue.d.ts +1 -1
  59. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  60. package/dist/features/Operation/Operation.vue.js +13 -12
  61. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  62. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  63. package/dist/features/Operation/components/ParameterListItem.vue2.js +11 -8
  64. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  65. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  66. package/dist/features/Operation/layouts/ModernLayout.vue2.js +9 -8
  67. package/dist/helpers/scrollToId.d.ts +3 -1
  68. package/dist/helpers/scrollToId.d.ts.map +1 -1
  69. package/dist/helpers/scrollToId.js +4 -4
  70. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  71. package/dist/hooks/useMultipleDocuments.js +49 -41
  72. package/dist/hooks/useSidebar.d.ts +2 -2
  73. package/dist/hooks/useSidebar.d.ts.map +1 -1
  74. package/dist/hooks/useSidebar.js +84 -84
  75. package/dist/index.d.ts +1 -1
  76. package/dist/index.d.ts.map +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/standalone/lib/html-api.d.ts +8 -9
  79. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  80. package/dist/style.css +1 -1
  81. package/dist/types.d.ts +2 -2
  82. package/dist/types.d.ts.map +1 -1
  83. package/package.json +11 -10
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAgoBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA6BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AA0RxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBArfZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EA0f/D;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAxiBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA+iB9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA+mBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA6BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAyQxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBApeZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAye/D;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAvhBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA8hB9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,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-2f1a12fb"]]);
5
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-24b615da"]]);
6
6
  export {
7
- a as default
7
+ m as default
8
8
  };
@@ -1,24 +1,24 @@
1
- import { defineComponent as le, computed as h, ref as R, onBeforeMount as H, onMounted as de, onUnmounted as ue, watch as E, onServerPrefetch as ce, useSSRContext as pe, getCurrentInstance as fe, provide as w, openBlock as y, createElementBlock as C, Fragment as _, createElementVNode as u, normalizeClass as me, unref as l, normalizeStyle as ve, renderSlot as c, normalizeProps as p, guardReactiveProps as f, createVNode as m, withCtx as v, createCommentVNode as O, withDirectives as Se, vShow as ge, createSlots as he } from "vue";
1
+ import { defineComponent as le, computed as g, ref as $, onBeforeMount as H, onMounted as de, onUnmounted as ue, watch as E, onServerPrefetch as ce, useSSRContext as pe, useId as fe, provide as w, openBlock as y, createElementBlock as C, Fragment as D, createElementVNode as u, normalizeClass as me, unref as l, normalizeStyle as ve, renderSlot as c, normalizeProps as p, guardReactiveProps as f, createVNode as m, withCtx as v, createCommentVNode as O, withDirectives as Se, vShow as he, createSlots as ge } from "vue";
2
2
  import { provideUseId as be } from "@headlessui/vue";
3
3
  import { LAYOUT_SYMBOL as we } from "@scalar/api-client/hooks";
4
- import { createWorkspaceStore as ye, WORKSPACE_SYMBOL as Ce, createActiveEntitiesStore as Te, ACTIVE_ENTITIES_SYMBOL as $e } from "@scalar/api-client/store";
5
- import { addScalarClassesToHeadless as Re, ScalarErrorBoundary as Ee } from "@scalar/components";
6
- import { defaultStateFactory as D } from "@scalar/oas-utils/helpers";
4
+ import { createWorkspaceStore as ye, WORKSPACE_SYMBOL as Ce, createActiveEntitiesStore as Te, ACTIVE_ENTITIES_SYMBOL as Re } from "@scalar/api-client/store";
5
+ import { addScalarClassesToHeadless as $e, ScalarErrorBoundary as Ee } from "@scalar/components";
6
+ import { defaultStateFactory as _ } from "@scalar/oas-utils/helpers";
7
7
  import { hasObtrusiveScrollbars as Oe, getThemeStyles as Ie } from "@scalar/themes";
8
8
  import { apiReferenceConfigurationSchema as ke } from "@scalar/types/api-reference";
9
- import { useToasts as Ae, ScalarToasts as Fe } from "@scalar/use-toasts";
10
- import { useMediaQuery as Le, useResizeObserver as Pe, useDebounceFn as Me } from "@vueuse/core";
11
- import Be from "./GettingStarted.vue.js";
9
+ import { useToasts as Fe, ScalarToasts as Le } from "@scalar/use-toasts";
10
+ import { useMediaQuery as Pe, useResizeObserver as Me, useDebounceFn as Be } from "@vueuse/core";
11
+ import Ae from "./GettingStarted.vue.js";
12
12
  import { CONFIGURATION_SYMBOL as He } from "../hooks/useConfig.js";
13
- import { useHttpClientStore as _e } from "../stores/useHttpClientStore.js";
14
- import { downloadSpecBus as N, downloadSpecFile as De } from "../helpers/specDownloads.js";
13
+ import { useHttpClientStore as De } from "../stores/useHttpClientStore.js";
14
+ import { downloadSpecBus as N, downloadSpecFile as _e } from "../helpers/specDownloads.js";
15
15
  import Ne from "./Sidebar/Sidebar.vue.js";
16
16
  import Ue from "./Content/Content.vue.js";
17
- import Ye from "../features/ApiClientModal/ApiClientModal.vue.js";
18
- import { useSidebar as ze } from "../hooks/useSidebar.js";
17
+ import ze from "../features/ApiClientModal/ApiClientModal.vue.js";
18
+ import { useSidebar as Ye } from "../hooks/useSidebar.js";
19
19
  import { useNavState as Ve } from "../hooks/useNavState.js";
20
20
  import { sleep as Ge } from "../helpers/sleep.js";
21
- const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label"], Qe = { class: "references-navigation-list" }, qe = { class: "references-editor" }, Je = { class: "references-editor-textarea" }, Xe = ["aria-label"], Ze = {
21
+ const We = ["innerHTML"], je = { class: "references-header" }, Ke = ["aria-label"], Qe = { class: "references-navigation-list" }, qe = { class: "references-editor" }, Je = { class: "references-editor-textarea" }, Xe = ["aria-label"], Ze = {
22
22
  key: 0,
23
23
  class: "references-footer"
24
24
  }, bt = /* @__PURE__ */ le({
@@ -31,158 +31,152 @@ const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
31
31
  },
32
32
  emits: ["changeTheme", "updateContent", "loadSwaggerFile", "linkSwaggerFile", "toggleDarkMode"],
33
33
  setup(U) {
34
- const i = U, a = h(
34
+ const i = U, t = g(
35
35
  () => ke.parse(i.configuration)
36
- ), { initializeToasts: Y, toast: z } = Ae();
37
- Y((e) => z(e));
38
- const V = Le("(min-width: 1150px)"), G = R("100dvh"), S = R(null);
39
- Pe(S, (e) => {
36
+ ), { initializeToasts: z, toast: Y } = Fe();
37
+ z((e) => Y(e));
38
+ const V = Pe("(min-width: 1150px)"), G = $("100dvh"), S = $(null);
39
+ Me(S, (e) => {
40
40
  G.value = e[0].contentRect.height + "px";
41
41
  });
42
- const K = h(Oe), {
43
- breadcrumb: W,
42
+ const W = g(Oe), {
43
+ breadcrumb: j,
44
44
  collapsedSidebarItems: b,
45
- isSidebarOpen: j,
45
+ isSidebarOpen: K,
46
46
  setCollapsedSidebarItem: I,
47
47
  hideModels: Q,
48
48
  defaultOpenAllTags: q,
49
49
  setParsedSpec: J,
50
50
  scrollToOperation: X
51
- } = ze(), {
51
+ } = Ye(), {
52
52
  getReferenceHash: Z,
53
53
  getPathRoutingId: k,
54
54
  getSectionId: x,
55
55
  getTagId: ee,
56
56
  hash: te,
57
- isIntersectionEnabled: A,
57
+ isIntersectionEnabled: F,
58
58
  pathRouting: T,
59
- updateHash: F,
59
+ updateHash: L,
60
60
  replaceUrlState: ae
61
61
  } = Ve();
62
- if (a.value.pathRouting && (T.value = a.value.pathRouting), i.configuration.redirect && typeof window < "u") {
62
+ if (t.value.pathRouting && (T.value = t.value.pathRouting), i.configuration.redirect && typeof window < "u") {
63
63
  const e = i.configuration.redirect(
64
64
  (T.value ? window.location.pathname : "") + window.location.hash
65
65
  );
66
66
  e && history.replaceState({}, "", e);
67
67
  }
68
- H(() => F());
69
- const L = async (e) => {
70
- var t;
71
- A.value = !1, F(), e ? X(e) : (t = S.value) == null || t.scrollTo(0, 0), await Ge(100), A.value = !0;
72
- }, P = R(0);
73
- H(() => Re()), de(() => {
74
- var o, r, s;
68
+ H(() => L());
69
+ const P = async (e) => {
70
+ var a;
71
+ F.value = !1, L(), e ? X(e) : (a = S.value) == null || a.scrollTo(0, 0), await Ge(100), F.value = !0;
72
+ }, M = $(0);
73
+ H(() => $e()), de(() => {
74
+ var o, s, r;
75
75
  history.scrollRestoration = "manual", N.on(({ specTitle: n }) => {
76
- De(i.rawSpec, n);
76
+ _e(i.rawSpec, n);
77
77
  });
78
- const e = (r = (o = S.value) == null ? void 0 : o.parentElement) == null ? void 0 : r.getBoundingClientRect(), t = (s = S.value) == null ? void 0 : s.getBoundingClientRect();
79
- if (e && t) {
80
- const n = t.top - e.top;
81
- P.value = n < 2 ? 0 : n;
78
+ const e = (s = (o = S.value) == null ? void 0 : o.parentElement) == null ? void 0 : s.getBoundingClientRect(), a = (r = S.value) == null ? void 0 : r.getBoundingClientRect();
79
+ if (e && a) {
80
+ const n = a.top - e.top;
81
+ M.value = n < 2 ? 0 : n;
82
82
  }
83
83
  window.onhashchange = () => {
84
- L(Z());
85
- }, window.onpopstate = () => T.value && L(k(window.location.pathname));
84
+ P(Z());
85
+ }, window.onpopstate = () => T.value && P(k(window.location.pathname));
86
86
  });
87
- const oe = h(
88
- () => V.value || !a.value.isEditable
89
- ), M = Me((e) => {
87
+ const oe = g(
88
+ () => V.value || !t.value.isEditable
89
+ ), B = Be((e) => {
90
90
  if ((e.target.scrollTop ?? 0) < 50) {
91
- const o = a.value.pathRouting ? a.value.pathRouting.basePath : window.location.pathname;
91
+ const o = t.value.pathRouting ? t.value.pathRouting.basePath : window.location.pathname;
92
92
  ae("", o + window.location.search);
93
93
  }
94
- }), d = h(() => ({
95
- breadcrumb: W.value,
94
+ }), d = g(() => ({
95
+ breadcrumb: j.value,
96
96
  spec: i.parsedSpec
97
97
  }));
98
98
  ue(() => {
99
99
  N.reset();
100
100
  }), E(() => i.parsedSpec, J, { deep: !0 }), ce(() => {
101
- var t, o;
101
+ var a, o;
102
102
  const e = pe();
103
- if (e && (e.payload || (e.payload = { data: D() }), (t = e.payload).data || (t.data = D()), a.value.pathRouting)) {
104
- const r = k(e.url);
105
- te.value = r, e.payload.data.hash = r;
106
- for (const s in b)
107
- Object.hasOwn(b, s) && delete b[s];
108
- if (r)
109
- I(x(r), !0);
103
+ if (e && (e.payload || (e.payload = { data: _() }), (a = e.payload).data || (a.data = _()), t.value.pathRouting)) {
104
+ const s = k(e.url);
105
+ te.value = s, e.payload.data.hash = s;
106
+ for (const r in b)
107
+ Object.hasOwn(b, r) && delete b[r];
108
+ if (s)
109
+ I(x(s), !0);
110
110
  else {
111
- const s = (o = i.parsedSpec.tags) == null ? void 0 : o[0];
112
- s && I(ee(s), !0);
111
+ const r = (o = i.parsedSpec.tags) == null ? void 0 : o[0];
112
+ r && I(ee(r), !0);
113
113
  }
114
114
  e.payload.data["useSidebarContent-collapsedSidebarItems"] = b;
115
115
  }
116
- }), be(() => {
117
- var r;
118
- const e = fe(), t = "scalar-instance-id";
119
- if (!e) return t;
120
- let o = e.uid;
121
- return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[t] = o) : (r = e.vnode.el) != null && r.getAttribute && (o = e.vnode.el.getAttribute(t)), `${t}-${o}`;
122
- });
123
- const $ = ye({
116
+ }), be(() => fe());
117
+ const R = ye({
124
118
  useLocalStorage: !1,
125
- ...a.value
119
+ ...t.value
126
120
  });
127
121
  E(
128
122
  () => i.rawSpec,
129
123
  (e) => {
130
- var t;
131
- return e && $.importSpecFile(e, "default", {
124
+ var a;
125
+ return e && R.importSpecFile(e, "default", {
132
126
  shouldLoad: !1,
133
- documentUrl: (t = a.value.spec) == null ? void 0 : t.url,
127
+ documentUrl: (a = t.value.spec) == null ? void 0 : a.url,
134
128
  setCollectionSecurity: !0,
135
- ...a.value
129
+ ...t.value
136
130
  });
137
131
  },
138
132
  { immediate: !0 }
139
- ), w(Ce, $);
140
- const re = Te($);
141
- w($e, re), w(we, "modal"), w(He, a);
142
- function B(e, t) {
133
+ ), w(Ce, R);
134
+ const re = Te(R);
135
+ w(Re, re), w(we, "modal"), w(He, t);
136
+ function A(e, a) {
143
137
  E(
144
- () => a.value[e],
138
+ () => t.value[e],
145
139
  (o) => {
146
- typeof o < "u" && t(o);
140
+ typeof o < "u" && a(o);
147
141
  },
148
142
  { immediate: !0 }
149
143
  );
150
144
  }
151
- const { setExcludedClients: se, setDefaultHttpClient: ne } = _e();
152
- B("defaultHttpClient", ne), B("hiddenClients", se), Q.value = a.value.hideModels ?? !1, q.value = a.value.defaultOpenAllTags ?? !1;
153
- const ie = h(
145
+ const { setExcludedClients: se, setDefaultHttpClient: ne } = De();
146
+ A("defaultHttpClient", ne), A("hiddenClients", se), Q.value = t.value.hideModels ?? !1, q.value = t.value.defaultOpenAllTags ?? !1;
147
+ const ie = g(
154
148
  () => `<style>
155
- ${Ie(a.value.theme, {
156
- fonts: a.value.withDefaultFonts
149
+ ${Ie(t.value.theme, {
150
+ fonts: t.value.withDefaultFonts
157
151
  })}</style>`
158
152
  );
159
- return (e, t) => {
160
- var o, r, s;
161
- return y(), C(_, null, [
162
- u("div", { innerHTML: ie.value }, null, 8, Ke),
153
+ return (e, a) => {
154
+ var o, s, r;
155
+ return y(), C(D, null, [
156
+ u("div", { innerHTML: ie.value }, null, 8, We),
163
157
  u("div", {
164
158
  ref_key: "documentEl",
165
159
  ref: S,
166
160
  class: me(["scalar-app scalar-api-reference references-layout", [
167
161
  {
168
- "scalar-scrollbars-obtrusive": K.value,
169
- "references-editable": a.value.isEditable,
170
- "references-sidebar": a.value.showSidebar,
171
- "references-sidebar-mobile-open": l(j),
172
- "references-classic": a.value.layout === "classic"
162
+ "scalar-scrollbars-obtrusive": W.value,
163
+ "references-editable": t.value.isEditable,
164
+ "references-sidebar": t.value.showSidebar,
165
+ "references-sidebar-mobile-open": l(K),
166
+ "references-classic": t.value.layout === "classic"
173
167
  },
174
168
  e.$attrs.class
175
169
  ]]),
176
170
  style: ve({
177
- "--scalar-y-offset": `var(--scalar-custom-header-height, ${P.value}px)`
171
+ "--scalar-y-offset": `var(--scalar-custom-header-height, ${M.value}px)`
178
172
  }),
179
- onScrollPassive: t[4] || (t[4] = //@ts-ignore
180
- (...n) => l(M) && l(M)(...n))
173
+ onScrollPassive: a[4] || (a[4] = //@ts-ignore
174
+ (...n) => l(B) && l(B)(...n))
181
175
  }, [
182
- u("div", We, [
176
+ u("div", je, [
183
177
  c(e.$slots, "header", p(f(d.value)), void 0, !0)
184
178
  ]),
185
- a.value.showSidebar ? (y(), C("aside", {
179
+ t.value.showSidebar ? (y(), C("aside", {
186
180
  key: 0,
187
181
  "aria-label": `Sidebar for ${(o = e.parsedSpec.info) == null ? void 0 : o.title}`,
188
182
  class: "references-navigation t-doc__sidebar"
@@ -191,9 +185,9 @@ const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
191
185
  m(l(Ee), null, {
192
186
  default: v(() => [
193
187
  m(l(Ne), {
194
- operationsSorter: a.value.operationsSorter,
188
+ operationsSorter: t.value.operationsSorter,
195
189
  parsedSpec: e.parsedSpec,
196
- tagsSorter: a.value.tagsSorter
190
+ tagsSorter: t.value.tagsSorter
197
191
  }, {
198
192
  "sidebar-start": v(() => [
199
193
  c(e.$slots, "sidebar-start", p(f(d.value)), void 0, !0)
@@ -207,23 +201,23 @@ const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
207
201
  _: 3
208
202
  })
209
203
  ])
210
- ], 8, je)) : O("", !0),
204
+ ], 8, Ke)) : O("", !0),
211
205
  Se(u("div", qe, [
212
206
  u("div", Je, [
213
207
  c(e.$slots, "editor", p(f(d.value)), void 0, !0)
214
208
  ])
215
209
  ], 512), [
216
- [ge, a.value.isEditable]
210
+ [he, t.value.isEditable]
217
211
  ]),
218
- oe.value ? (y(), C(_, { key: 1 }, [
212
+ oe.value ? (y(), C(D, { key: 1 }, [
219
213
  u("main", {
220
- "aria-label": `Open API Documentation for ${(r = e.parsedSpec.info) == null ? void 0 : r.title}`,
214
+ "aria-label": `Open API Documentation for ${(s = e.parsedSpec.info) == null ? void 0 : s.title}`,
221
215
  class: "references-rendered"
222
216
  }, [
223
217
  m(l(Ue), {
224
- layout: a.value.layout,
218
+ layout: t.value.layout,
225
219
  parsedSpec: e.parsedSpec
226
- }, he({
220
+ }, ge({
227
221
  start: v(() => [
228
222
  c(e.$slots, "content-start", p(f(d.value)), void 0, !0)
229
223
  ]),
@@ -232,17 +226,17 @@ const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
232
226
  ]),
233
227
  _: 2
234
228
  }, [
235
- (s = a.value) != null && s.isEditable ? {
229
+ (r = t.value) != null && r.isEditable ? {
236
230
  name: "empty-state",
237
231
  fn: v(() => {
238
232
  var n;
239
233
  return [
240
- m(Be, {
241
- theme: ((n = a.value) == null ? void 0 : n.theme) || "default",
242
- onChangeTheme: t[0] || (t[0] = (g) => e.$emit("changeTheme", g)),
243
- onLinkSwaggerFile: t[1] || (t[1] = (g) => e.$emit("linkSwaggerFile")),
244
- onLoadSwaggerFile: t[2] || (t[2] = (g) => e.$emit("loadSwaggerFile")),
245
- onUpdateContent: t[3] || (t[3] = (g) => e.$emit("updateContent", g))
234
+ m(Ae, {
235
+ theme: ((n = t.value) == null ? void 0 : n.theme) || "default",
236
+ onChangeTheme: a[0] || (a[0] = (h) => e.$emit("changeTheme", h)),
237
+ onLinkSwaggerFile: a[1] || (a[1] = (h) => e.$emit("linkSwaggerFile")),
238
+ onLoadSwaggerFile: a[2] || (a[2] = (h) => e.$emit("loadSwaggerFile")),
239
+ onUpdateContent: a[3] || (a[3] = (h) => e.$emit("updateContent", h))
246
240
  }, null, 8, ["theme"])
247
241
  ];
248
242
  }),
@@ -254,9 +248,9 @@ const Ke = ["innerHTML"], We = { class: "references-header" }, je = ["aria-label
254
248
  c(e.$slots, "footer", p(f(d.value)), void 0, !0)
255
249
  ])) : O("", !0)
256
250
  ], 64)) : O("", !0),
257
- m(l(Ye), { configuration: a.value }, null, 8, ["configuration"])
251
+ m(l(ze), { configuration: t.value }, null, 8, ["configuration"])
258
252
  ], 38),
259
- m(l(Fe))
253
+ m(l(Le))
260
254
  ], 64);
261
255
  };
262
256
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";AAwRA,wBAKG"}
1
+ {"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";AA2SA,wBAKG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientLibraries.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b367b3f5"]]);
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-52907e39"]]);
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };
@@ -1,74 +1,82 @@
1
- import { defineComponent as x, ref as T, useId as g, watch as k, unref as e, openBlock as a, createElementBlock as s, createVNode as l, withCtx as i, createElementVNode as v, Fragment as y, renderList as P, createBlock as I, createTextVNode as L, toDisplayString as o, createCommentVNode as N } from "vue";
2
- import { TabGroup as V, TabList as B, TabPanels as F, TabPanel as H } from "@headlessui/vue";
3
- import S from "./ClientSelector.vue.js";
4
- import { useFeaturedHttpClients as w } from "./useFeaturedHttpClients.js";
5
- import { useHttpClientStore as E } from "../../../stores/useHttpClientStore.js";
6
- const D = { key: 0 }, G = ["id"], O = /* @__PURE__ */ x({
1
+ import { defineComponent as v, ref as I, useId as p, watch as P, unref as e, openBlock as n, createElementBlock as d, createVNode as l, withCtx as i, createElementVNode as K, Fragment as L, renderList as N, createBlock as V, createTextVNode as B, toDisplayString as o, createCommentVNode as F } from "vue";
2
+ import { TabGroup as H, TabList as S, TabPanels as w, TabPanel as E } from "@headlessui/vue";
3
+ import D from "./ClientSelector.vue.js";
4
+ import { useFeaturedHttpClients as G } from "./useFeaturedHttpClients.js";
5
+ import { useHttpClientStore as j } from "../../../stores/useHttpClientStore.js";
6
+ const q = { key: 0 }, z = ["id"], A = ["id"], W = /* @__PURE__ */ v({
7
7
  __name: "ClientLibraries",
8
- setup(j) {
8
+ setup(J) {
9
9
  const {
10
10
  availableTargets: _,
11
- httpTargetTitle: u,
12
- httpClientTitle: c,
13
- httpClient: d,
14
- setHttpClient: C
15
- } = E(), { featuredClients: r, isFeatured: f } = w(), m = T(0), p = g();
16
- k(
17
- d,
18
- (n) => {
19
- n && f(n) && (m.value = r.findIndex((t) => t === n));
11
+ httpTargetTitle: b,
12
+ httpClientTitle: h,
13
+ getClientTitle: C,
14
+ getTargetTitle: g,
15
+ httpClient: s,
16
+ setHttpClient: T
17
+ } = j(), { featuredClients: r, isFeatured: y } = G(), c = I(0), u = p(), f = p();
18
+ P(
19
+ s,
20
+ (t) => {
21
+ t && (c.value = r.findIndex(
22
+ (a) => a.targetKey === t.targetKey && a.clientKey === t.clientKey
23
+ ));
20
24
  },
21
25
  { immediate: !0 }
22
26
  );
23
- function b(n) {
24
- const t = r[n];
25
- t && C(t);
27
+ function x(t) {
28
+ const a = r[t];
29
+ a && T(a);
26
30
  }
27
- return (n, t) => e(_).length ? (a(), s("div", D, [
28
- l(e(V), {
31
+ return (t, a) => e(_).length ? (n(), d("div", q, [
32
+ l(e(H), {
29
33
  manual: "",
30
- selectedIndex: m.value,
31
- onChange: b
34
+ selectedIndex: c.value,
35
+ onChange: x
32
36
  }, {
33
37
  default: i(() => [
34
- t[0] || (t[0] = v("div", { class: "client-libraries-heading" }, "Client Libraries", -1)),
35
- l(e(B), null, {
38
+ K("div", {
39
+ id: e(u),
40
+ class: "client-libraries-heading"
41
+ }, " Client Libraries ", 8, z),
42
+ l(e(S), {
43
+ "aria-labelledby": e(u),
44
+ class: "client-libraries-list"
45
+ }, {
36
46
  default: i(() => [
37
- l(S, {
47
+ l(D, {
38
48
  featured: e(r),
39
- morePanel: e(p)
49
+ morePanel: e(f)
40
50
  }, null, 8, ["featured", "morePanel"])
41
51
  ]),
42
52
  _: 1
43
- }),
44
- l(e(F), null, {
53
+ }, 8, ["aria-labelledby"]),
54
+ l(e(w), null, {
45
55
  default: i(() => [
46
- e(d) && e(f)(e(d)) ? (a(!0), s(y, { key: 0 }, P(e(r), (q, h) => (a(), I(e(H), {
47
- key: h,
48
- class: "selected-client card-footer -outline-offset-2",
49
- muted: ""
56
+ e(s) && e(y)(e(s)) ? (n(!0), d(L, { key: 0 }, N(e(r), (m, k) => (n(), V(e(E), {
57
+ key: k,
58
+ class: "selected-client card-footer -outline-offset-2"
50
59
  }, {
51
60
  default: i(() => [
52
- L(o(e(c)) + " " + o(e(u)), 1)
61
+ B(o(e(C)(m)) + " " + o(e(g)(m)), 1)
53
62
  ]),
54
63
  _: 2
55
- }, 1024))), 128)) : (a(), s("div", {
64
+ }, 1024))), 128)) : (n(), d("div", {
56
65
  key: 1,
57
- id: e(p),
66
+ id: e(f),
58
67
  class: "selected-client card-footer -outline-offset-2",
59
- muted: "",
60
68
  role: "tabpanel",
61
69
  tabindex: "0"
62
- }, o(e(c)) + " " + o(e(u)), 9, G))
70
+ }, o(e(h)) + " " + o(e(b)), 9, A))
63
71
  ]),
64
72
  _: 1
65
73
  })
66
74
  ]),
67
75
  _: 1
68
76
  }, 8, ["selectedIndex"])
69
- ])) : N("", !0);
77
+ ])) : F("", !0);
70
78
  }
71
79
  });
72
80
  export {
73
- O as default
81
+ W as default
74
82
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA+RA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA4MF,wBAOG"}
1
+ {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":"AA8RA,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;;AA6MF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientSelector.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6a409ae4"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0a0f8a46"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -16,8 +16,7 @@ const F = { class: "client-libraries-text" }, H = ["aria-controls", "value"], I
16
16
  xmlns: "http://www.w3.org/2000/svg"
17
17
  }, j = {
18
18
  key: 0,
19
- "aria-hidden": "true",
20
- class: "client-libraries-text"
19
+ class: "client-libraries-text client-libraries-text-more"
21
20
  }, q = /* @__PURE__ */ S({
22
21
  __name: "ClientSelector",
23
22
  props: {
@@ -30,17 +29,17 @@ const F = { class: "client-libraries-text" }, H = ["aria-controls", "value"], I
30
29
  availableTargets: p,
31
30
  getClientTitle: y,
32
31
  getTargetTitle: k
33
- } = M(), { featuredClients: K, isFeatured: _ } = $(), h = w(), m = (s) => `programming-language-${s === "js" ? "javascript" : s}`, C = (s) => s.targetKey === l.targetKey && s.clientKey === l.clientKey;
32
+ } = M(), { featuredClients: K, isFeatured: _ } = $(), C = w(), m = (s) => `programming-language-${s === "js" ? "javascript" : s}`, h = (s) => s.targetKey === l.targetKey && s.clientKey === l.clientKey;
34
33
  return (s, a) => (i(), r("div", {
35
34
  ref_key: "containerRef",
36
- ref: h,
35
+ ref: C,
37
36
  class: "client-libraries-content"
38
37
  }, [
39
38
  (i(!0), r(u, null, d(e(K), (t) => (i(), x(e(T), {
40
39
  key: t.clientKey,
41
40
  "aria-hidden": "true",
42
41
  class: c(["client-libraries rendered-code-sdks", {
43
- "client-libraries__active": C(t)
42
+ "client-libraries__active": h(t)
44
43
  }])
45
44
  }, {
46
45
  default: N(() => [
@@ -61,7 +60,6 @@ const F = { class: "client-libraries-text" }, H = ["aria-controls", "value"], I
61
60
  "client-libraries__active": e(l) && !e(_)(e(l))
62
61
  }])
63
62
  }, [
64
- a[2] || (a[2] = n("span", { class: "sr-only" }, "Select from all clients", -1)),
65
63
  n("select", {
66
64
  "aria-controls": s.morePanel,
67
65
  class: "language-select",
@@ -106,7 +104,8 @@ const F = { class: "client-libraries-text" }, H = ["aria-controls", "value"], I
106
104
  ], -1)
107
105
  ])))
108
106
  ]),
109
- e(p).length ? (i(), r("span", j, " More ")) : B("", !0)
107
+ e(p).length ? (i(), r("span", j, " More ")) : B("", !0),
108
+ a[2] || (a[2] = n("span", { class: "sr-only" }, "Select from all clients", -1))
110
109
  ], 2)
111
110
  ], 512));
112
111
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAkPA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAgBhD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AA8BJ,iBAAS,cAAc;WA2NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA7RR,QAAQ,GAAG,SAAS;6EAoS/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAoRA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAiBhD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAoDJ,iBAAS,cAAc;WA6NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YArTR,QAAQ,GAAG,SAAS;6EA4T/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,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-8c18ef22"]]);
5
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4f85cfb1"]]);
6
6
  export {
7
- f as default
7
+ _ as default
8
8
  };