@scalar/api-reference 1.31.3 → 1.31.6

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 (166) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/browser/standalone.js +15752 -15637
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.js +6 -6
  5. package/dist/components/ApiReferenceLayout.vue.d.ts +6 -3
  6. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.js +4 -2
  8. package/dist/components/ApiReferenceLayout.vue2.js +230 -153
  9. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +1 -1
  11. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  13. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Lazy/Loading.vue.js +1 -1
  15. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Schema/SchemaComposition.vue.js +81 -101
  17. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  19. package/dist/components/Content/Schema/SchemaProperty.vue2.js +114 -105
  20. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +35 -35
  21. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +17 -15
  23. package/dist/components/Content/Schema/helpers/schema-name.js +13 -21
  24. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  26. package/dist/components/Content/Tag/OperationsList.vue2.js +10 -9
  27. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
  29. package/dist/components/Content/Tag/OperationsListItem.vue2.js +29 -28
  30. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Tag/TagList.vue.js +35 -34
  32. package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
  33. package/dist/components/DocumentSelector/DocumentSelector.vue.js +21 -28
  34. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  35. package/dist/components/GettingStarted.vue.js +3 -3
  36. package/dist/components/GettingStarted.vue2.js +23 -23
  37. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -20
  38. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  39. package/dist/components/HttpMethod/HttpMethod.vue.js +12 -13
  40. package/dist/components/Section/CompactSection.vue.js +2 -2
  41. package/dist/components/Section/CompactSection.vue2.js +6 -6
  42. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  43. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  44. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  45. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  46. package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
  47. package/dist/esm.d.ts.map +1 -1
  48. package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +1 -1
  49. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +1 -1
  50. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
  51. package/dist/features/DocumentSource/hooks/useDocumentSource.js +11 -11
  52. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  53. package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
  54. package/dist/features/DownloadLink/DownloadLink.vue2.js +21 -21
  55. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  56. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  57. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +1 -1
  58. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  59. package/dist/features/Search/SearchButton.vue.js +2 -2
  60. package/dist/features/Search/SearchButton.vue2.js +16 -16
  61. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  62. package/dist/features/Search/SearchModal.vue.js +2 -2
  63. package/dist/features/Search/SearchModal.vue2.js +1 -1
  64. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  65. package/dist/features/Search/useSearchIndex.js +29 -28
  66. package/dist/features/sidebar/helpers/create-sidebar.d.ts +26 -0
  67. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -0
  68. package/dist/features/sidebar/hooks/useSidebar.d.ts +23 -0
  69. package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -0
  70. package/dist/features/sidebar/index.d.ts +2 -0
  71. package/dist/features/sidebar/index.d.ts.map +1 -0
  72. package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -0
  73. package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -0
  74. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +8 -0
  75. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +1 -0
  76. package/dist/features/traverse-schema/helpers/operation-id-params.js +8 -0
  77. package/dist/features/traverse-schema/helpers/traverse-description.d.ts +9 -0
  78. package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +1 -0
  79. package/dist/features/traverse-schema/helpers/traverse-document.d.ts +16 -0
  80. package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -0
  81. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +11 -0
  82. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -0
  83. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +6 -0
  84. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -0
  85. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +9 -0
  86. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -0
  87. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +6 -0
  88. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -0
  89. package/dist/features/traverse-schema/index.d.ts +4 -0
  90. package/dist/features/traverse-schema/index.d.ts.map +1 -0
  91. package/dist/features/traverse-schema/types.d.ts +51 -0
  92. package/dist/features/traverse-schema/types.d.ts.map +1 -0
  93. package/dist/helpers/parse.d.ts.map +1 -1
  94. package/dist/helpers/parse.js +16 -16
  95. package/dist/hooks/useNavState.d.ts +9 -4
  96. package/dist/hooks/useNavState.d.ts.map +1 -1
  97. package/dist/hooks/useNavState.js +31 -29
  98. package/dist/hooks/useSidebar.d.ts.map +1 -1
  99. package/dist/hooks/useSidebar.js +69 -68
  100. package/dist/index.d.ts +0 -3
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/index.js +37 -44
  103. package/dist/legacy/fixtures/httpRequestMethods.js +2 -6
  104. package/dist/libs/openapi.js +32 -32
  105. package/dist/stores/useHttpClientStore.js +9 -8
  106. package/dist/style.css +1 -1
  107. package/dist/types.d.ts +0 -1
  108. package/dist/types.d.ts.map +1 -1
  109. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +40 -0
  110. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -0
  111. package/dist/v2/ApiReferenceWorkspace.vue.js +65 -0
  112. package/dist/v2/ApiReferenceWorkspace.vue3.js +5 -0
  113. package/dist/v2/events/definitions.d.ts +35 -0
  114. package/dist/v2/events/definitions.d.ts.map +1 -0
  115. package/dist/v2/events/index.d.ts +3 -0
  116. package/dist/v2/events/index.d.ts.map +1 -0
  117. package/dist/v2/events/listeners.d.ts +8 -0
  118. package/dist/v2/events/listeners.d.ts.map +1 -0
  119. package/dist/v2/events/listeners.js +15 -0
  120. package/dist/v2/styles.d.ts +2 -0
  121. package/dist/v2/styles.d.ts.map +1 -0
  122. package/package.json +13 -11
  123. package/dist/components/HttpMethod/constants.d.ts +0 -9
  124. package/dist/components/HttpMethod/constants.d.ts.map +0 -1
  125. package/dist/components/HttpMethod/constants.js +0 -36
  126. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +0 -4
  127. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +0 -1
  128. package/dist/components/HttpMethod/utils/isRequestMethod.js +0 -7
  129. package/dist/components/Layouts/ClassicLayout.vue.d.ts +0 -23
  130. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +0 -1
  131. package/dist/components/Layouts/ClassicLayout.vue.js +0 -67
  132. package/dist/components/Layouts/ClassicLayout.vue2.js +0 -4
  133. package/dist/components/Layouts/Layouts.vue.d.ts +0 -26
  134. package/dist/components/Layouts/Layouts.vue.d.ts.map +0 -1
  135. package/dist/components/Layouts/Layouts.vue.js +0 -35
  136. package/dist/components/Layouts/Layouts.vue2.js +0 -4
  137. package/dist/components/Layouts/ModernLayout.vue.d.ts +0 -23
  138. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +0 -1
  139. package/dist/components/Layouts/ModernLayout.vue.js +0 -8
  140. package/dist/components/Layouts/ModernLayout.vue2.js +0 -102
  141. package/dist/components/Layouts/index.d.ts +0 -2
  142. package/dist/components/Layouts/index.d.ts.map +0 -1
  143. package/dist/components/SingleApiReference.vue.d.ts +0 -29
  144. package/dist/components/SingleApiReference.vue.d.ts.map +0 -1
  145. package/dist/components/SingleApiReference.vue.js +0 -57
  146. package/dist/components/SingleApiReference.vue3.js +0 -5
  147. package/dist/helpers/freeze-element.d.ts +0 -11
  148. package/dist/helpers/freeze-element.d.ts.map +0 -1
  149. package/dist/helpers/freeze-element.js +0 -20
  150. package/dist/helpers/is-mac-os.d.ts +0 -5
  151. package/dist/helpers/is-mac-os.d.ts.map +0 -1
  152. package/dist/helpers/is-mac-os.js +0 -4
  153. package/dist/helpers/measure.d.ts +0 -21
  154. package/dist/helpers/measure.d.ts.map +0 -1
  155. package/dist/helpers/measure.js +0 -7
  156. package/dist/helpers/scroll-to-id.d.ts +0 -7
  157. package/dist/helpers/scroll-to-id.d.ts.map +0 -1
  158. package/dist/helpers/scroll-to-id.js +0 -21
  159. package/dist/helpers/sleep.d.ts +0 -6
  160. package/dist/helpers/sleep.d.ts.map +0 -1
  161. package/dist/helpers/sleep.js +0 -4
  162. package/dist/legacy/helpers/index.d.ts +0 -2
  163. package/dist/legacy/helpers/index.d.ts.map +0 -1
  164. package/dist/legacy/helpers/normalizeRequestMethod.d.ts +0 -6
  165. package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +0 -1
  166. package/dist/legacy/helpers/normalizeRequestMethod.js +0 -10
@@ -1,45 +1,46 @@
1
- import { lazyBus as Y } from "../components/Content/Lazy/lazyBus.js";
2
- import { scrollToId as F } from "../helpers/scroll-to-id.js";
3
- import { useNavState as Z } from "./useNavState.js";
4
- import { getHeadingsFromMarkdown as $, getLowestHeadingLevel as z } from "../libs/markdown.js";
5
- import { isOperationDeprecated as U, hasModels as ee, getModels as _, hasWebhooks as te } from "../libs/openapi.js";
6
- import { ssrState as se } from "@scalar/oas-utils/helpers";
7
- import { reactive as P, ref as w, watch as N, computed as q } from "vue";
8
- const re = "introduction", O = w(null), c = w(void 0), g = P({});
1
+ import { lazyBus as Z } from "../components/Content/Lazy/lazyBus.js";
2
+ import { scrollToId as F } from "@scalar/helpers/dom/scroll-to-id";
3
+ import { useNavState as $ } from "./useNavState.js";
4
+ import { getHeadingsFromMarkdown as ee, getLowestHeadingLevel as z } from "../libs/markdown.js";
5
+ import { isOperationDeprecated as U, hasModels as te, getModels as _, hasWebhooks as se } from "../libs/openapi.js";
6
+ import { ssrState as re } from "@scalar/oas-utils/helpers";
7
+ import { reactive as q, ref as w, watch as N, computed as J } from "vue";
8
+ import { operationIdParams as P } from "../features/traverse-schema/helpers/operation-id-params.js";
9
+ const oe = "introduction", O = w(null), c = w(void 0), g = q({});
9
10
  function R(t) {
10
- var p, s, l;
11
- g.tagsSorter === "alpha" ? t.tags = (p = t.tags) == null ? void 0 : p.sort((r, n) => r.name.localeCompare(n.name)) : typeof g.tagsSorter == "function" && (t.tags = (s = t.tags) == null ? void 0 : s.sort(g.tagsSorter));
12
- const a = (r, n) => {
13
- const T = r.name ?? r.path, m = n.name ?? n.path;
14
- return T.localeCompare(m);
15
- }, i = (r, n) => r.httpVerb.localeCompare(n.httpVerb);
11
+ var p, s, n;
12
+ g.tagsSorter === "alpha" ? t.tags = (p = t.tags) == null ? void 0 : p.sort((r, l) => r.name.localeCompare(l.name)) : typeof g.tagsSorter == "function" && (t.tags = (s = t.tags) == null ? void 0 : s.sort(g.tagsSorter));
13
+ const a = (r, l) => {
14
+ const I = r.name ?? r.path, m = l.name ?? l.path;
15
+ return I.localeCompare(m);
16
+ }, i = (r, l) => r.httpVerb.localeCompare(l.httpVerb);
16
17
  let d;
17
- return g.operationsSorter === "alpha" ? d = a : g.operationsSorter === "method" ? d = i : typeof g.operationsSorter == "function" && (d = g.operationsSorter), d && ((l = t.tags) == null || l.forEach((r) => {
18
- var n;
19
- r.operations = (n = r.operations) == null ? void 0 : n.sort(d);
18
+ return g.operationsSorter === "alpha" ? d = a : g.operationsSorter === "method" ? d = i : typeof g.operationsSorter == "function" && (d = g.operationsSorter), d && ((n = t.tags) == null || n.forEach((r) => {
19
+ var l;
20
+ r.operations = (l = r.operations) == null ? void 0 : l.sort(d);
20
21
  })), c.value = t;
21
22
  }
22
- const J = w(!1), K = w(!1), y = P(se["useSidebarContent-collapsedSidebarItems"] ?? {});
23
- function oe(t) {
23
+ const K = w(!1), Q = w(!1), y = q(re["useSidebarContent-collapsedSidebarItems"] ?? {});
24
+ function ae(t) {
24
25
  y[t] = !y[t];
25
26
  }
26
- function I(t, a) {
27
+ function T(t, a) {
27
28
  y[t] = a;
28
29
  }
29
30
  const x = w([]);
30
- function ae(t) {
31
- const a = $(t), i = z(a);
31
+ function ie(t) {
32
+ const a = ee(t), i = z(a);
32
33
  return a.filter((d) => (
33
34
  // highest level, eg. # Introduction
34
35
  d.depth === i || // second highest level, eg. ## Authentication
35
36
  d.depth === i + 1
36
37
  ));
37
38
  }
38
- const Q = q(() => {
39
+ const X = J(() => {
39
40
  var M, C, E, B, D, L, j, G, V, W;
40
41
  if (!O.value)
41
42
  return { entries: [], titles: {} };
42
- const { getHeadingId: t, getModelId: a, getOperationId: i, getTagId: d, getWebhookId: p } = O.value, s = {}, l = [];
43
+ const { getHeadingId: t, getModelId: a, getOperationId: i, getTagId: d, getWebhookId: p } = O.value, s = {}, n = [];
43
44
  let r = null;
44
45
  x.value.forEach((e) => {
45
46
  var o;
@@ -48,13 +49,13 @@ const Q = q(() => {
48
49
  title: e.value,
49
50
  show: !0,
50
51
  children: []
51
- }, l.push(r)) : r && ((o = r.children) == null || o.push({
52
+ }, n.push(r)) : r && ((o = r.children) == null || o.push({
52
53
  id: t(e),
53
54
  title: e.value,
54
55
  show: !0
55
56
  }));
56
57
  });
57
- const n = (C = (M = c.value) == null ? void 0 : M.tags) == null ? void 0 : C[0], m = n && ((e) => (e == null ? void 0 : e.length) !== 1 || e[0].name !== "default" || e[0].description !== "")((E = c.value) == null ? void 0 : E.tags) ? (D = (B = c.value) == null ? void 0 : B.tags) == null ? void 0 : D.filter((e) => {
58
+ const l = (C = (M = c.value) == null ? void 0 : M.tags) == null ? void 0 : C[0], m = l && ((e) => (e == null ? void 0 : e.length) !== 1 || e[0].name !== "default" || e[0].description !== "")((E = c.value) == null ? void 0 : E.tags) ? (D = (B = c.value) == null ? void 0 : B.tags) == null ? void 0 : D.filter((e) => {
58
59
  var o;
59
60
  return ((o = e.operations) == null ? void 0 : o.length) > 0;
60
61
  }).map((e) => {
@@ -66,7 +67,7 @@ const Q = q(() => {
66
67
  show: !0,
67
68
  children: (o = e.operations) == null ? void 0 : o.map((u) => {
68
69
  var v, b;
69
- const f = i(u, e), h = u.name ?? u.path;
70
+ const f = i(P(u), e), h = u.name ?? u.path;
70
71
  return s[f] = h, {
71
72
  id: f,
72
73
  title: h,
@@ -82,9 +83,9 @@ const Q = q(() => {
82
83
  };
83
84
  })
84
85
  };
85
- }) : (L = n == null ? void 0 : n.operations) == null ? void 0 : L.map((e) => {
86
+ }) : (L = l == null ? void 0 : l.operations) == null ? void 0 : L.map((e) => {
86
87
  var f, h;
87
- const o = i(e, n), u = e.name ?? e.path;
88
+ const o = i(P(e), l), u = e.name ?? e.path;
88
89
  return s[o] = u, {
89
90
  id: o,
90
91
  title: u,
@@ -99,7 +100,7 @@ const Q = q(() => {
99
100
  }
100
101
  };
101
102
  });
102
- let S = ee(c.value) && !J.value ? [
103
+ let S = te(c.value) && !K.value ? [
103
104
  {
104
105
  id: a(),
105
106
  title: "Models",
@@ -114,7 +115,7 @@ const Q = q(() => {
114
115
  };
115
116
  })
116
117
  }
117
- ] : [], k = te(c.value) ? [
118
+ ] : [], k = se(c.value) ? [
118
119
  {
119
120
  id: p(),
120
121
  title: "Webhooks",
@@ -136,7 +137,7 @@ const Q = q(() => {
136
137
  })
137
138
  }
138
139
  ] : [];
139
- const X = (G = c.value) != null && G["x-tagGroups"] ? (W = (V = c.value) == null ? void 0 : V["x-tagGroups"]) == null ? void 0 : W.map((e) => {
140
+ const Y = (G = c.value) != null && G["x-tagGroups"] ? (W = (V = c.value) == null ? void 0 : V["x-tagGroups"]) == null ? void 0 : W.map((e) => {
140
141
  var f;
141
142
  const o = [];
142
143
  return (f = e.tags) == null || f.map((h) => {
@@ -156,92 +157,92 @@ const Q = q(() => {
156
157
  isGroup: !0
157
158
  };
158
159
  }) : void 0, H = [
159
- ...l,
160
- ...X ?? m ?? [],
160
+ ...n,
161
+ ...Y ?? m ?? [],
161
162
  ...k,
162
163
  ...S
163
164
  ];
164
- return K.value && H.forEach((e) => {
165
- I(e.id, !0), e.show = !0;
165
+ return Q.value && H.forEach((e) => {
166
+ T(e.id, !0), e.show = !0;
166
167
  }), {
167
168
  entries: H,
168
169
  titles: s
169
170
  };
170
- }), ie = w(!1), le = q(() => {
171
+ }), ne = w(!1), le = J(() => {
171
172
  var t, a, i;
172
- return ((i = (t = Q.value) == null ? void 0 : t.titles) == null ? void 0 : i[((a = O.value) == null ? void 0 : a.hash) ?? ""]) ?? "";
173
- }), ne = (t, a) => {
173
+ return ((i = (t = X.value) == null ? void 0 : t.titles) == null ? void 0 : i[((a = O.value) == null ? void 0 : a.hash) ?? ""]) ?? "";
174
+ }), ue = (t, a) => {
174
175
  var d;
175
176
  const i = (d = O.value) == null ? void 0 : d.getSectionId(t);
176
177
  if (i && i !== t)
177
178
  if (y[i])
178
179
  F(t, a);
179
180
  else {
180
- const p = Y.on((s) => {
181
+ const p = Z.on((s) => {
181
182
  s.id === t && (F(t, a), p());
182
183
  });
183
- I(i, !0);
184
+ T(i, !0);
184
185
  }
185
186
  };
186
- function ve(t) {
187
+ function be(t) {
187
188
  Object.assign(g, t);
188
- const a = Z();
189
+ const a = $();
189
190
  O.value = a;
190
191
  const { hash: i, getSectionId: d, getTagId: p } = a;
191
192
  return t != null && t.parsedSpec && (R(t.parsedSpec), N(
192
193
  () => {
193
- var s, l;
194
- return (l = (s = c.value) == null ? void 0 : s.tags) == null ? void 0 : l.length;
194
+ var s, n;
195
+ return (n = (s = c.value) == null ? void 0 : s.tags) == null ? void 0 : n.length;
195
196
  },
196
197
  () => {
197
- var s, l;
198
+ var s, n;
198
199
  if (i.value) {
199
200
  const r = d(i.value);
200
- r && I(r, !0);
201
+ r && T(r, !0);
201
202
  } else {
202
- const r = (l = (s = c.value) == null ? void 0 : s.tags) == null ? void 0 : l[0];
203
- r && I(p(r), !0);
203
+ const r = (n = (s = c.value) == null ? void 0 : s.tags) == null ? void 0 : n[0];
204
+ r && T(p(r), !0);
204
205
  }
205
206
  }
206
207
  ), N(
207
208
  () => {
208
- var s, l;
209
- return (l = (s = c.value) == null ? void 0 : s.info) == null ? void 0 : l.description;
209
+ var s, n;
210
+ return (n = (s = c.value) == null ? void 0 : s.info) == null ? void 0 : n.description;
210
211
  },
211
212
  () => {
212
- var r, n, T, m;
213
- const s = (T = (n = (r = c.value) == null ? void 0 : r.info) == null ? void 0 : n.description) == null ? void 0 : T.trim();
213
+ var r, l, I, m;
214
+ const s = (I = (l = (r = c.value) == null ? void 0 : r.info) == null ? void 0 : l.description) == null ? void 0 : I.trim();
214
215
  if (!s)
215
216
  return x.value = [];
216
- const l = ae(s);
217
+ const n = ie(s);
217
218
  if (s && !s.startsWith("#")) {
218
219
  const S = {
219
- depth: ((m = l[0]) == null ? void 0 : m.depth) ?? 1,
220
+ depth: ((m = n[0]) == null ? void 0 : m.depth) ?? 1,
220
221
  value: "Introduction",
221
- slug: re
222
+ slug: oe
222
223
  };
223
- l.unshift(S);
224
+ n.unshift(S);
224
225
  }
225
- return x.value = l;
226
+ return x.value = n;
226
227
  },
227
228
  {
228
229
  immediate: !0
229
230
  }
230
231
  )), {
231
232
  breadcrumb: le,
232
- items: Q,
233
- isSidebarOpen: ie,
233
+ items: X,
234
+ isSidebarOpen: ne,
234
235
  collapsedSidebarItems: y,
235
- toggleCollapsedSidebarItem: oe,
236
- setCollapsedSidebarItem: I,
237
- hideModels: J,
236
+ toggleCollapsedSidebarItem: ae,
237
+ setCollapsedSidebarItem: T,
238
+ hideModels: K,
238
239
  setParsedSpec: R,
239
- defaultOpenAllTags: K,
240
- scrollToOperation: ne
240
+ defaultOpenAllTags: Q,
241
+ scrollToOperation: ue
241
242
  };
242
243
  }
243
244
  export {
244
- re as DEFAULT_INTRODUCTION_SLUG,
245
- ne as scrollToOperation,
246
- ve as useSidebar
245
+ oe as DEFAULT_INTRODUCTION_SLUG,
246
+ ue as scrollToOperation,
247
+ be as useSidebar
247
248
  };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,10 @@
1
1
  export { default as ApiReference } from './components/ApiReference.vue.js';
2
- export { default as SingleApiReference } from './components/SingleApiReference.vue.js';
3
2
  export { default as ApiReferenceLayout } from './components/ApiReferenceLayout.vue.js';
4
- export { default as ModernLayout } from './components/Layouts/ModernLayout.vue.js';
5
3
  export { SearchButton, SearchModal } from './features/Search';
6
4
  export { default as GettingStarted } from './components/GettingStarted.vue.js';
7
5
  export { createApiReference } from './standalone/lib/html-api.js';
8
6
  export { Sidebar } from './components/Sidebar';
9
7
  export { Card, CardHeader, CardContent, CardFooter, CardTabHeader, CardTab } from './components/Card';
10
- export { Layouts } from './components/Layouts';
11
8
  export { parse } from './helpers/parse.js';
12
9
  export { createEmptySpecification } from './libs/openapi.js';
13
10
  export { useNavState } from './hooks/useNavState.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uCAAuC,CAAA;AAC/E,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAE3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAG9C,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,YAAY,EACV,yBAAyB,EACzB,cAAc,GACf,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAE3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAGrG,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,YAAY,EACV,yBAAyB,EACzB,cAAc,GACf,MAAM,SAAS,CAAA"}