@scalar/api-reference 1.30.0 → 1.31.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 (167) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/browser/standalone.js +6690 -6569
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  6. package/dist/components/ApiReferenceLayout.vue2.js +164 -181
  7. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  8. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  9. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +56 -51
  10. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Content.vue.js +1 -1
  12. package/dist/components/Content/Content.vue2.js +5 -5
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts +2 -2
  14. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  16. package/dist/components/Content/Introduction/Introduction.vue2.js +57 -63
  17. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Lazy/Loading.vue.js +46 -46
  19. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  20. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Models/Models.vue.js +2 -2
  22. package/dist/components/Content/Models/Models.vue2.js +9 -7
  23. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +2 -2
  24. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
  26. package/dist/components/Content/Schema/Schema.preview.d.ts +294 -84
  27. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  28. package/dist/components/Content/Schema/Schema.vue.d.ts +21 -4
  29. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  31. package/dist/components/Content/Schema/Schema.vue2.js +158 -131
  32. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/SchemaComposition.vue.js +57 -53
  35. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +2 -3
  36. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  37. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +29 -29
  38. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  39. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
  41. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +12 -3
  42. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  44. package/dist/components/Content/Schema/SchemaProperty.vue2.js +133 -103
  45. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +3 -2
  46. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  47. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  48. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +133 -126
  49. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -2
  50. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  51. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -2
  52. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  53. package/dist/components/DocumentSelector/DocumentSelector.vue.js +3 -3
  54. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  55. package/dist/components/Layouts/ClassicLayout.vue.js +19 -17
  56. package/dist/components/Layouts/Layouts.vue.js +11 -9
  57. package/dist/components/Layouts/ModernLayout.vue2.js +22 -20
  58. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  59. package/dist/components/Section/SectionAccordion.vue.js +2 -2
  60. package/dist/components/Section/SectionAccordion.vue2.js +1 -1
  61. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  62. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  63. package/dist/components/Section/SectionContainerAccordion.vue2.js +4 -4
  64. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  65. package/dist/components/Section/SectionHeader.vue.js +2 -2
  66. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  67. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  68. package/dist/components/Sidebar/Sidebar.vue2.js +56 -56
  69. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  70. package/dist/components/SingleApiReference.vue.js +27 -33
  71. package/dist/esm.d.ts.map +1 -1
  72. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
  73. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  74. package/dist/features/ApiClientModal/ApiClientModal.vue.js +49 -50
  75. package/dist/features/ApiClientModal/useApiClient.d.ts +196 -196
  76. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  77. package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts +11 -0
  78. package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts.map +1 -0
  79. package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +38 -0
  80. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +21 -0
  81. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -0
  82. package/dist/features/DocumentSource/hooks/useDocumentSource.js +94 -0
  83. package/dist/features/DocumentSource/index.d.ts +2 -0
  84. package/dist/features/DocumentSource/index.d.ts.map +1 -0
  85. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  86. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  87. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  88. package/dist/features/DownloadLink/DownloadLink.vue2.js +18 -17
  89. package/dist/features/DownloadLink/index.d.ts +1 -0
  90. package/dist/features/DownloadLink/index.d.ts.map +1 -1
  91. package/dist/features/DownloadLink/openapi-version-symbol.d.ts +2 -0
  92. package/dist/features/DownloadLink/openapi-version-symbol.d.ts.map +1 -0
  93. package/dist/features/DownloadLink/openapi-version-symbol.js +4 -0
  94. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +2 -0
  95. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  96. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  97. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +178 -127
  98. package/dist/features/Operation/Operation.vue.d.ts +2 -2
  99. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  100. package/dist/features/Operation/Operation.vue.js +29 -23
  101. package/dist/features/Operation/components/OperationParameters.vue.d.ts +7 -3
  102. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  103. package/dist/features/Operation/components/OperationParameters.vue.js +28 -24
  104. package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -2
  105. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  106. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +2 -2
  107. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
  109. package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -2
  110. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  111. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  112. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -2
  113. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  114. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  115. package/dist/features/Operation/components/ParameterListItem.vue2.js +6 -6
  116. package/dist/features/Operation/components/RequestBody.vue.d.ts +7 -3
  117. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  118. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  119. package/dist/features/Operation/components/RequestBody.vue2.js +41 -36
  120. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +7 -3
  121. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  122. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  123. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +84 -79
  124. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +5 -1
  125. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  126. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  127. package/dist/features/Operation/layouts/ModernLayout.vue2.js +66 -57
  128. package/dist/features/Operation/types/schemas.d.ts +2 -2
  129. package/dist/features/Operation/types/schemas.d.ts.map +1 -1
  130. package/dist/features/Search/SearchButton.vue.js +2 -2
  131. package/dist/helpers/local-storage.d.ts +8 -0
  132. package/dist/helpers/local-storage.d.ts.map +1 -0
  133. package/dist/helpers/local-storage.js +6 -0
  134. package/dist/helpers/measure.d.ts +21 -0
  135. package/dist/helpers/measure.d.ts.map +1 -0
  136. package/dist/helpers/measure.js +7 -0
  137. package/dist/helpers/parse.d.ts +3 -5
  138. package/dist/helpers/parse.d.ts.map +1 -1
  139. package/dist/helpers/parse.js +64 -86
  140. package/dist/helpers/scroll-to-id.d.ts.map +1 -1
  141. package/dist/helpers/scroll-to-id.js +18 -4
  142. package/dist/hooks/useDiscriminator.d.ts +53 -0
  143. package/dist/hooks/useDiscriminator.d.ts.map +1 -0
  144. package/dist/hooks/useDiscriminator.js +149 -0
  145. package/dist/hooks/useOperationDiscriminator.d.ts +8 -0
  146. package/dist/hooks/useOperationDiscriminator.d.ts.map +1 -0
  147. package/dist/hooks/useOperationDiscriminator.js +57 -0
  148. package/dist/index.d.ts +0 -1
  149. package/dist/index.d.ts.map +1 -1
  150. package/dist/index.js +33 -35
  151. package/dist/libs/openapi.d.ts +3 -3
  152. package/dist/libs/openapi.d.ts.map +1 -1
  153. package/dist/libs/openapi.js +35 -42
  154. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  155. package/dist/standalone/lib/html-api.js +15 -15
  156. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  157. package/dist/stores/useHttpClientStore.js +19 -18
  158. package/dist/style.css +1 -1
  159. package/dist/types.d.ts +27 -3
  160. package/dist/types.d.ts.map +1 -1
  161. package/package.json +15 -16
  162. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +0 -12
  163. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +0 -1
  164. package/dist/components/Content/Schema/helpers/schema-discriminator.js +0 -45
  165. package/dist/hooks/useReactiveSpec.d.ts +0 -448
  166. package/dist/hooks/useReactiveSpec.d.ts.map +0 -1
  167. package/dist/hooks/useReactiveSpec.js +0 -59
@@ -1,115 +1,120 @@
1
- import { defineComponent as B, ref as N, useId as h, watch as V, computed as F, createElementBlock as l, createCommentVNode as _, unref as e, openBlock as n, createVNode as i, withCtx as m, createElementVNode as H, Fragment as y, renderList as S, createBlock as A, createTextVNode as E, toDisplayString as p } from "vue";
2
- import { TabGroup as j, TabList as D, TabPanels as G, TabPanel as M } from "@headlessui/vue";
3
- import { useWorkspace as O } from "@scalar/api-client/store";
4
- import { ScalarMarkdown as W, ScalarCodeBlock as q } from "@scalar/components";
5
- import { useHttpClientStore as z } from "../../../stores/useHttpClientStore.js";
6
- import J from "./ClientSelector.vue.js";
1
+ import { defineComponent as K, ref as w, useId as h, watch as P, onMounted as B, computed as F, createElementBlock as l, createCommentVNode as _, unref as e, openBlock as r, createVNode as i, withCtx as m, createElementVNode as V, Fragment as y, renderList as H, createBlock as A, createTextVNode as D, toDisplayString as p } from "vue";
2
+ import { TabGroup as M, TabList as O, TabPanels as R, TabPanel as j } from "@headlessui/vue";
3
+ import { useWorkspace as G } from "@scalar/api-client/store";
4
+ import { ScalarMarkdown as J, ScalarCodeBlock as W } from "@scalar/components";
5
+ import { REFERENCE_LS_KEYS as Y } from "../../../helpers/local-storage.js";
6
+ import { useHttpClientStore as q } from "../../../stores/useHttpClientStore.js";
7
+ import z from "./ClientSelector.vue.js";
7
8
  import { useFeaturedHttpClients as Q } from "./useFeaturedHttpClients.js";
8
- const R = { key: 0 }, U = ["id"], Y = {
9
+ const U = { key: 0 }, Z = ["id"], $ = {
9
10
  key: 0,
10
11
  class: "selected-client card-footer -outline-offset-2",
11
12
  role: "tabpanel",
12
13
  tabindex: "0"
13
- }, Z = {
14
+ }, X = {
14
15
  key: 1,
15
16
  class: "selected-client card-footer -outline-offset-2",
16
17
  role: "tabpanel",
17
18
  tabindex: "1"
18
- }, $ = ["id"], ie = /* @__PURE__ */ B({
19
+ }, ee = ["id"], de = /* @__PURE__ */ K({
19
20
  __name: "ClientLibraries",
20
- setup(X) {
21
+ setup(te) {
21
22
  const {
22
- availableTargets: C,
23
+ availableTargets: T,
23
24
  httpTargetTitle: k,
24
25
  httpClientTitle: x,
25
- getClientTitle: T,
26
+ getClientTitle: E,
26
27
  getTargetTitle: L,
27
- httpClient: r,
28
- setHttpClient: w
29
- } = z(), { featuredClients: d, isFeatured: I } = Q(), K = O(), b = N(0), v = h(), g = h();
30
- V(
31
- r,
32
- (a) => {
33
- a && (b.value = d.findIndex(
34
- (t) => t.targetKey === a.targetKey && t.clientKey === a.clientKey
28
+ httpClient: n,
29
+ setHttpClient: b
30
+ } = q(), { featuredClients: d, isFeatured: S } = Q(), I = G(), g = w(0), v = h(), C = h();
31
+ P(
32
+ n,
33
+ (t) => {
34
+ t && (g.value = d.findIndex(
35
+ (o) => o.targetKey === t.targetKey && o.clientKey === t.clientKey
35
36
  ));
36
37
  },
37
38
  { immediate: !0 }
38
39
  );
39
- function P(a) {
40
- const t = d[a];
41
- t && w(t);
40
+ function N(t) {
41
+ const o = d[t];
42
+ o && b(o);
42
43
  }
43
- const o = F(() => {
44
+ B(() => {
45
+ const t = localStorage.getItem(Y.SELECTED_CLIENT);
46
+ t && b(JSON.parse(t));
47
+ });
48
+ const a = F(() => {
44
49
  var c;
45
- const a = Object.values(K.collections)[0], t = (c = a == null ? void 0 : a.info) == null ? void 0 : c["x-scalar-sdk-installation"];
46
- if (!Array.isArray(t) || !(t != null && t.length))
50
+ const t = Object.values(I.collections)[0], o = (c = t == null ? void 0 : t.info) == null ? void 0 : c["x-scalar-sdk-installation"];
51
+ if (!Array.isArray(o) || !(o != null && o.length))
47
52
  return;
48
- const s = t.find(
53
+ const s = o.find(
49
54
  (u) => {
50
55
  var f;
51
- return u.lang.toLowerCase() === ((f = r == null ? void 0 : r.targetKey) == null ? void 0 : f.toLowerCase());
56
+ return u.lang.toLowerCase() === ((f = n == null ? void 0 : n.targetKey) == null ? void 0 : f.toLowerCase());
52
57
  }
53
58
  );
54
59
  if (s)
55
60
  return s;
56
61
  });
57
- return (a, t) => e(C).length ? (n(), l("div", R, [
58
- i(e(j), {
62
+ return (t, o) => e(T).length ? (r(), l("div", U, [
63
+ i(e(M), {
59
64
  manual: "",
60
- selectedIndex: b.value,
61
- onChange: P
65
+ selectedIndex: g.value,
66
+ onChange: N
62
67
  }, {
63
68
  default: m(() => [
64
- H("div", {
69
+ V("div", {
65
70
  id: e(v),
66
71
  class: "client-libraries-heading"
67
- }, " Client Libraries ", 8, U),
68
- i(e(D), {
72
+ }, " Client Libraries ", 8, Z),
73
+ i(e(O), {
69
74
  "aria-labelledby": e(v),
70
75
  class: "client-libraries-list"
71
76
  }, {
72
77
  default: m(() => [
73
- i(J, {
78
+ i(z, {
74
79
  featured: e(d),
75
- morePanel: e(g)
80
+ morePanel: e(C)
76
81
  }, null, 8, ["featured", "morePanel"])
77
82
  ]),
78
83
  _: 1
79
84
  }, 8, ["aria-labelledby"]),
80
- i(e(G), null, {
85
+ i(e(R), null, {
81
86
  default: m(() => {
82
87
  var s, c;
83
88
  return [
84
- (s = o.value) != null && s.source || (c = o.value) != null && c.description ? (n(), l(y, { key: 0 }, [
85
- o.value.description ? (n(), l("div", Y, [
86
- i(e(W), {
87
- value: o.value.description
89
+ (s = a.value) != null && s.source || (c = a.value) != null && c.description ? (r(), l(y, { key: 0 }, [
90
+ a.value.description ? (r(), l("div", $, [
91
+ i(e(J), {
92
+ value: a.value.description
88
93
  }, null, 8, ["value"])
89
94
  ])) : _("", !0),
90
- o.value.source ? (n(), l("div", Z, [
91
- i(e(q), {
95
+ a.value.source ? (r(), l("div", X, [
96
+ i(e(W), {
92
97
  lang: "shell",
93
- content: o.value.source,
98
+ content: a.value.source,
94
99
  copy: !1,
95
100
  class: "min-h-6 p-1"
96
101
  }, null, 8, ["content"])
97
102
  ])) : _("", !0)
98
- ], 64)) : e(r) && e(I)(e(r)) ? (n(!0), l(y, { key: 1 }, S(e(d), (u, f) => (n(), A(e(M), {
103
+ ], 64)) : e(n) && e(S)(e(n)) ? (r(!0), l(y, { key: 1 }, H(e(d), (u, f) => (r(), A(e(j), {
99
104
  key: f,
100
105
  class: "selected-client card-footer -outline-offset-2"
101
106
  }, {
102
107
  default: m(() => [
103
- E(p(e(T)(u)) + " " + p(e(L)(u)), 1)
108
+ D(p(e(E)(u)) + " " + p(e(L)(u)), 1)
104
109
  ]),
105
110
  _: 2
106
- }, 1024))), 128)) : (n(), l("div", {
111
+ }, 1024))), 128)) : (r(), l("div", {
107
112
  key: 2,
108
- id: e(g),
113
+ id: e(C),
109
114
  class: "selected-client card-footer -outline-offset-2",
110
115
  role: "tabpanel",
111
116
  tabindex: "0"
112
- }, p(e(x)) + " " + p(e(k)), 9, $))
117
+ }, p(e(x)) + " " + p(e(k)), 9, ee))
113
118
  ];
114
119
  }),
115
120
  _: 1
@@ -121,5 +126,5 @@ const R = { key: 0 }, U = ["id"], Y = {
121
126
  }
122
127
  });
123
128
  export {
124
- ie as default
129
+ de as default
125
130
  };
@@ -1 +1 @@
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;AAyDJ,iBAAS,cAAc;WA8NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA5TR,QAAQ,GAAG,SAAS;6EAmU/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;AAyDJ,iBAAS,cAAc;WAgOT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA8BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA9TR,QAAQ,GAAG,SAAS;6EAqU/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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2dd70f8b"]]);
5
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-42df8515"]]);
6
6
  export {
7
7
  _ as default
8
8
  };
@@ -17,10 +17,10 @@ import ee from "./Models/ModelsAccordion.vue.js";
17
17
  import re from "./Models/Models.vue.js";
18
18
  const se = { class: "narrow-references-container" }, te = {
19
19
  key: 0,
20
- class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm [--scalar-address-bar-height:0px]"
20
+ class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm leading-normal [--scalar-address-bar-height:0px]"
21
21
  }, ae = {
22
22
  key: 1,
23
- class: "scalar-reference-intro-auth scalar-client introduction-card-item"
23
+ class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
24
24
  }, Ce = /* @__PURE__ */ F({
25
25
  __name: "Content",
26
26
  props: {
@@ -53,9 +53,9 @@ const se = { class: "narrow-references-container" }, te = {
53
53
  () => $.layout === "classic" ? "after" : "aside"
54
54
  );
55
55
  return (e, k) => {
56
- var b, g, C, w;
56
+ var g, b, C, w;
57
57
  return t(), i(u, null, [
58
- k[0] || (k[0] = G('<div class="section-flare" data-v-2dd70f8b><div class="section-flare-item" data-v-2dd70f8b></div><div class="section-flare-item" data-v-2dd70f8b></div><div class="section-flare-item" data-v-2dd70f8b></div><div class="section-flare-item" data-v-2dd70f8b></div><div class="section-flare-item" data-v-2dd70f8b></div><div class="section-flare-item" data-v-2dd70f8b></div><div class="section-flare-item" data-v-2dd70f8b></div><div class="section-flare-item" data-v-2dd70f8b></div></div>', 1)),
58
+ k[0] || (k[0] = G('<div class="section-flare" data-v-42df8515><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div></div>', 1)),
59
59
  A("div", se, [
60
60
  f(e.$slots, "start", {}, void 0, !0),
61
61
  s.value ? (t(), a(r(X), {
@@ -65,7 +65,7 @@ const se = { class: "narrow-references-container" }, te = {
65
65
  parsedSpec: e.parsedSpec,
66
66
  server: c.value
67
67
  }, null, 8, ["collection", "layout", "parsedSpec", "server"])) : l("", !0),
68
- (g = (b = e.parsedSpec) == null ? void 0 : b.info) != null && g.title || (w = (C = e.parsedSpec) == null ? void 0 : C.info) != null && w.description ? (t(), a(r(Y), {
68
+ (b = (g = e.parsedSpec) == null ? void 0 : g.info) != null && b.title || (w = (C = e.parsedSpec) == null ? void 0 : C.info) != null && w.description ? (t(), a(r(Y), {
69
69
  key: 1,
70
70
  info: e.parsedSpec.info,
71
71
  parsedSpec: e.parsedSpec
@@ -1,7 +1,7 @@
1
- import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
1
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
2
  import type { Spec } from '@scalar/types/legacy';
3
3
  type __VLS_Props = {
4
- info: Partial<OpenAPIV2.InfoObject | OpenAPIV3.InfoObject | OpenAPIV3_1.InfoObject>;
4
+ info: Partial<OpenAPIV3_1.InfoObject>;
5
5
  parsedSpec: Spec;
6
6
  };
7
7
  declare function __VLS_template(): {
@@ -1 +1 @@
1
- {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAsHA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAwBhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CACX,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CACrE,CAAA;IACD,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;AA0CF,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAwBhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;IACrC,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;AAgCF,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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,7 +1,7 @@
1
1
  import o from "./Introduction.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b6809143"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d1b2118d"]]);
5
5
  export {
6
- _ as default
6
+ p as default
7
7
  };
@@ -1,114 +1,108 @@
1
- import { defineComponent as D, computed as s, onMounted as I, createBlock as l, openBlock as a, unref as o, withCtx as t, createVNode as i, renderSlot as S, createElementVNode as _, createCommentVNode as u, createTextVNode as d, toDisplayString as f } from "vue";
2
- import L from "github-slugger";
1
+ import { defineComponent as y, inject as I, computed as L, onMounted as O, createBlock as l, openBlock as a, unref as e, withCtx as t, createVNode as i, renderSlot as g, createElementVNode as S, createCommentVNode as s, createTextVNode as d, toDisplayString as f } from "vue";
3
2
  import { useConfig as V } from "../../../hooks/useConfig.js";
4
- import { useNavState as w } from "../../../hooks/useNavState.js";
5
- import { DEFAULT_INTRODUCTION_SLUG as H } from "../../../hooks/useSidebar.js";
6
- import B from "../../../features/DownloadLink/DownloadLink.vue.js";
7
- import O from "./Description.vue.js";
8
- import U from "../../Section/SectionContainer.vue.js";
9
- import b from "../../Section/Section.vue.js";
10
- import A from "../../Section/SectionContent.vue.js";
11
- import C from "../../Badge/Badge.vue.js";
12
- import E from "../../Section/SectionHeader.vue.js";
13
- import F from "../../Section/SectionHeaderTag.vue.js";
14
- import G from "../../Section/SectionColumns.vue.js";
15
- import h from "../../Section/SectionColumn.vue.js";
16
- import k from "../../SpecificationExtension/SpecificationExtension.vue.js";
17
- const M = { class: "flex gap-1" }, R = { class: "sticky-cards" }, ne = /* @__PURE__ */ D({
3
+ import { useNavState as $ } from "../../../hooks/useNavState.js";
4
+ import { DEFAULT_INTRODUCTION_SLUG as D } from "../../../hooks/useSidebar.js";
5
+ import T from "../../../features/DownloadLink/DownloadLink.vue.js";
6
+ import B from "./Description.vue.js";
7
+ import { OPENAPI_VERSION_SYMBOL as E } from "../../../features/DownloadLink/openapi-version-symbol.js";
8
+ import A from "../../Section/SectionContainer.vue.js";
9
+ import H from "../../Section/Section.vue.js";
10
+ import U from "../../Section/SectionContent.vue.js";
11
+ import _ from "../../Badge/Badge.vue.js";
12
+ import w from "../../Section/SectionHeader.vue.js";
13
+ import M from "../../Section/SectionHeaderTag.vue.js";
14
+ import P from "../../Section/SectionColumns.vue.js";
15
+ import C from "../../Section/SectionColumn.vue.js";
16
+ import N from "../../SpecificationExtension/SpecificationExtension.vue.js";
17
+ const R = { class: "flex gap-1" }, b = { class: "sticky-cards" }, io = /* @__PURE__ */ y({
18
18
  __name: "Introduction",
19
19
  props: {
20
20
  info: {},
21
21
  parsedSpec: {}
22
22
  },
23
- setup(y) {
24
- const n = y, { getHeadingId: N } = w(), m = s(
25
- () => {
26
- var e, r;
27
- return ((e = n.parsedSpec) == null ? void 0 : e.openapi) ?? ((r = n.parsedSpec) == null ? void 0 : r.swagger) ?? "";
28
- }
29
- ), T = new L(), $ = s(() => {
30
- var e;
31
- return T.slug(((e = n.info) == null ? void 0 : e.title) ?? "");
32
- }), p = s(() => {
33
- var e, r;
34
- return typeof ((e = n.info) == null ? void 0 : e.version) == "string" ? n.info.version.toString().match(/^\d/) ? `v${n.info.version}` : n.info.version : typeof ((r = n.info) == null ? void 0 : r.version) == "number" ? `v${n.info.version}` : void 0;
35
- }), c = V();
36
- return I(() => {
37
- var e, r;
38
- return (r = (e = c.value).onLoaded) == null ? void 0 : r.call(e);
39
- }), (e, r) => (a(), l(o(U), null, {
23
+ setup(h) {
24
+ const n = h, { getHeadingId: k } = $(), u = I(E), m = L(() => {
25
+ var o, r;
26
+ return typeof ((o = n.info) == null ? void 0 : o.version) == "string" ? n.info.version.toString().match(/^\d/) ? `v${n.info.version}` : n.info.version : typeof ((r = n.info) == null ? void 0 : r.version) == "number" ? `v${n.info.version}` : void 0;
27
+ }), p = V();
28
+ return O(() => {
29
+ var o, r;
30
+ return (r = (o = p.value).onLoaded) == null ? void 0 : r.call(o);
31
+ }), (o, r) => (a(), l(e(A), null, {
40
32
  default: t(() => [
41
- i(o(b), {
33
+ i(e(H), {
42
34
  class: "introduction-section gap-12",
43
- id: o(N)({
44
- slug: o(H),
35
+ id: e(k)({
36
+ slug: e(D),
45
37
  depth: 1,
46
38
  value: "Introduction"
47
39
  })
48
40
  }, {
49
41
  default: t(() => {
50
- var v, g;
42
+ var c, v;
51
43
  return [
52
- i(o(A), {
53
- loading: o(c).isLoading ?? (!((v = e.info) != null && v.description) && !((g = e.info) != null && g.title))
44
+ i(e(U), {
45
+ loading: e(p).isLoading ?? (!((c = o.info) != null && c.description) && !((v = o.info) != null && v.title))
54
46
  }, {
55
47
  default: t(() => [
56
- _("div", M, [
57
- p.value ? (a(), l(o(C), { key: 0 }, {
48
+ S("div", R, [
49
+ m.value ? (a(), l(e(_), { key: 0 }, {
58
50
  default: t(() => [
59
- d(f(p.value), 1)
51
+ d(f(m.value), 1)
60
52
  ]),
61
53
  _: 1
62
- })) : u("", !0),
63
- m.value ? (a(), l(o(C), { key: 1 }, {
54
+ })) : s("", !0),
55
+ e(u) ? (a(), l(e(_), { key: 1 }, {
64
56
  default: t(() => [
65
- d("OAS " + f(m.value), 1)
57
+ d("OAS " + f(e(u)), 1)
66
58
  ]),
67
59
  _: 1
68
- })) : u("", !0)
60
+ })) : s("", !0)
69
61
  ]),
70
- i(o(E), {
71
- loading: !e.info.title,
62
+ i(e(w), {
63
+ loading: !o.info.title,
72
64
  tight: ""
73
65
  }, {
74
66
  default: t(() => [
75
- i(o(F), { level: 1 }, {
67
+ i(e(M), { level: 1 }, {
76
68
  default: t(() => [
77
- d(f(e.info.title), 1)
69
+ d(f(o.info.title), 1)
78
70
  ]),
79
71
  _: 1
80
72
  })
81
73
  ]),
82
74
  _: 1
83
75
  }, 8, ["loading"]),
84
- i(o(G), null, {
76
+ i(e(P), null, {
85
77
  default: t(() => [
86
- i(o(h), null, {
78
+ i(e(C), null, {
87
79
  default: t(() => [
88
- i(B, { filename: $.value }, null, 8, ["filename"]),
89
- i(O, {
90
- value: e.info.description
80
+ i(T, {
81
+ title: o.info.title
82
+ }, null, 8, ["title"]),
83
+ i(B, {
84
+ value: o.info.description
91
85
  }, null, 8, ["value"])
92
86
  ]),
93
87
  _: 1
94
88
  }),
95
- e.$slots.aside ? (a(), l(o(h), { key: 0 }, {
89
+ o.$slots.aside ? (a(), l(e(C), { key: 0 }, {
96
90
  default: t(() => [
97
- _("div", R, [
98
- S(e.$slots, "aside", {}, void 0, !0)
91
+ S("div", b, [
92
+ g(o.$slots, "aside", {}, void 0, !0)
99
93
  ])
100
94
  ]),
101
95
  _: 3
102
- })) : u("", !0)
96
+ })) : s("", !0)
103
97
  ]),
104
98
  _: 3
105
99
  }),
106
- i(o(k), { value: e.parsedSpec }, null, 8, ["value"]),
107
- i(o(k), { value: e.info }, null, 8, ["value"])
100
+ i(e(N), { value: o.parsedSpec }, null, 8, ["value"]),
101
+ i(e(N), { value: o.info }, null, 8, ["value"])
108
102
  ]),
109
103
  _: 3
110
104
  }, 8, ["loading"]),
111
- S(e.$slots, "after", {}, void 0, !0)
105
+ g(o.$slots, "after", {}, void 0, !0)
112
106
  ];
113
107
  }),
114
108
  _: 3
@@ -119,5 +113,5 @@ const M = { class: "flex gap-1" }, R = { class: "sticky-cards" }, ne = /* @__PUR
119
113
  }
120
114
  });
121
115
  export {
122
- ne as default
116
+ io as default
123
117
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAqQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;gBAwCb,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;gBAHJ,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;YADP,QAAQ,GAAG,SAAS;;AAlBjC,wBAoUK"}
1
+ {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AA6QA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;gBAwCb,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;gBAHJ,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;YADP,QAAQ,GAAG,SAAS;;AAlBjC,wBA4UK"}