@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,33 +1,35 @@
1
- import { defineComponent as Z, computed as y, createBlock as h, openBlock as l, resolveDynamicComponent as M, normalizeClass as I, withCtx as m, createCommentVNode as r, createElementBlock as o, createVNode as a, createSlots as G, createTextVNode as D, toDisplayString as c, unref as i, Fragment as d, renderList as k, createElementVNode as f } from "vue";
2
- import { Disclosure as J, DisclosurePanel as K, DisclosureButton as Q } from "@headlessui/vue";
3
- import { ScalarMarkdown as H, ScalarIcon as W } from "@scalar/components";
4
- import { optimizeValueForDisplay as X, compositions as Y } from "./helpers/optimizeValueForDisplay.js";
5
- import L from "./Schema.vue.js";
6
- import O from "./SchemaComposition.vue.js";
7
- import x from "./SchemaPropertyHeading.vue.js";
8
- import ee from "../../SpecificationExtension/SpecificationExtension.vue.js";
9
- const ne = {
1
+ import { defineComponent as W, computed as d, inject as Y, createBlock as u, openBlock as n, resolveDynamicComponent as _, normalizeClass as z, withCtx as y, createCommentVNode as r, createElementBlock as o, createVNode as s, createSlots as x, createTextVNode as B, toDisplayString as h, unref as m, Fragment as f, renderList as M, createElementVNode as g } from "vue";
2
+ import { Disclosure as ee, DisclosurePanel as ie, DisclosureButton as ne } from "@headlessui/vue";
3
+ import { ScalarMarkdown as E, ScalarIcon as ae } from "@scalar/components";
4
+ import { optimizeValueForDisplay as te, compositions as oe } from "./helpers/optimizeValueForDisplay.js";
5
+ import { DISCRIMINATOR_CONTEXT as le } from "../../../hooks/useDiscriminator.js";
6
+ import A from "./Schema.vue.js";
7
+ import R from "./SchemaComposition.vue.js";
8
+ import re from "./SchemaDiscriminator.vue.js";
9
+ import se from "./SchemaPropertyHeading.vue.js";
10
+ import me from "../../SpecificationExtension/SpecificationExtension.vue.js";
11
+ const pe = {
10
12
  key: 1,
11
13
  class: "property-description"
12
- }, te = {
14
+ }, de = {
13
15
  key: 2,
14
16
  class: "property-description"
15
- }, le = {
17
+ }, ce = {
16
18
  key: 3,
17
19
  class: "property-enum"
18
- }, se = {
20
+ }, ue = {
19
21
  key: 0,
20
22
  class: "property-list"
21
- }, oe = { class: "property-heading" }, ae = { class: "property-name" }, ie = { class: "property-description" }, re = {
23
+ }, ye = { class: "property-heading" }, he = { class: "property-name" }, fe = { class: "property-description" }, ve = {
22
24
  key: 1,
23
25
  class: "property-enum-values"
24
- }, pe = { class: "property-enum-value-label" }, me = { class: "property-enum-value-label" }, ce = {
26
+ }, ge = { class: "property-enum-value-label" }, be = { class: "property-enum-value-label" }, ke = {
25
27
  key: 4,
26
28
  class: "children"
27
- }, de = {
29
+ }, Ne = {
28
30
  key: 0,
29
31
  class: "children"
30
- }, Be = /* @__PURE__ */ Z({
32
+ }, Ce = /* @__PURE__ */ W({
31
33
  __name: "SchemaProperty",
32
34
  props: {
33
35
  is: {},
@@ -41,11 +43,16 @@ const ne = {
41
43
  additional: { type: Boolean },
42
44
  pattern: { type: Boolean },
43
45
  withExamples: { type: Boolean, default: !0 },
46
+ hideModelNames: { type: Boolean, default: !1 },
44
47
  schemas: {},
45
- hideHeading: { type: Boolean }
48
+ hideHeading: { type: Boolean },
49
+ discriminatorMapping: {},
50
+ discriminatorPropertyName: {},
51
+ isDiscriminator: { type: Boolean }
46
52
  },
47
- setup(_) {
48
- const $ = _, S = {
53
+ emits: ["update:modelValue"],
54
+ setup(L, { emit: Z }) {
55
+ const S = L, X = Z, H = {
49
56
  integer: {
50
57
  _default: "Integer numbers.",
51
58
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -58,113 +65,122 @@ const ne = {
58
65
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
59
66
  binary: "binary data, used to describe files"
60
67
  }
61
- }, B = (e, t) => t != null && t.properties || t != null && t.additionalProperties || t != null && t.patternProperties || t != null && t.allOf ? null : e || (t == null ? void 0 : t.description) || null, E = (e) => !e || !S[e.type] ? null : S[e.type][e.format || "_default"], p = (e) => {
62
- var t;
63
- return (e == null ? void 0 : e.enum) || ((t = e == null ? void 0 : e.items) == null ? void 0 : t.enum) || [];
64
- }, C = y(
65
- () => p(n.value).length > 9
66
- ), P = y(() => C.value ? 5 : 9), R = y(
67
- () => p(n.value).slice(0, P.value)
68
- ), T = y(
69
- () => p(n.value).slice(P.value)
70
- ), n = y(() => X($.value)), U = (e, t, g, b, v) => t || g || b || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || v;
71
- return (e, t) => {
72
- var g;
73
- return l(), h(M(e.is ?? "li"), {
74
- class: I(["property", [
75
- (B(e.description, n.value), ""),
68
+ }, D = (e, a) => a != null && a.properties || a != null && a.additionalProperties || a != null && a.patternProperties || a != null && a.allOf ? null : e || (a == null ? void 0 : a.description) || null, V = (e) => !e || !H[e.type] ? null : H[e.type][e.format || "_default"], c = (e) => {
69
+ var a;
70
+ return (e == null ? void 0 : e.enum) || ((a = e == null ? void 0 : e.items) == null ? void 0 : a.enum) || [];
71
+ }, O = d(
72
+ () => c(i.value).length > 9
73
+ ), j = d(() => O.value ? 5 : 9), G = d(
74
+ () => c(i.value).slice(0, j.value)
75
+ ), J = d(
76
+ () => c(i.value).slice(j.value)
77
+ ), i = d(() => te(S.value)), p = Y(le, null), l = d(() => {
78
+ var e;
79
+ return (e = p == null ? void 0 : p.value) != null && e.mergedSchema ? p.value.mergedSchema : i.value;
80
+ }), K = d(() => {
81
+ var e;
82
+ return ((e = p == null ? void 0 : p.value) == null ? void 0 : e.selectedType) || (S.discriminatorMapping ? Object.keys(S.discriminatorMapping)[0] : "");
83
+ }), Q = (e, a, b, k, N) => a || b || k || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || N, P = (e) => {
84
+ X("update:modelValue", e);
85
+ };
86
+ return (e, a) => {
87
+ var b;
88
+ return n(), u(_(e.is ?? "li"), {
89
+ class: z(["property", [
90
+ (D(e.description, i.value), ""),
76
91
  `property--level-${e.level}`,
77
92
  {
78
93
  "property--compact": e.compact,
79
- "property--deprecated": (g = n.value) == null ? void 0 : g.deprecated
94
+ "property--deprecated": (b = i.value) == null ? void 0 : b.deprecated
80
95
  }
81
96
  ]])
82
97
  }, {
83
- default: m(() => {
84
- var b, v, w, q, F, N, V, j, z;
98
+ default: y(() => {
99
+ var k, N, C, w, I, T, q, F, U;
85
100
  return [
86
- U(
87
- n.value,
101
+ Q(
102
+ i.value,
88
103
  e.name,
89
104
  e.additional,
90
105
  e.pattern,
91
106
  e.required
92
- ) ? (l(), h(x, {
107
+ ) ? (n(), u(se, {
93
108
  key: 0,
94
109
  additional: e.additional,
95
- enum: p(n.value).length > 0,
110
+ enum: c(i.value).length > 0,
96
111
  pattern: e.pattern,
97
112
  required: e.required,
98
- value: n.value,
99
- schemas: e.schemas
100
- }, G({ _: 2 }, [
113
+ value: i.value,
114
+ schemas: e.schemas,
115
+ hideModelNames: e.hideModelNames
116
+ }, x({ _: 2 }, [
101
117
  e.name ? {
102
118
  name: "name",
103
- fn: m(() => [
104
- D(c(e.name), 1)
119
+ fn: y(() => [
120
+ B(h(e.name), 1)
105
121
  ]),
106
122
  key: "0"
107
123
  } : void 0,
108
- (b = n.value) != null && b.example ? {
124
+ (k = i.value) != null && k.example ? {
109
125
  name: "example",
110
- fn: m(() => [
111
- D(" Example: " + c(n.value.example), 1)
126
+ fn: y(() => [
127
+ B(" Example: " + h(i.value.example), 1)
112
128
  ]),
113
129
  key: "1"
114
130
  } : void 0
115
- ]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas"])) : r("", !0),
116
- B(e.description, n.value) ? (l(), o("div", ne, [
117
- a(i(H), {
118
- value: B(e.description, n.value)
131
+ ]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas", "hideModelNames"])) : r("", !0),
132
+ D(e.description, i.value) ? (n(), o("div", pe, [
133
+ s(m(E), {
134
+ value: D(e.description, i.value)
119
135
  }, null, 8, ["value"])
120
- ])) : E(n.value) ? (l(), o("div", te, [
121
- a(i(H), {
122
- value: E(n.value) || ""
136
+ ])) : V(i.value) ? (n(), o("div", de, [
137
+ s(m(E), {
138
+ value: V(i.value) || ""
123
139
  }, null, 8, ["value"])
124
140
  ])) : r("", !0),
125
- ((v = p(n.value)) == null ? void 0 : v.length) > 0 ? (l(), o("div", le, [
126
- Array.isArray((w = n.value) == null ? void 0 : w["x-enumDescriptions"]) ? (l(), o("div", se, [
127
- (l(!0), o(d, null, k(p(n.value), (s) => (l(), o("div", {
128
- key: s,
141
+ ((N = c(i.value)) == null ? void 0 : N.length) > 0 ? (n(), o("div", ce, [
142
+ Array.isArray((C = i.value) == null ? void 0 : C["x-enumDescriptions"]) ? (n(), o("div", ue, [
143
+ (n(!0), o(f, null, M(c(i.value), (t) => (n(), o("div", {
144
+ key: t,
129
145
  class: "property"
130
146
  }, [
131
- f("div", oe, [
132
- f("div", ae, c(s), 1)
147
+ g("div", ye, [
148
+ g("div", he, h(t), 1)
133
149
  ]),
134
- f("div", ie, [
135
- a(i(H), {
136
- value: n.value["x-enumDescriptions"][s]
150
+ g("div", fe, [
151
+ s(m(E), {
152
+ value: i.value["x-enumDescriptions"][t]
137
153
  }, null, 8, ["value"])
138
154
  ])
139
155
  ]))), 128))
140
- ])) : (l(), o("ul", re, [
141
- (l(!0), o(d, null, k(R.value, (s) => (l(), o("li", {
142
- key: s,
156
+ ])) : (n(), o("ul", ve, [
157
+ (n(!0), o(f, null, M(G.value, (t) => (n(), o("li", {
158
+ key: t,
143
159
  class: "property-enum-value"
144
160
  }, [
145
- f("span", pe, c(s), 1)
161
+ g("span", ge, h(t), 1)
146
162
  ]))), 128)),
147
- C.value ? (l(), h(i(J), { key: 0 }, {
148
- default: m(({ open: s }) => [
149
- a(i(K), null, {
150
- default: m(() => [
151
- (l(!0), o(d, null, k(T.value, (u) => (l(), o("li", {
152
- key: u,
163
+ O.value ? (n(), u(m(ee), { key: 0 }, {
164
+ default: y(({ open: t }) => [
165
+ s(m(ie), null, {
166
+ default: y(() => [
167
+ (n(!0), o(f, null, M(J.value, (v) => (n(), o("li", {
168
+ key: v,
153
169
  class: "property-enum-value"
154
170
  }, [
155
- f("span", me, c(u), 1)
171
+ g("span", be, h(v), 1)
156
172
  ]))), 128))
157
173
  ]),
158
174
  _: 1
159
175
  }),
160
- a(i(Q), { class: "enum-toggle-button" }, {
161
- default: m(() => [
162
- a(i(W), {
163
- class: I(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": s }]),
176
+ s(m(ne), { class: "enum-toggle-button" }, {
177
+ default: y(() => [
178
+ s(m(ae), {
179
+ class: z(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": t }]),
164
180
  icon: "Add",
165
181
  size: "sm"
166
182
  }, null, 8, ["class"]),
167
- D(" " + c(s ? "Hide values" : "Show all values"), 1)
183
+ B(" " + h(t ? "Hide values" : "Show all values"), 1)
168
184
  ]),
169
185
  _: 2
170
186
  }, 1024)
@@ -173,55 +189,69 @@ const ne = {
173
189
  })) : r("", !0)
174
190
  ]))
175
191
  ])) : r("", !0),
176
- ((q = n.value) == null ? void 0 : q.type) === "object" && ((F = n.value) != null && F.properties || (N = n.value) != null && N.additionalProperties) ? (l(), o("div", ce, [
177
- a(L, {
192
+ ((w = i.value) == null ? void 0 : w.type) === "object" && ((I = i.value) != null && I.properties || (T = i.value) != null && T.additionalProperties) ? (n(), o("div", ke, [
193
+ s(A, {
178
194
  compact: e.compact,
179
195
  level: e.level + 1,
180
196
  name: e.name,
181
197
  noncollapsible: e.noncollapsible,
182
- value: n.value,
183
- schemas: e.schemas
184
- }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "schemas"])
198
+ value: l.value,
199
+ resolvedSchema: l.value,
200
+ discriminatorMapping: e.discriminatorMapping,
201
+ discriminatorPropertyName: e.discriminatorPropertyName,
202
+ schemas: e.schemas,
203
+ "onUpdate:modelValue": P
204
+ }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
185
205
  ])) : r("", !0),
186
- (V = n.value) != null && V.items && typeof n.value.items == "object" && "type" in n.value.items && typeof n.value.items.type == "string" ? (l(), o(d, { key: 5 }, [
187
- ["object"].includes((z = (j = n.value) == null ? void 0 : j.items) == null ? void 0 : z.type) ? (l(), o("div", de, [
188
- a(L, {
206
+ (q = i.value) != null && q.items && typeof i.value.items == "object" ? (n(), o(f, { key: 5 }, [
207
+ "type" in i.value.items && ["object"].includes((U = (F = i.value) == null ? void 0 : F.items) == null ? void 0 : U.type) || "$ref" in i.value.items || "discriminator" in i.value.items || "allOf" in i.value.items || "oneOf" in i.value.items || "anyOf" in i.value.items ? (n(), o("div", Ne, [
208
+ s(A, {
189
209
  compact: e.compact,
190
210
  level: e.level + 1,
191
211
  name: e.name,
192
212
  noncollapsible: e.noncollapsible,
193
- value: n.value.items,
194
- schemas: e.schemas
195
- }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "schemas"])
213
+ value: l.value && typeof l.value == "object" && "items" in l.value ? l.value.items : i.value.items,
214
+ resolvedSchema: l.value && typeof l.value == "object" && "items" in l.value ? l.value.items : i.value.items,
215
+ discriminatorMapping: e.discriminatorMapping,
216
+ discriminatorPropertyName: e.discriminatorPropertyName,
217
+ schemas: e.schemas,
218
+ "onUpdate:modelValue": P
219
+ }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
196
220
  ])) : r("", !0)
197
221
  ], 64)) : r("", !0),
198
- (l(!0), o(d, null, k(i(Y), (s) => {
199
- var u, A;
200
- return l(), o(d, { key: s }, [
201
- (u = n.value) != null && u[s] ? (l(), h(O, {
222
+ (n(!0), o(f, null, M(m(oe), (t) => {
223
+ var v, $;
224
+ return n(), o(f, { key: t }, [
225
+ (v = i.value) != null && v[t] ? (n(), u(R, {
202
226
  key: 0,
203
227
  compact: e.compact,
204
- composition: s,
228
+ composition: t,
205
229
  hideHeading: e.hideHeading,
206
230
  level: e.level,
207
231
  name: e.name,
208
232
  noncollapsible: e.noncollapsible,
209
233
  schemas: e.schemas,
210
- value: n.value
211
- }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (A = n.value) != null && A.items && typeof s == "string" && typeof n.value.items == "object" && !("type" in n.value.items) && s in n.value.items ? (l(), h(O, {
234
+ value: i.value
235
+ }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : ($ = i.value) != null && $.items && typeof t == "string" && typeof i.value.items == "object" && !("type" in i.value.items) && t in i.value.items ? (n(), u(R, {
212
236
  key: 1,
213
237
  compact: e.compact,
214
- composition: s,
238
+ composition: t,
215
239
  hideHeading: e.hideHeading,
216
240
  level: e.level,
217
241
  name: e.name,
218
242
  noncollapsible: e.noncollapsible,
219
243
  schemas: e.schemas,
220
- value: n.value.items
244
+ value: i.value.items
221
245
  }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : r("", !0)
222
246
  ], 64);
223
247
  }), 128)),
224
- a(i(ee), { value: n.value }, null, 8, ["value"])
248
+ e.isDiscriminator && e.discriminatorMapping && e.compact ? (n(), u(re, {
249
+ key: 6,
250
+ "discriminator-mapping": e.discriminatorMapping,
251
+ discriminator: K.value,
252
+ "onUpdate:modelValue": P
253
+ }, null, 8, ["discriminator-mapping", "discriminator"])) : r("", !0),
254
+ s(m(me), { value: i.value }, null, 8, ["value"])
225
255
  ];
226
256
  }),
227
257
  _: 1
@@ -230,5 +260,5 @@ const ne = {
230
260
  }
231
261
  });
232
262
  export {
233
- Be as default
263
+ Ce as default
234
264
  };
@@ -1,4 +1,4 @@
1
- import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
1
+ import type { Schemas } from '../../../features/Operation/types/schemas';
2
2
  type __VLS_Props = {
3
3
  value?: Record<string, any>;
4
4
  enum?: boolean;
@@ -6,7 +6,8 @@ type __VLS_Props = {
6
6
  additional?: boolean;
7
7
  pattern?: boolean;
8
8
  withExamples?: boolean;
9
- schemas?: OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
9
+ hideModelNames?: boolean;
10
+ schemas?: Schemas;
10
11
  };
11
12
  declare function __VLS_template(): {
12
13
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAsYA,OAAO,KAAK,EAEV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAgB9B,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;AAkJF,iBAAS,cAAc;WA4UT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAiBD,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":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA0ZA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAQjE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA0KF,iBAAS,cAAc;WA4UT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAiBD,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 "./SchemaPropertyHeading.vue2.js";
2
2
  /* empty css */
3
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ce6ed2af"]]);
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-715a0486"]]);
5
5
  export {
6
6
  m as default
7
7
  };