@scalar/api-reference 1.32.1 → 1.32.5

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 (110) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +1 -1
  3. package/dist/browser/standalone.js +15738 -15439
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  7. package/dist/components/ApiReferenceLayout.vue2.js +163 -158
  8. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  9. package/dist/components/Badge/Badge.vue.js +1 -1
  10. package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
  11. package/dist/components/Card/CardHeader.vue.js +2 -2
  12. package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
  13. package/dist/components/Card/CardTab.vue.js +3 -3
  14. package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
  15. package/dist/components/Card/CardTabHeader.vue.js +2 -2
  16. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
  17. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
  18. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  19. package/dist/components/Content/Lazy/Loading.vue.d.ts +1 -3
  20. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Lazy/Loading.vue.js +89 -89
  22. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  23. package/dist/components/Content/Models/Models.vue.js +2 -2
  24. package/dist/components/Content/Models/Models.vue2.js +59 -56
  25. package/dist/components/Content/Schema/RenderString.vue.d.ts +6 -0
  26. package/dist/components/Content/Schema/RenderString.vue.d.ts.map +1 -0
  27. package/dist/components/Content/Schema/RenderString.vue.js +14 -0
  28. package/dist/components/Content/Schema/RenderString.vue2.js +4 -0
  29. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
  30. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  32. package/dist/components/Content/Schema/Schema.vue2.js +76 -75
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/SchemaComposition.vue.js +58 -66
  35. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +19 -0
  36. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -0
  37. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +7 -0
  38. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +125 -0
  39. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +2 -2
  40. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  42. package/dist/components/Content/Schema/SchemaProperty.vue2.js +96 -170
  43. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +18 -0
  44. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +1 -0
  45. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  47. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +155 -160
  48. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +6 -0
  49. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -0
  50. package/dist/components/Content/Schema/helpers/get-schema-type.js +20 -0
  51. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
  52. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
  53. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  54. package/dist/components/Content/Schema/helpers/schema-name.js +20 -46
  55. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  56. package/dist/features/Operation/components/ContentTypeSelect.vue.js +6 -6
  57. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  58. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  59. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  60. package/dist/features/Operation/components/RequestBody.vue2.js +13 -10
  61. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  62. package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
  63. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +64 -60
  64. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  65. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  66. package/dist/features/Operation/layouts/ModernLayout.vue2.js +13 -13
  67. package/dist/features/Search/SearchButton.vue.d.ts +1 -0
  68. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  69. package/dist/features/Search/SearchButton.vue.js +36 -34
  70. package/dist/features/Search/SearchModal.vue.d.ts +1 -0
  71. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  72. package/dist/features/Search/SearchModal.vue.js +1 -1
  73. package/dist/features/Search/SearchModal.vue2.js +112 -112
  74. package/dist/features/Search/useSearchIndex.d.ts +4 -3
  75. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  76. package/dist/features/Search/useSearchIndex.js +119 -82
  77. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +2 -2
  78. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  79. package/dist/features/api-client-modal/ApiClientModal.vue.js +47 -38
  80. package/dist/features/api-client-modal/useApiClient.d.ts +334 -334
  81. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  82. package/dist/features/base-url/BaseUrl.vue.js +1 -1
  83. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  84. package/dist/features/example-responses/ExampleResponse.vue2.js +7 -7
  85. package/dist/features/example-responses/ExampleResponses.vue.d.ts +1 -1
  86. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  87. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  88. package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
  89. package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
  90. package/dist/features/sidebar/components/SidebarElement.vue2.js +23 -21
  91. package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -1
  92. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +2 -2
  93. package/dist/features/sidebar/components/SidebarHttpBadge.vue2.js +5 -6
  94. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  95. package/dist/features/traverse-schema/helpers/traverse-tags.js +26 -26
  96. package/dist/features/traverse-schema/index.d.ts +1 -1
  97. package/dist/features/traverse-schema/index.d.ts.map +1 -1
  98. package/dist/index.js +1 -1
  99. package/dist/libs/openapi.d.ts +15 -1
  100. package/dist/libs/openapi.d.ts.map +1 -1
  101. package/dist/libs/openapi.js +66 -47
  102. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  103. package/dist/stores/useHttpClientStore.js +2 -2
  104. package/dist/style.css +1 -1
  105. package/dist/types.d.ts +3 -3
  106. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +2 -2
  107. package/package.json +18 -18
  108. package/dist/hooks/useOperation.d.ts +0 -16
  109. package/dist/hooks/useOperation.d.ts.map +0 -1
  110. package/dist/hooks/useOperation.js +0 -27
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAmQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;cAuCf,WAAW,CAAC,QAAQ;gBAClB,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;cAJN,WAAW,CAAC,QAAQ;gBAClB,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;YADP,QAAQ,GAAG,SAAS;;AAnBjC,wBAuUK"}
1
+ {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAsQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;cAuCjB,WAAW,CAAC,QAAQ;gBAClB,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;cAJN,WAAW,CAAC,QAAQ;gBAClB,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;AApBlB,wBAmUK"}
@@ -1,18 +1,18 @@
1
- import { defineComponent as H, ref as v, watch as K, onMounted as j, withDirectives as A, createElementBlock as m, openBlock as a, normalizeClass as F, createBlock as p, createCommentVNode as b, Fragment as y, renderList as w, unref as o, withCtx as c, createVNode as _, createTextVNode as $, toDisplayString as q, vShow as G } from "vue";
1
+ import { defineComponent as M, ref as v, watch as x, onMounted as D, withDirectives as E, createElementBlock as m, openBlock as i, normalizeClass as H, createBlock as p, createCommentVNode as b, Fragment as g, renderList as w, unref as l, withCtx as f, createVNode as y, createTextVNode as K, toDisplayString as j, vShow as A } from "vue";
2
2
  import { scrollToId as T } from "@scalar/helpers/dom/scroll-to-id";
3
- import { lazyBus as J } from "./lazyBus.js";
4
- import { useNavState as P } from "../../../hooks/useNavState.js";
3
+ import { lazyBus as F } from "./lazyBus.js";
4
+ import { useNavState as $ } from "../../../hooks/useNavState.js";
5
5
  import { getModels as S } from "../../../libs/openapi.js";
6
- import Q from "../Tag/TagSection.vue.js";
7
- import R from "../../../features/Operation/Operation.vue.js";
8
- import U from "../../Section/SectionContainer.vue.js";
9
- import X from "../../Section/Section.vue.js";
10
- import Y from "../../Section/SectionContent.vue.js";
11
- import Z from "../../Section/SectionHeader.vue.js";
12
- import O from "../../Anchor/Anchor.vue.js";
13
- import ee from "../../Section/SectionHeaderTag.vue.js";
14
- import te from "../Schema/Schema.vue.js";
15
- const x = v(!1), he = /* @__PURE__ */ H({
6
+ import q from "../Tag/TagSection.vue.js";
7
+ import G from "../../../features/Operation/Operation.vue.js";
8
+ import J from "../../Section/SectionContainer.vue.js";
9
+ import P from "../../Section/Section.vue.js";
10
+ import Q from "../../Section/SectionContent.vue.js";
11
+ import R from "../../Section/SectionHeader.vue.js";
12
+ import U from "../../Anchor/Anchor.vue.js";
13
+ import X from "../../Section/SectionHeaderTag.vue.js";
14
+ import Y from "../Schema/Schema.vue.js";
15
+ const C = v(!1), ce = /* @__PURE__ */ M({
16
16
  __name: "Loading",
17
17
  props: {
18
18
  document: {},
@@ -21,112 +21,112 @@ const x = v(!1), he = /* @__PURE__ */ H({
21
21
  layout: { default: "modern" },
22
22
  parsedSpec: {}
23
23
  },
24
- setup(B) {
25
- const { document: h, collection: C, server: N, layout: z, parsedSpec: f } = B, L = v(!1), k = v([]), I = v([]), { getModelId: V, getSectionId: M, getTagId: D, hash: l, isIntersectionEnabled: g } = P(), W = v(!x.value && z !== "classic" && l.value);
26
- K(
24
+ setup(s) {
25
+ const z = v(!1), k = v([]), I = v([]), { getModelId: W, getSectionId: B, getTagId: N, hash: a, isIntersectionEnabled: h } = $(), L = v(!C.value && s.layout !== "classic" && a.value);
26
+ x(
27
27
  () => {
28
- var s;
29
- return (s = f.tags) == null ? void 0 : s.length;
28
+ var t;
29
+ return (t = s.parsedSpec.tags) == null ? void 0 : t.length;
30
30
  },
31
- (s) => {
32
- var e, u;
33
- if (!l.value || typeof s != "number" || !f.tags)
31
+ (t) => {
32
+ var e, d;
33
+ if (!a.value || typeof t != "number" || !s.parsedSpec.tags)
34
34
  return;
35
- const i = M();
36
- if (i.startsWith("tag")) {
37
- let t = 0;
38
- const d = ((e = f.tags) == null ? void 0 : e.findIndex((r) => D(r) === i)) ?? 0;
39
- t = (u = f.tags[d]) == null ? void 0 : u.operations.findIndex(
40
- ({ id: r }) => r === l.value
35
+ const n = B();
36
+ if (n.startsWith("tag")) {
37
+ let o = 0;
38
+ const c = ((e = s.parsedSpec.tags) == null ? void 0 : e.findIndex((u) => N(u) === n)) ?? 0;
39
+ o = (d = s.parsedSpec.tags[c]) == null ? void 0 : d.operations.findIndex(
40
+ ({ id: u }) => u === a.value
41
41
  );
42
- const n = f.tags[d];
43
- if (!n)
42
+ const r = s.parsedSpec.tags[c];
43
+ if (!r)
44
44
  return;
45
- n.name !== "default" && (L.value = i !== l.value && i.startsWith("tag")), k.value.push({
46
- ...n,
47
- lazyOperations: n.operations.slice(t, t + 2).map((r) => ({
48
- ...r,
45
+ r.name !== "default" && (z.value = n !== a.value && n.startsWith("tag")), k.value.push({
46
+ ...r,
47
+ lazyOperations: r.operations.slice(o, o + 2).map((u) => ({
48
+ ...u,
49
49
  // Prefix the id with lazy- to avoid collisions with the real ids
50
- id: "lazy-" + r.id
50
+ id: "lazy-" + u.id
51
51
  }))
52
- }), l.value.includes("/description/") && (typeof window < "u" && T(l.value), setTimeout(() => g.value = !0, 1e3));
53
- } else if (l.value.startsWith("model")) {
54
- const t = Object.keys(S(h) ?? {}), [, d] = l.value.toLowerCase().split("/"), n = l.value === "models" ? 0 : t.findIndex((r) => r.toLowerCase() === d);
55
- if (n === -1)
52
+ }), a.value.includes("/description/") && (typeof window < "u" && T(a.value), setTimeout(() => h.value = !0, 1e3));
53
+ } else if (a.value.startsWith("model")) {
54
+ const o = Object.keys(S(s.document) ?? {}), [, c] = a.value.toLowerCase().split("/"), r = a.value === "models" ? 0 : o.findIndex((u) => u.toLowerCase() === c);
55
+ if (r === -1)
56
56
  return;
57
- I.value = t.slice(n, n + 3);
57
+ I.value = o.slice(r, r + 3);
58
58
  } else
59
- typeof window < "u" && T(l.value), setTimeout(() => g.value = !0, 1e3);
59
+ typeof window < "u" && T(a.value), setTimeout(() => h.value = !0, 1e3);
60
60
  },
61
61
  { immediate: !0 }
62
62
  );
63
- const E = J.on(({ id: s }) => {
64
- const i = l.value;
65
- !i || s !== i || (E(), setTimeout(() => {
66
- typeof window < "u" && T(i), W.value = !1, x.value = !0, setTimeout(() => {
67
- g.value = !0;
63
+ const V = F.on(({ id: t }) => {
64
+ const n = a.value;
65
+ !n || t !== n || (V(), setTimeout(() => {
66
+ typeof window < "u" && T(n), L.value = !1, C.value = !0, setTimeout(() => {
67
+ h.value = !0;
68
68
  }, 1e3);
69
69
  }, 300));
70
70
  });
71
- return j(() => {
72
- l.value || (x.value = !0, setTimeout(() => {
73
- g.value = !0;
71
+ return D(() => {
72
+ a.value || (C.value = !0, setTimeout(() => {
73
+ h.value = !0;
74
74
  }, 1e3));
75
- }), (s, i) => A((a(), m("div", {
76
- class: F(["references-loading", {
77
- "references-loading-hidden-tag": L.value,
75
+ }), (t, n) => E((i(), m("div", {
76
+ class: H(["references-loading", {
77
+ "references-loading-hidden-tag": z.value,
78
78
  "references-loading-top-spacer": k.value.length
79
79
  }])
80
80
  }, [
81
- (a(!0), m(y, null, w(k.value, (e, u) => (a(), m(y, {
82
- key: e.name + u
81
+ (i(!0), m(g, null, w(k.value, (e, d) => (i(), m(g, {
82
+ key: e.name + d
83
83
  }, [
84
- e.operations && e.operations.length > 0 ? (a(), p(o(Q), {
84
+ e.operations && e.operations.length > 0 ? (i(), p(l(q), {
85
85
  key: 0,
86
- collection: C,
87
- spec: f,
86
+ collection: t.collection,
87
+ spec: t.parsedSpec,
88
88
  id: "lazy-{{ getTagId(tag) }}",
89
89
  tag: e
90
90
  }, {
91
- default: c(() => [
92
- (a(!0), m(y, null, w(e.lazyOperations, (t) => (a(), p(o(R), {
93
- path: t.path,
94
- method: t.httpVerb,
95
- isWebhook: t.isWebhook,
96
- key: t.id,
97
- id: t.id,
98
- collection: C,
99
- layout: z,
100
- server: N
101
- }, null, 8, ["path", "method", "isWebhook", "id"]))), 128))
91
+ default: f(() => [
92
+ (i(!0), m(g, null, w(e.lazyOperations, (o) => (i(), p(l(G), {
93
+ path: o.path,
94
+ method: o.httpVerb,
95
+ isWebhook: o.isWebhook,
96
+ key: o.id,
97
+ id: o.id,
98
+ collection: t.collection,
99
+ layout: t.layout,
100
+ server: t.server
101
+ }, null, 8, ["path", "method", "isWebhook", "id", "collection", "layout", "server"]))), 128))
102
102
  ]),
103
103
  _: 2
104
- }, 1032, ["tag"])) : b("", !0)
104
+ }, 1032, ["collection", "spec", "tag"])) : b("", !0)
105
105
  ], 64))), 128)),
106
- I.value.length ? (a(), p(o(U), { key: 0 }, {
107
- default: c(() => [
108
- (a(!0), m(y, null, w(I.value, (e) => (a(), p(o(X), {
106
+ I.value.length ? (i(), p(l(J), { key: 0 }, {
107
+ default: f(() => [
108
+ (i(!0), m(g, null, w(I.value, (e) => (i(), p(l(P), {
109
109
  key: e,
110
110
  label: e
111
111
  }, {
112
- default: c(() => {
113
- var u;
112
+ default: f(() => {
113
+ var d;
114
114
  return [
115
- (u = o(S)(h)) != null && u[e] ? (a(), p(o(Y), { key: 0 }, {
116
- default: c(() => {
117
- var t;
115
+ (d = l(S)(t.document)) != null && d[e] ? (i(), p(l(Q), { key: 0 }, {
116
+ default: f(() => {
117
+ var o;
118
118
  return [
119
- _(o(Z), null, {
120
- default: c(() => [
121
- _(o(O), {
122
- id: "lazy-" + o(V)({ name: e })
119
+ y(l(R), null, {
120
+ default: f(() => [
121
+ y(l(U), {
122
+ id: "lazy-" + l(W)({ name: e })
123
123
  }, {
124
- default: c(() => [
125
- _(o(ee), { level: 2 }, {
126
- default: c(() => {
127
- var d;
124
+ default: f(() => [
125
+ y(l(X), { level: 2 }, {
126
+ default: f(() => {
127
+ var c;
128
128
  return [
129
- $(q(((d = o(S)(h)) == null ? void 0 : d[e]).title ?? e), 1)
129
+ K(j(((c = l(S)(t.document)) == null ? void 0 : c[e]).title ?? e), 1)
130
130
  ];
131
131
  }),
132
132
  _: 2
@@ -137,10 +137,10 @@ const x = v(!1), he = /* @__PURE__ */ H({
137
137
  ]),
138
138
  _: 2
139
139
  }, 1024),
140
- _(o(te), {
140
+ y(l(Y), {
141
141
  name: e,
142
142
  noncollapsible: "",
143
- value: (t = o(S)(h)) == null ? void 0 : t[e]
143
+ value: (o = l(S)(t.document)) == null ? void 0 : o[e]
144
144
  }, null, 8, ["name", "value"])
145
145
  ];
146
146
  }),
@@ -154,10 +154,10 @@ const x = v(!1), he = /* @__PURE__ */ H({
154
154
  _: 1
155
155
  })) : b("", !0)
156
156
  ], 2)), [
157
- [G, W.value]
157
+ [A, L.value]
158
158
  ]);
159
159
  }
160
160
  });
161
161
  export {
162
- he as default
162
+ ce as default
163
163
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAuHA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAmBxD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AAqMF,wBAMG"}
1
+ {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AA2HA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAmBxD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AA6MF,wBAMG"}
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4228514f"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d574132"]]);
5
5
  export {
6
- p as default
6
+ s as default
7
7
  };
@@ -1,88 +1,91 @@
1
- import { defineComponent as y, useId as M, computed as u, createBlock as m, createCommentVNode as f, openBlock as r, unref as e, withCtx as l, createVNode as o, createElementVNode as k, createTextVNode as N, normalizeClass as g, createElementBlock as I, Fragment as C, renderList as L } from "vue";
2
- import { ScalarErrorBoundary as B } from "@scalar/components";
3
- import { useNavState as H } from "../../../hooks/useNavState.js";
4
- import w from "../../ShowMoreButton.vue.js";
5
- import { useSidebar as E } from "../../../features/sidebar/hooks/useSidebar.js";
6
- import O from "../../Section/SectionContainer.vue.js";
7
- import V from "../../Section/Section.vue.js";
8
- import z from "../../Section/SectionHeader.vue.js";
9
- import p from "../../Section/SectionHeaderTag.vue.js";
10
- import h from "../Lazy/Lazy.vue2.js";
11
- import A from "../../Section/CompactSection.vue.js";
12
- import T from "../Schema/Schema.vue.js";
13
- import j from "../Schema/SchemaHeading.vue.js";
14
- const S = 10, U = /* @__PURE__ */ y({
1
+ import { defineComponent as M, useId as k, computed as f, createBlock as m, createCommentVNode as p, openBlock as r, unref as e, withCtx as t, createVNode as s, createElementVNode as N, createTextVNode as g, normalizeClass as I, createElementBlock as C, Fragment as L, renderList as B } from "vue";
2
+ import { ScalarErrorBoundary as H } from "@scalar/components";
3
+ import { useNavState as w } from "../../../hooks/useNavState.js";
4
+ import E from "../../ShowMoreButton.vue.js";
5
+ import { useSidebar as O } from "../../../features/sidebar/hooks/useSidebar.js";
6
+ import V from "../../Section/SectionContainer.vue.js";
7
+ import z from "../../Section/Section.vue.js";
8
+ import A from "../../Section/SectionHeader.vue.js";
9
+ import h from "../../Section/SectionHeaderTag.vue.js";
10
+ import S from "../Lazy/Lazy.vue2.js";
11
+ import T from "../../Section/CompactSection.vue.js";
12
+ import j from "../Schema/Schema.vue.js";
13
+ import D from "../Schema/SchemaHeading.vue.js";
14
+ const v = 10, Z = /* @__PURE__ */ M({
15
15
  __name: "Models",
16
16
  props: {
17
17
  schemas: {}
18
18
  },
19
- setup(v) {
20
- const i = v, n = M(), { collapsedSidebarItems: _ } = E(), { getModelId: a } = H(), d = u(
21
- () => Object.keys(i.schemas ?? {}).length <= S || _[a()]
22
- ), b = u(() => {
23
- const t = Object.keys(i.schemas ?? {});
24
- return d.value ? t : t.slice(0, S);
19
+ setup(b) {
20
+ const i = b, n = k(), { collapsedSidebarItems: _ } = O(), { getModelId: a } = w(), d = f(
21
+ () => Object.keys(i.schemas ?? {}).length <= v || _[a()]
22
+ ), y = f(() => {
23
+ const l = Object.keys(i.schemas ?? {});
24
+ return d.value ? l : l.slice(0, v);
25
25
  });
26
- return (t, c) => t.schemas ? (r(), m(e(O), {
26
+ return (l, c) => l.schemas ? (r(), m(e(V), {
27
27
  key: 0,
28
28
  id: "models"
29
29
  }, {
30
- default: l(() => [
31
- o(e(V), { "aria-labelledby": e(n) }, {
32
- default: l(() => [
33
- o(e(z), null, {
34
- default: l(() => [
35
- o(e(p), {
30
+ default: t(() => [
31
+ s(e(z), { "aria-labelledby": e(n) }, {
32
+ default: t(() => [
33
+ s(e(A), null, {
34
+ default: t(() => [
35
+ s(e(h), {
36
36
  id: e(n),
37
37
  level: 2
38
38
  }, {
39
- default: l(() => c[0] || (c[0] = [
40
- N(" Models ")
39
+ default: t(() => c[0] || (c[0] = [
40
+ g(" Models ")
41
41
  ])),
42
42
  _: 1
43
43
  }, 8, ["id"])
44
44
  ]),
45
45
  _: 1
46
46
  }),
47
- o(e(h), {
47
+ s(e(S), {
48
48
  id: "models",
49
49
  isLazy: !1
50
50
  }),
51
- k("div", {
52
- class: g(["models-list", { "models-list-truncated": !d.value }])
51
+ N("div", {
52
+ class: I(["models-list", { "models-list-truncated": !d.value }])
53
53
  }, [
54
- (r(!0), I(C, null, L(b.value, (s) => (r(), m(e(h), {
55
- id: e(a)({ name: s }),
56
- key: s,
54
+ (r(!0), C(L, null, B(y.value, (o) => (r(), m(e(S), {
55
+ id: e(a)({ name: o }),
56
+ key: o,
57
57
  isLazy: ""
58
58
  }, {
59
- default: l(() => [
60
- o(e(A), {
61
- id: e(a)({ name: s }),
59
+ default: t(() => [
60
+ s(e(T), {
61
+ id: e(a)({ name: o }),
62
62
  class: "models-list-item",
63
- label: s
63
+ label: o
64
64
  }, {
65
- heading: l(() => [
66
- o(e(p), { level: 3 }, {
67
- default: l(() => [
68
- o(e(j), {
69
- name: t.schemas[s].title ?? s,
70
- value: t.schemas[s]
71
- }, null, 8, ["name", "value"])
72
- ]),
65
+ heading: t(() => [
66
+ s(e(h), { level: 3 }, {
67
+ default: t(() => {
68
+ var u;
69
+ return [
70
+ s(e(D), {
71
+ name: l.schemas[o].title ?? ((u = l.schemas[o].xml) == null ? void 0 : u.name) ?? o,
72
+ value: l.schemas[o]
73
+ }, null, 8, ["name", "value"])
74
+ ];
75
+ }),
73
76
  _: 2
74
77
  }, 1024)
75
78
  ]),
76
- default: l(() => [
77
- o(e(B), null, {
78
- default: l(() => [
79
- o(e(T), {
79
+ default: t(() => [
80
+ s(e(H), null, {
81
+ default: t(() => [
82
+ s(e(j), {
80
83
  noncollapsible: "",
81
84
  hideHeading: !0,
82
85
  hideModelNames: !0,
83
- schemas: t.schemas,
86
+ schemas: l.schemas,
84
87
  level: 1,
85
- value: t.schemas[s]
88
+ value: l.schemas[o]
86
89
  }, null, 8, ["schemas", "value"])
87
90
  ]),
88
91
  _: 2
@@ -94,7 +97,7 @@ const S = 10, U = /* @__PURE__ */ y({
94
97
  _: 2
95
98
  }, 1032, ["id"]))), 128))
96
99
  ], 2),
97
- d.value ? f("", !0) : (r(), m(w, {
100
+ d.value ? p("", !0) : (r(), m(E, {
98
101
  key: 0,
99
102
  id: e(a)(),
100
103
  class: "show-more-models"
@@ -104,9 +107,9 @@ const S = 10, U = /* @__PURE__ */ y({
104
107
  }, 8, ["aria-labelledby"])
105
108
  ]),
106
109
  _: 1
107
- })) : f("", !0);
110
+ })) : p("", !0);
108
111
  }
109
112
  });
110
113
  export {
111
- U as default
114
+ Z as default
112
115
  };
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ value: any;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ export default _default;
6
+ //# sourceMappingURL=RenderString.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderString.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/RenderString.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,GAAG,CAAA;CACX,CAAC;;AAwEF,wBAMG"}
@@ -0,0 +1,14 @@
1
+ import { defineComponent as t, computed as u, toDisplayString as r } from "vue";
2
+ const f = /* @__PURE__ */ t({
3
+ __name: "RenderString",
4
+ props: {
5
+ value: {}
6
+ },
7
+ setup(e) {
8
+ const n = u(() => e.value === "" ? "''" : e.value === null ? "null" : e.value === void 0 ? "undefined" : e.value);
9
+ return (a, l) => r(n.value);
10
+ }
11
+ });
12
+ export {
13
+ f as default
14
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./RenderString.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -2,7 +2,7 @@ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
2
  import type { Schemas } from '../../../features/Operation/types/schemas';
3
3
  type __VLS_Props = {
4
4
  value?: OpenAPIV3_1.OperationObject | OpenAPIV3_1.SchemaObject | OpenAPIV3_1.ArraySchemaObject | OpenAPIV3_1.NonArraySchemaObject | OpenAPIV3_1.SchemaObject | OpenAPIV3_1.ArraySchemaObject | OpenAPIV3_1.NonArraySchemaObject;
5
- /** Track how deep weve gone */
5
+ /** Track how deep we've gone */
6
6
  level?: number;
7
7
  name?: string;
8
8
  /** A tighter layout with less borders and without a heading */
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAqfA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAQjE,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,WAAW,CAAC,eAAe,GAC3B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,GAChC,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4BAA4B;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,kCAAkC;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;;;;;;WAtBQ,MAAM;oBAMG,OAAO;oBAKP,OAAO;;AA+lB5B,wBAQG"}
1
+ {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AA+fA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAQjE,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,WAAW,CAAC,eAAe,GAC3B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,GAChC,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4BAA4B;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,kCAAkC;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;;;;;;WAtBQ,MAAM;oBAMG,OAAO;oBAKP,OAAO;;AA0mB5B,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Schema.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f1fb3dcb"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e2ccf7a4"]]);
5
5
  export {
6
- a as default
6
+ r as default
7
7
  };