@scalar/api-reference 1.25.115 → 1.25.118

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 (67) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/dist/browser/standalone.js +15973 -15829
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  5. package/dist/components/ApiReferenceLayout.vue2.js +1 -1
  6. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  7. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  8. package/dist/components/Content/Introduction/Introduction.vue2.js +39 -38
  9. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  10. package/dist/components/Content/Lazy/Loading.vue.js +58 -60
  11. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +6 -0
  12. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  14. package/dist/components/Content/Schema/SchemaProperty.vue2.js +124 -120
  15. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts +1 -3
  16. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
  17. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Tag/TagList.vue.js +36 -38
  19. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  20. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  21. package/dist/components/Sidebar/SidebarElement.vue2.js +59 -55
  22. package/dist/features/ApiClientModal/useApiClient.d.ts +208 -128
  23. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  24. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +6 -4
  25. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  26. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  27. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +130 -119
  28. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts +2 -2
  29. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  30. package/dist/features/ExampleResponses/ExampleResponses.vue.js +3 -3
  31. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +86 -91
  32. package/dist/features/Operation/Operation.vue.d.ts +4 -5
  33. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  34. package/dist/features/Operation/Operation.vue.js +34 -41
  35. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +6 -6
  36. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  37. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  38. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +54 -51
  39. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +6 -6
  40. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  41. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  42. package/dist/features/Operation/layouts/ModernLayout.vue2.js +71 -71
  43. package/dist/helpers/get-request.d.ts.map +1 -1
  44. package/dist/helpers/index.d.ts +0 -3
  45. package/dist/helpers/index.d.ts.map +1 -1
  46. package/dist/hooks/useConfig.d.ts +1 -1
  47. package/dist/hooks/useConfig.d.ts.map +1 -1
  48. package/dist/hooks/useConfig.js +1 -1
  49. package/dist/hooks/useNavState.d.ts.map +1 -1
  50. package/dist/hooks/useNavState.js +26 -24
  51. package/dist/hooks/useReactiveSpec.d.ts +1 -1
  52. package/dist/index.js +66 -72
  53. package/dist/style.css +1 -1
  54. package/package.json +12 -12
  55. package/dist/features/Operation/hooks/useRequestExample.d.ts +0 -17
  56. package/dist/features/Operation/hooks/useRequestExample.d.ts.map +0 -1
  57. package/dist/features/Operation/hooks/useRequestExample.js +0 -68
  58. package/dist/helpers/convertRequestToHarRequest.d.ts +0 -7
  59. package/dist/helpers/convertRequestToHarRequest.d.ts.map +0 -1
  60. package/dist/helpers/convertRequestToHarRequest.js +0 -64
  61. package/dist/helpers/get-request.js +0 -6
  62. package/dist/helpers/getExampleCode.d.ts +0 -8
  63. package/dist/helpers/getExampleCode.d.ts.map +0 -1
  64. package/dist/helpers/getExampleCode.js +0 -16
  65. package/dist/helpers/joinWithSlash.d.ts +0 -5
  66. package/dist/helpers/joinWithSlash.d.ts.map +0 -1
  67. package/dist/helpers/joinWithSlash.js +0 -4
@@ -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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4351acc7"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10065932"]]);
6
6
  export {
7
- c as default
7
+ a as default
8
8
  };
@@ -136,7 +136,7 @@ const We = ["innerHTML"], Ge = { class: "references-header" }, Ke = {
136
136
  { immediate: !0 }
137
137
  ), v(Ce, w);
138
138
  const oe = Te(w);
139
- v($e, oe), v(ye, "modal"), v(he, o.configuration);
139
+ v($e, oe), v(ye, "modal"), v(he, o.configuration ?? {});
140
140
  function L(e, t) {
141
141
  T(
142
142
  () => o.configuration[e],
@@ -1 +1 @@
1
- {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAkBhD,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;AAoCF,iBAAS,cAAc;WAyIT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAoBD,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":"AAoGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAkBhD,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;WAyIT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAoBD,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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a435d3c2"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0336cd4f"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,73 +1,74 @@
1
- import { defineComponent as V, computed as a, openBlock as l, createBlock as s, unref as t, withCtx as i, createVNode as n, createElementVNode as g, createTextVNode as d, toDisplayString as u, createCommentVNode as f, renderSlot as S } from "vue";
2
- import $ from "github-slugger";
3
- import w from "../../../features/DownloadLink/DownloadLink.vue.js";
4
- import N from "./Description.vue.js";
5
- import T from "../../Section/SectionContainer.vue.js";
6
- import b from "../../Section/Section.vue.js";
7
- import B from "../../Section/SectionContent.vue.js";
8
- import _ from "../../Badge/Badge.vue.js";
9
- import D from "../../Section/SectionHeader.vue.js";
10
- import H from "../../Section/SectionColumns.vue.js";
1
+ import { defineComponent as $, computed as u, onMounted as w, openBlock as l, createBlock as s, unref as t, withCtx as i, createVNode as n, createElementVNode as S, createTextVNode as f, toDisplayString as d, createCommentVNode as p, renderSlot as _ } from "vue";
2
+ import { useConfig as N } from "../../../hooks/useConfig.js";
3
+ import T from "github-slugger";
4
+ import b from "../../../features/DownloadLink/DownloadLink.vue.js";
5
+ import B from "./Description.vue.js";
6
+ import D from "../../Section/SectionContainer.vue.js";
7
+ import H from "../../Section/Section.vue.js";
8
+ import A from "../../Section/SectionContent.vue.js";
9
+ import C from "../../Badge/Badge.vue.js";
10
+ import E from "../../Section/SectionHeader.vue.js";
11
+ import F from "../../Section/SectionColumns.vue.js";
11
12
  import k from "../../Section/SectionColumn.vue.js";
12
- const A = { class: "badges" }, E = { class: "sticky-cards" }, P = /* @__PURE__ */ V({
13
+ const G = { class: "badges" }, I = { class: "sticky-cards" }, W = /* @__PURE__ */ $({
13
14
  __name: "Introduction",
14
15
  props: {
15
16
  info: {},
16
17
  parsedSpec: {}
17
18
  },
18
19
  setup(y) {
19
- const o = y, p = a(
20
+ const o = y, m = u(
20
21
  () => {
21
22
  var e, r;
22
23
  return ((e = o.parsedSpec) == null ? void 0 : e.openapi) ?? ((r = o.parsedSpec) == null ? void 0 : r.swagger) ?? "";
23
24
  }
24
- ), C = new $(), h = a(() => {
25
+ ), h = new T(), V = u(() => {
25
26
  var e;
26
- return C.slug(((e = o.info) == null ? void 0 : e.title) ?? "");
27
- }), c = a(() => {
27
+ return h.slug(((e = o.info) == null ? void 0 : e.title) ?? "");
28
+ }), c = u(() => {
28
29
  var e, r;
29
30
  return typeof ((e = o.info) == null ? void 0 : e.version) == "string" ? o.info.version.toString().match(/^\d/) ? `v${o.info.version}` : o.info.version : typeof ((r = o.info) == null ? void 0 : r.version) == "number" ? `v${o.info.version}` : void 0;
30
- });
31
- return (e, r) => (l(), s(t(T), null, {
31
+ }), { onLoaded: a } = N();
32
+ return w(() => a == null ? void 0 : a()), (e, r) => (l(), s(t(D), null, {
32
33
  default: i(() => [
33
- n(t(b), { class: "introduction-section gap-12" }, {
34
+ n(t(H), { class: "introduction-section gap-12" }, {
34
35
  default: i(() => {
35
- var m, v;
36
+ var v, g;
36
37
  return [
37
- n(t(B), {
38
- loading: !((m = e.info) != null && m.description) && !((v = e.info) != null && v.title)
38
+ n(t(A), {
39
+ loading: !((v = e.info) != null && v.description) && !((g = e.info) != null && g.title)
39
40
  }, {
40
41
  default: i(() => [
41
- g("div", A, [
42
- c.value ? (l(), s(t(_), { key: 0 }, {
42
+ S("div", G, [
43
+ c.value ? (l(), s(t(C), { key: 0 }, {
43
44
  default: i(() => [
44
- d(u(c.value), 1)
45
+ f(d(c.value), 1)
45
46
  ]),
46
47
  _: 1
47
- })) : f("", !0),
48
- p.value ? (l(), s(t(_), { key: 1 }, {
48
+ })) : p("", !0),
49
+ m.value ? (l(), s(t(C), { key: 1 }, {
49
50
  default: i(() => [
50
- d("OAS " + u(p.value), 1)
51
+ f("OAS " + d(m.value), 1)
51
52
  ]),
52
53
  _: 1
53
- })) : f("", !0)
54
+ })) : p("", !0)
54
55
  ]),
55
- n(t(D), {
56
+ n(t(E), {
56
57
  level: 1,
57
58
  loading: !e.info.title,
58
59
  tight: ""
59
60
  }, {
60
61
  default: i(() => [
61
- d(u(e.info.title), 1)
62
+ f(d(e.info.title), 1)
62
63
  ]),
63
64
  _: 1
64
65
  }, 8, ["loading"]),
65
- n(w, { specTitle: h.value }, null, 8, ["specTitle"]),
66
- n(t(H), null, {
66
+ n(b, { specTitle: V.value }, null, 8, ["specTitle"]),
67
+ n(t(F), null, {
67
68
  default: i(() => [
68
69
  n(t(k), null, {
69
70
  default: i(() => [
70
- n(N, {
71
+ n(B, {
71
72
  value: e.info.description
72
73
  }, null, 8, ["value"])
73
74
  ]),
@@ -75,19 +76,19 @@ const A = { class: "badges" }, E = { class: "sticky-cards" }, P = /* @__PURE__ *
75
76
  }),
76
77
  e.$slots.aside ? (l(), s(t(k), { key: 0 }, {
77
78
  default: i(() => [
78
- g("div", E, [
79
- S(e.$slots, "aside", {}, void 0, !0)
79
+ S("div", I, [
80
+ _(e.$slots, "aside", {}, void 0, !0)
80
81
  ])
81
82
  ]),
82
83
  _: 3
83
- })) : f("", !0)
84
+ })) : p("", !0)
84
85
  ]),
85
86
  _: 3
86
87
  })
87
88
  ]),
88
89
  _: 3
89
90
  }, 8, ["loading"]),
90
- S(e.$slots, "after", {}, void 0, !0)
91
+ _(e.$slots, "after", {}, void 0, !0)
91
92
  ];
92
93
  }),
93
94
  _: 3
@@ -98,5 +99,5 @@ const A = { class: "badges" }, E = { class: "sticky-cards" }, P = /* @__PURE__ *
98
99
  }
99
100
  });
100
101
  export {
101
- P as default
102
+ W as default
102
103
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAqOA,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;AAkB7B;;;;;;;;;;;;GAYG;AACH,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;;YAFS,QAAQ,GAAG,SAAS;;AAyQjC,wBAQG"}
1
+ {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAmOA,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;AAkB7B;;;;;;;;;;;;GAYG;AACH,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;;YAFS,QAAQ,GAAG,SAAS;;AAwQjC,wBAQG"}
@@ -1,122 +1,120 @@
1
- import { defineComponent as K, ref as v, watch as M, onMounted as j, withDirectives as A, openBlock as a, createElementBlock as m, normalizeClass as F, Fragment as h, renderList as b, createBlock as f, unref as t, withCtx as p, createCommentVNode as w, createVNode as T, createTextVNode as H, toDisplayString as P, vShow as G } from "vue";
2
- import { useWorkspace as J } from "@scalar/api-client/store";
3
- import { lazyBus as Q } from "./lazyBus.js";
4
- import R from "../Tag/Tag.vue.js";
5
- import U from "../../../features/Operation/Operation.vue.js";
6
- import X from "../../Section/SectionContainer.vue.js";
7
- import Y from "../../Section/Section.vue.js";
8
- import Z from "../../Section/SectionContent.vue.js";
9
- import ee from "../../Section/SectionHeader.vue.js";
10
- import te from "../../Anchor/Anchor.vue.js";
11
- import oe from "../Schema/Schema.vue.js";
12
- import { useNavState as re } from "../../../hooks/useNavState.js";
13
- import { getModels as g } from "../../../helpers/getModels.js";
14
- import { scrollToId as C } from "../../../helpers/scrollToId.js";
15
- const ye = /* @__PURE__ */ K({
1
+ import { defineComponent as D, ref as v, watch as K, onMounted as M, withDirectives as j, openBlock as n, createElementBlock as f, normalizeClass as F, Fragment as g, renderList as k, createBlock as m, unref as t, withCtx as p, createCommentVNode as w, createVNode as C, createTextVNode as H, toDisplayString as P, vShow as q } from "vue";
2
+ import { useActiveEntities as G } from "@scalar/api-client/store";
3
+ import { lazyBus as J } from "./lazyBus.js";
4
+ import Q from "../Tag/Tag.vue.js";
5
+ import R from "../../../features/Operation/Operation.vue.js";
6
+ import U from "../../Section/SectionContainer.vue.js";
7
+ import X from "../../Section/Section.vue.js";
8
+ import Y from "../../Section/SectionContent.vue.js";
9
+ import Z from "../../Section/SectionHeader.vue.js";
10
+ import ee from "../../Anchor/Anchor.vue.js";
11
+ import te from "../Schema/Schema.vue.js";
12
+ import { useNavState as oe } from "../../../hooks/useNavState.js";
13
+ import { getModels as h } from "../../../helpers/getModels.js";
14
+ import { scrollToId as x } from "../../../helpers/scrollToId.js";
15
+ const he = /* @__PURE__ */ D({
16
16
  __name: "Loading",
17
17
  props: {
18
18
  layout: { default: "modern" },
19
19
  parsedSpec: {}
20
20
  },
21
- setup(q) {
22
- const i = q, _ = v(!1), y = v([]), S = v([]), { requests: E, requestExamples: L, securitySchemes: V } = J(), { getModelId: z, getSectionId: B, getTagId: N, hash: s, isIntersectionEnabled: I } = re(), x = v(i.layout !== "classic" && s.value);
23
- M(
21
+ setup(L) {
22
+ const i = L, T = v(!1), S = v([]), y = v([]), { activeCollection: O, activeServer: V } = G(), { getModelId: z, getSectionId: B, getTagId: N, hash: a, isIntersectionEnabled: I } = oe(), _ = v(i.layout !== "classic" && a.value);
23
+ K(
24
24
  () => {
25
25
  var r;
26
26
  return (r = i.parsedSpec.tags) == null ? void 0 : r.length;
27
27
  },
28
28
  (r) => {
29
29
  var e, u;
30
- if (!s.value || typeof r != "number" || !i.parsedSpec.tags)
30
+ if (!a.value || typeof r != "number" || !i.parsedSpec.tags)
31
31
  return;
32
- const l = B();
33
- if (l.startsWith("tag")) {
32
+ const s = B();
33
+ if (s.startsWith("tag")) {
34
34
  let o = 0;
35
35
  const c = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
36
- (k) => N(k) === l
37
- )) ?? 0, n = s.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);
38
- if ((n == null ? void 0 : n.length) === 4) {
39
- const k = n[2], O = "/" + n[3];
36
+ (b) => N(b) === s
37
+ )) ?? 0, l = a.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);
38
+ if ((l == null ? void 0 : l.length) === 4) {
39
+ const b = l[2], W = "/" + l[3];
40
40
  o = (u = i.parsedSpec.tags[c]) == null ? void 0 : u.operations.findIndex(
41
- ({ httpVerb: $, path: D }) => k === $ && O === D
41
+ ({ httpVerb: $, path: A }) => b === $ && W === A
42
42
  );
43
43
  }
44
44
  const d = i.parsedSpec.tags[c];
45
45
  if (!d) return;
46
- d.name !== "default" && (_.value = l !== s.value && l.startsWith("tag")), y.value.push({
46
+ d.name !== "default" && (T.value = s !== a.value && s.startsWith("tag")), S.value.push({
47
47
  ...d,
48
48
  lazyOperations: d.operations.slice(
49
49
  o,
50
50
  o + 2
51
51
  )
52
52
  });
53
- } else if (s.value.startsWith("model")) {
54
- const o = Object.keys(g(i.parsedSpec) ?? {}), [, c] = s.value.toLowerCase().split("/"), n = s.value === "models" ? 0 : o.findIndex((d) => d.toLowerCase() === c);
55
- if (n === -1) return;
56
- S.value = o.slice(n, n + 3);
53
+ } else if (a.value.startsWith("model")) {
54
+ const o = Object.keys(h(i.parsedSpec) ?? {}), [, c] = a.value.toLowerCase().split("/"), l = a.value === "models" ? 0 : o.findIndex((d) => d.toLowerCase() === c);
55
+ if (l === -1) return;
56
+ y.value = o.slice(l, l + 3);
57
57
  } else
58
- typeof window < "u" && C(s.value), setTimeout(() => I.value = !0, 1e3);
58
+ typeof window < "u" && x(a.value), setTimeout(() => I.value = !0, 1e3);
59
59
  },
60
60
  { immediate: !0 }
61
61
  );
62
- const W = Q.on(({ id: r }) => {
63
- const l = s.value;
64
- !l || r !== l || (W(), setTimeout(() => {
65
- typeof window < "u" && C(l), x.value = !1, setTimeout(() => I.value = !0, 1e3);
62
+ const E = J.on(({ id: r }) => {
63
+ const s = a.value;
64
+ !s || r !== s || (E(), setTimeout(() => {
65
+ typeof window < "u" && x(s), _.value = !1, setTimeout(() => I.value = !0, 1e3);
66
66
  }, 300));
67
67
  });
68
- return j(() => {
69
- s.value || setTimeout(() => I.value = !0, 1e3);
70
- }), (r, l) => A((a(), m("div", {
68
+ return M(() => {
69
+ a.value || setTimeout(() => I.value = !0, 1e3);
70
+ }), (r, s) => j((n(), f("div", {
71
71
  class: F(["references-loading", {
72
- "references-loading-hidden-tag": _.value,
73
- "references-loading-top-spacer": y.value.length
72
+ "references-loading-hidden-tag": T.value,
73
+ "references-loading-top-spacer": S.value.length
74
74
  }])
75
75
  }, [
76
- (a(!0), m(h, null, b(y.value, (e, u) => (a(), m(h, {
76
+ (n(!0), f(g, null, k(S.value, (e, u) => (n(), f(g, {
77
77
  key: e.name + u
78
78
  }, [
79
- e.operations && e.operations.length > 0 ? (a(), f(t(R), {
79
+ e.operations && e.operations.length > 0 ? (n(), m(t(Q), {
80
80
  key: 0,
81
81
  spec: r.parsedSpec,
82
82
  tag: e
83
83
  }, {
84
84
  default: p(() => [
85
- (a(!0), m(h, null, b(e.lazyOperations, (o) => (a(), f(t(U), {
85
+ (n(!0), f(g, null, k(e.lazyOperations, (o) => (n(), m(t(R), {
86
86
  key: `${o.httpVerb}-${o.operationId}`,
87
+ collection: t(O),
87
88
  layout: r.layout,
88
- operation: o,
89
- requestExamples: t(L),
90
- requests: t(E),
91
- securitySchemes: t(V),
92
- tag: e
93
- }, null, 8, ["layout", "operation", "requestExamples", "requests", "securitySchemes", "tag"]))), 128))
89
+ server: t(V),
90
+ transformedOperation: o
91
+ }, null, 8, ["collection", "layout", "server", "transformedOperation"]))), 128))
94
92
  ]),
95
93
  _: 2
96
94
  }, 1032, ["spec", "tag"])) : w("", !0)
97
95
  ], 64))), 128)),
98
- S.value.length ? (a(), f(t(X), { key: 0 }, {
96
+ y.value.length ? (n(), m(t(U), { key: 0 }, {
99
97
  default: p(() => [
100
- (a(!0), m(h, null, b(S.value, (e) => (a(), f(t(Y), {
98
+ (n(!0), f(g, null, k(y.value, (e) => (n(), m(t(X), {
101
99
  key: e,
102
100
  label: e
103
101
  }, {
104
102
  default: p(() => {
105
103
  var u;
106
104
  return [
107
- (u = t(g)(r.parsedSpec)) != null && u[e] ? (a(), f(t(Z), { key: 0 }, {
105
+ (u = t(h)(r.parsedSpec)) != null && u[e] ? (n(), m(t(Y), { key: 0 }, {
108
106
  default: p(() => {
109
107
  var o;
110
108
  return [
111
- T(t(ee), { level: 2 }, {
109
+ C(t(Z), { level: 2 }, {
112
110
  default: p(() => [
113
- T(t(te), {
111
+ C(t(ee), {
114
112
  id: t(z)({ name: e })
115
113
  }, {
116
114
  default: p(() => {
117
115
  var c;
118
116
  return [
119
- H(P(((c = t(g)(r.parsedSpec)) == null ? void 0 : c[e]).title ?? e), 1)
117
+ H(P(((c = t(h)(r.parsedSpec)) == null ? void 0 : c[e]).title ?? e), 1)
120
118
  ];
121
119
  }),
122
120
  _: 2
@@ -124,10 +122,10 @@ const ye = /* @__PURE__ */ K({
124
122
  ]),
125
123
  _: 2
126
124
  }, 1024),
127
- T(t(oe), {
125
+ C(t(te), {
128
126
  name: e,
129
127
  noncollapsible: "",
130
- value: (o = t(g)(r.parsedSpec)) == null ? void 0 : o[e]
128
+ value: (o = t(h)(r.parsedSpec)) == null ? void 0 : o[e]
131
129
  }, null, 8, ["name", "value"])
132
130
  ];
133
131
  }),
@@ -141,10 +139,10 @@ const ye = /* @__PURE__ */ K({
141
139
  _: 1
142
140
  })) : w("", !0)
143
141
  ], 2)), [
144
- [G, x.value]
142
+ [q, _.value]
145
143
  ]);
146
144
  }
147
145
  });
148
146
  export {
149
- ye as default
147
+ he as default
150
148
  };
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Note: We’re taking in a prop called `value` which should be a JSON Schema.
3
+ *
4
+ * We’re using `optimizeValueForDisplay` to merge null types in discriminators (anyOf, allOf, oneOf, not).
5
+ * So you should basically use the optimizedValue everywhere in the component.
6
+ */
1
7
  type __VLS_Props = {
2
8
  value?: Record<string, any>;
3
9
  level?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAicA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;cANW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AA8Y1B,0BAQG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAqfA;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;cANW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AA2b1B,0BAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a8cba913"]]);
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-17d98b59"]]);
5
5
  export {
6
- p as default
6
+ a as default
7
7
  };