@scalar/api-reference 1.28.14 → 1.28.16

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 (34) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/browser/standalone.js +5125 -5093
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  5. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  6. package/dist/components/Content/Introduction/Introduction.vue2.js +44 -35
  7. package/dist/components/Content/Models/Models.vue.js +2 -2
  8. package/dist/components/Content/Models/Models.vue2.js +17 -17
  9. package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
  10. package/dist/components/Content/Models/ModelsAccordion.vue2.js +3 -3
  11. package/dist/components/Content/Schema/Schema.preview.d.ts +525 -0
  12. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  13. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -0
  14. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  16. package/dist/components/Content/Schema/Schema.vue2.js +60 -62
  17. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +2 -2
  19. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +32 -50
  20. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -0
  21. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  23. package/dist/components/Content/Schema/SchemaProperty.vue2.js +72 -67
  24. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +12 -0
  25. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -0
  26. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +70 -0
  27. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  28. package/dist/features/Operation/components/ParameterListItem.vue2.js +12 -12
  29. package/dist/hooks/useSidebar.d.ts +1 -0
  30. package/dist/hooks/useSidebar.d.ts.map +1 -1
  31. package/dist/hooks/useSidebar.js +131 -119
  32. package/dist/index.js +1 -1
  33. package/dist/style.css +1 -1
  34. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAuGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAqBhD,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;AAwCF,iBAAS,cAAc;WAkJT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAsBD,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":"AAmHA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAuBhD,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;WA8JT,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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1b925a7d"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f02ccf38"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,61 +1,70 @@
1
- import { defineComponent as V, computed as s, onMounted as $, openBlock as l, createBlock as a, unref as o, withCtx as t, createVNode as r, createElementVNode as S, createTextVNode as d, toDisplayString as f, createCommentVNode as u, renderSlot as _ } from "vue";
2
- import w from "github-slugger";
3
- import { useConfig as N } from "../../../hooks/useConfig.js";
4
- import B from "../../../features/DownloadLink/DownloadLink.vue.js";
5
- import D from "./Description.vue.js";
6
- import H from "../../Section/SectionContainer.vue.js";
7
- import L from "../../Section/Section.vue.js";
1
+ import { defineComponent as D, computed as s, onMounted as I, openBlock as l, createBlock as a, unref as o, withCtx as t, createVNode as r, createElementVNode as S, createTextVNode as d, toDisplayString as u, createCommentVNode as f, renderSlot as _ } from "vue";
2
+ import L from "github-slugger";
3
+ import { useConfig as V } from "../../../hooks/useConfig.js";
4
+ import { useNavState as $ } from "../../../hooks/useNavState.js";
5
+ import w from "../../../features/DownloadLink/DownloadLink.vue.js";
6
+ import H from "./Description.vue.js";
7
+ import B from "../../Section/SectionContainer.vue.js";
8
+ import O from "../../Section/Section.vue.js";
9
+ import { DEFAULT_INTRODUCTION_SLUG as U } from "../../../hooks/useSidebar.js";
8
10
  import b from "../../Section/SectionContent.vue.js";
9
11
  import C from "../../Badge/Badge.vue.js";
10
12
  import A from "../../Section/SectionHeader.vue.js";
11
13
  import E from "../../Section/SectionHeaderTag.vue.js";
12
14
  import F from "../../Section/SectionColumns.vue.js";
13
- import k from "../../Section/SectionColumn.vue.js";
14
- const G = { class: "flex gap-1" }, I = { class: "sticky-cards" }, Y = /* @__PURE__ */ V({
15
+ import T from "../../Section/SectionColumn.vue.js";
16
+ const G = { class: "flex gap-1" }, M = { class: "sticky-cards" }, te = /* @__PURE__ */ D({
15
17
  __name: "Introduction",
16
18
  props: {
17
19
  info: {},
18
20
  parsedSpec: {}
19
21
  },
20
- setup(y) {
21
- const i = y, p = s(
22
+ setup(h) {
23
+ const i = h, { getHeadingId: k } = $(), m = s(
22
24
  () => {
23
25
  var e, n;
24
26
  return ((e = i.parsedSpec) == null ? void 0 : e.openapi) ?? ((n = i.parsedSpec) == null ? void 0 : n.swagger) ?? "";
25
27
  }
26
- ), h = new w(), T = s(() => {
28
+ ), y = new L(), N = s(() => {
27
29
  var e;
28
- return h.slug(((e = i.info) == null ? void 0 : e.title) ?? "");
29
- }), m = s(() => {
30
+ return y.slug(((e = i.info) == null ? void 0 : e.title) ?? "");
31
+ }), p = s(() => {
30
32
  var e, n;
31
33
  return typeof ((e = i.info) == null ? void 0 : e.version) == "string" ? i.info.version.toString().match(/^\d/) ? `v${i.info.version}` : i.info.version : typeof ((n = i.info) == null ? void 0 : n.version) == "number" ? `v${i.info.version}` : void 0;
32
- }), c = N();
33
- return $(() => {
34
+ }), c = V();
35
+ return I(() => {
34
36
  var e, n;
35
37
  return (n = (e = c.value).onLoaded) == null ? void 0 : n.call(e);
36
- }), (e, n) => (l(), a(o(H), null, {
38
+ }), (e, n) => (l(), a(o(B), null, {
37
39
  default: t(() => [
38
- r(o(L), { class: "introduction-section gap-12" }, {
40
+ r(o(O), {
41
+ class: "introduction-section gap-12",
42
+ id: o(k)({
43
+ slug: o(U),
44
+ depth: 1,
45
+ value: "Introduction"
46
+ })
47
+ }, {
39
48
  default: t(() => {
40
- var v, g;
49
+ var g, v;
41
50
  return [
42
51
  r(o(b), {
43
- loading: o(c).isLoading ?? (!((v = e.info) != null && v.description) && !((g = e.info) != null && g.title))
52
+ loading: o(c).isLoading ?? (!((g = e.info) != null && g.description) && !((v = e.info) != null && v.title))
44
53
  }, {
45
54
  default: t(() => [
46
55
  S("div", G, [
47
- m.value ? (l(), a(o(C), { key: 0 }, {
56
+ p.value ? (l(), a(o(C), { key: 0 }, {
48
57
  default: t(() => [
49
- d(f(m.value), 1)
58
+ d(u(p.value), 1)
50
59
  ]),
51
60
  _: 1
52
- })) : u("", !0),
53
- p.value ? (l(), a(o(C), { key: 1 }, {
61
+ })) : f("", !0),
62
+ m.value ? (l(), a(o(C), { key: 1 }, {
54
63
  default: t(() => [
55
- d("OAS " + f(p.value), 1)
64
+ d("OAS " + u(m.value), 1)
56
65
  ]),
57
66
  _: 1
58
- })) : u("", !0)
67
+ })) : f("", !0)
59
68
  ]),
60
69
  r(o(A), {
61
70
  loading: !e.info.title,
@@ -64,32 +73,32 @@ const G = { class: "flex gap-1" }, I = { class: "sticky-cards" }, Y = /* @__PURE
64
73
  default: t(() => [
65
74
  r(o(E), { level: 1 }, {
66
75
  default: t(() => [
67
- d(f(e.info.title), 1)
76
+ d(u(e.info.title), 1)
68
77
  ]),
69
78
  _: 1
70
79
  })
71
80
  ]),
72
81
  _: 1
73
82
  }, 8, ["loading"]),
74
- r(B, { specTitle: T.value }, null, 8, ["specTitle"]),
83
+ r(w, { specTitle: N.value }, null, 8, ["specTitle"]),
75
84
  r(o(F), null, {
76
85
  default: t(() => [
77
- r(o(k), null, {
86
+ r(o(T), null, {
78
87
  default: t(() => [
79
- r(D, {
88
+ r(H, {
80
89
  value: e.info.description
81
90
  }, null, 8, ["value"])
82
91
  ]),
83
92
  _: 1
84
93
  }),
85
- e.$slots.aside ? (l(), a(o(k), { key: 0 }, {
94
+ e.$slots.aside ? (l(), a(o(T), { key: 0 }, {
86
95
  default: t(() => [
87
- S("div", I, [
96
+ S("div", M, [
88
97
  _(e.$slots, "aside", {}, void 0, !0)
89
98
  ])
90
99
  ]),
91
100
  _: 3
92
- })) : u("", !0)
101
+ })) : f("", !0)
93
102
  ]),
94
103
  _: 3
95
104
  })
@@ -100,12 +109,12 @@ const G = { class: "flex gap-1" }, I = { class: "sticky-cards" }, Y = /* @__PURE
100
109
  ];
101
110
  }),
102
111
  _: 3
103
- })
112
+ }, 8, ["id"])
104
113
  ]),
105
114
  _: 3
106
115
  }));
107
116
  }
108
117
  });
109
118
  export {
110
- Y as default
119
+ te as default
111
120
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Models.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-f1f02ced"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2c898e03"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as y, useId as k, computed as u, openBlock as a, createBlock as m, unref as e, withCtx as l, createVNode as o, createTextVNode as M, createElementVNode as g, normalizeClass as I, createElementBlock as N, Fragment as C, renderList as L, createCommentVNode as f } from "vue";
1
+ import { defineComponent as y, useId as k, computed as u, openBlock as r, createBlock as m, unref as e, withCtx as l, createVNode as o, createTextVNode as M, createElementVNode as g, normalizeClass as I, createElementBlock as N, Fragment as C, renderList as L, createCommentVNode as f } from "vue";
2
2
  import { ScalarErrorBoundary as B } from "@scalar/components";
3
3
  import H from "../../ShowMoreButton.vue.js";
4
4
  import w from "../../Section/SectionContainer.vue.js";
@@ -11,19 +11,19 @@ import z from "../Schema/SchemaHeading.vue.js";
11
11
  import A from "../Schema/Schema.vue.js";
12
12
  import { useSidebar as T } from "../../../hooks/useSidebar.js";
13
13
  import { useNavState as j } from "../../../hooks/useNavState.js";
14
- const S = 10, R = /* @__PURE__ */ y({
14
+ const S = 10, U = /* @__PURE__ */ y({
15
15
  __name: "Models",
16
16
  props: {
17
17
  schemas: {}
18
18
  },
19
- setup(_) {
20
- const i = _, n = k(), { collapsedSidebarItems: v } = T(), { getModelId: s } = j(), d = u(
21
- () => Object.keys(i.schemas ?? {}).length <= S || v[s()]
19
+ setup(v) {
20
+ const i = v, n = k(), { collapsedSidebarItems: _ } = T(), { getModelId: a } = j(), d = u(
21
+ () => Object.keys(i.schemas ?? {}).length <= S || _[a()]
22
22
  ), b = u(() => {
23
23
  const t = Object.keys(i.schemas ?? {});
24
24
  return d.value ? t : t.slice(0, S);
25
25
  });
26
- return (t, c) => t.schemas ? (a(), m(e(w), {
26
+ return (t, c) => t.schemas ? (r(), m(e(w), {
27
27
  key: 0,
28
28
  id: "models"
29
29
  }, {
@@ -51,23 +51,23 @@ const S = 10, R = /* @__PURE__ */ y({
51
51
  g("div", {
52
52
  class: I(["models-list", { "models-list-truncated": !d.value }])
53
53
  }, [
54
- (a(!0), N(C, null, L(b.value, (r) => (a(), m(e(h), {
55
- id: e(s)({ name: r }),
56
- key: r,
54
+ (r(!0), N(C, null, L(b.value, (s) => (r(), m(e(h), {
55
+ id: e(a)({ name: s }),
56
+ key: s,
57
57
  isLazy: ""
58
58
  }, {
59
59
  default: l(() => [
60
60
  o(e(V), {
61
- id: e(s)({ name: r }),
61
+ id: e(a)({ name: s }),
62
62
  class: "models-list-item",
63
- label: r
63
+ label: s
64
64
  }, {
65
65
  heading: l(() => [
66
66
  o(e(p), { level: 3 }, {
67
67
  default: l(() => [
68
68
  o(e(z), {
69
- name: r,
70
- value: t.schemas[r]
69
+ name: t.schemas[s].title ?? s,
70
+ value: t.schemas[s]
71
71
  }, null, 8, ["name", "value"])
72
72
  ]),
73
73
  _: 2
@@ -80,7 +80,7 @@ const S = 10, R = /* @__PURE__ */ y({
80
80
  hideHeading: !0,
81
81
  noncollapsible: "",
82
82
  schemas: t.schemas,
83
- value: t.schemas[r]
83
+ value: t.schemas[s]
84
84
  }, null, 8, ["schemas", "value"])
85
85
  ]),
86
86
  _: 2
@@ -92,9 +92,9 @@ const S = 10, R = /* @__PURE__ */ y({
92
92
  _: 2
93
93
  }, 1032, ["id"]))), 128))
94
94
  ], 2),
95
- d.value ? f("", !0) : (a(), m(H, {
95
+ d.value ? f("", !0) : (r(), m(H, {
96
96
  key: 0,
97
- id: e(s)(),
97
+ id: e(a)(),
98
98
  class: "show-more-models"
99
99
  }, null, 8, ["id"]))
100
100
  ]),
@@ -106,5 +106,5 @@ const S = 10, R = /* @__PURE__ */ y({
106
106
  }
107
107
  });
108
108
  export {
109
- R as default
109
+ U as default
110
110
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ModelsAccordion.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7dbbcdb5"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-92646d2b"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -10,7 +10,7 @@ import { useNavState as O } from "../../../hooks/useNavState.js";
10
10
  const T = {
11
11
  key: 0,
12
12
  class: "properties"
13
- }, h = { key: 1 }, J = /* @__PURE__ */ x({
13
+ }, w = { key: 1 }, J = /* @__PURE__ */ x({
14
14
  __name: "ModelsAccordion",
15
15
  props: {
16
16
  schemas: {}
@@ -48,7 +48,7 @@ const T = {
48
48
  default: o(() => [
49
49
  n(e(j), {
50
50
  class: "reference-models-label",
51
- name: l,
51
+ name: r.title ?? l,
52
52
  value: r
53
53
  }, null, 8, ["name", "value"])
54
54
  ]),
@@ -69,7 +69,7 @@ const T = {
69
69
  value: q
70
70
  }, null, 8, ["name", "required", "value"]);
71
71
  }), 128))
72
- ])) : (t(), u("div", h, [
72
+ ])) : (t(), u("div", w, [
73
73
  n(e(S), { value: r }, null, 8, ["value"])
74
74
  ]))
75
75
  ]),