@scalar/api-reference 1.35.2 → 1.35.4

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 (166) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/browser/standalone.js +9636 -9786
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts +2 -1
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +14 -11
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +70 -72
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +3 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.d.ts +0 -2
  13. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Content.vue.js +80 -80
  15. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +5 -2
  16. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  18. package/dist/components/Content/Models/ClassicLayout.vue2.js +43 -45
  19. package/dist/components/Content/Models/ClassicLayout.vue3.js +2 -2
  20. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  21. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/Models.vue.js +27 -20
  23. package/dist/components/Content/Models/ModernLayout.vue.d.ts +5 -2
  24. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
  26. package/dist/components/Content/Models/ModernLayout.vue2.js +48 -52
  27. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +3 -2
  28. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Operations/TraversedEntry.vue.js +33 -32
  30. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +2 -2
  31. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +1 -1
  33. package/dist/components/Content/Schema/Schema.vue.d.ts +10 -22
  34. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  36. package/dist/components/Content/Schema/Schema.vue2.js +93 -141
  37. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +19 -4
  38. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/SchemaComposition.vue.js +83 -138
  40. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +2 -13
  41. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +2 -2
  43. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +66 -92
  44. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  45. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  47. package/dist/components/Content/Schema/SchemaHeading.vue2.js +19 -17
  48. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +9 -14
  49. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  50. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +62 -75
  51. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +8 -13
  52. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  53. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  54. package/dist/components/Content/Schema/SchemaProperty.vue2.js +120 -140
  55. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +1 -1
  56. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  57. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
  58. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +9 -4
  59. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  60. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  61. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +173 -204
  62. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts +11 -0
  63. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -0
  64. package/dist/components/Content/Schema/helpers/get-ref-name.js +11 -0
  65. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +13 -3
  66. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
  67. package/dist/components/Content/Schema/helpers/get-schema-type.js +34 -13
  68. package/dist/components/Content/Schema/helpers/is-type-object.d.ts +4 -2
  69. package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -1
  70. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -4
  71. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  72. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +130 -84
  73. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts +5 -5
  74. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  75. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +40 -31
  76. package/dist/components/Content/Schema/helpers/schema-composition.d.ts +0 -8
  77. package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -1
  78. package/dist/components/Content/Schema/helpers/schema-composition.js +2 -6
  79. package/dist/components/Content/Schema/helpers/schema-name.d.ts +8 -17
  80. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  81. package/dist/components/Content/Schema/helpers/schema-name.js +24 -33
  82. package/dist/features/Operation/Operation.vue.d.ts +3 -4
  83. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  84. package/dist/features/Operation/Operation.vue.js +54 -73
  85. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +10 -11
  86. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/components/ContentTypeSelect.vue.js +35 -43
  88. package/dist/features/Operation/components/{ParameterHeaders.vue.d.ts → Header.vue.d.ts} +4 -5
  89. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -0
  90. package/dist/features/Operation/components/Header.vue.js +23 -0
  91. package/dist/features/Operation/components/Header.vue2.js +4 -0
  92. package/dist/features/Operation/components/Headers.vue.d.ts +8 -0
  93. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -0
  94. package/dist/features/Operation/components/Headers.vue.js +7 -0
  95. package/dist/features/Operation/components/Headers.vue2.js +61 -0
  96. package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -10
  97. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  98. package/dist/features/Operation/components/OperationParameters.vue.js +23 -33
  99. package/dist/features/Operation/components/OperationResponses.vue.d.ts +3 -6
  100. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  101. package/dist/features/Operation/components/OperationResponses.vue.js +22 -19
  102. package/dist/features/Operation/components/ParameterList.vue.d.ts +3 -10
  103. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/components/ParameterList.vue.js +35 -5
  105. package/dist/features/Operation/components/ParameterList.vue2.js +2 -38
  106. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +4 -10
  107. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  109. package/dist/features/Operation/components/ParameterListItem.vue2.js +78 -74
  110. package/dist/features/Operation/components/RequestBody.vue.d.ts +3 -8
  111. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  112. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  113. package/dist/features/Operation/components/RequestBody.vue2.js +78 -82
  114. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +0 -4
  115. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  116. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  117. package/dist/features/Operation/components/callbacks/Callback.vue2.js +35 -36
  118. package/dist/features/Operation/components/callbacks/Callback.vue3.js +2 -2
  119. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +0 -2
  120. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  121. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +13 -15
  122. package/dist/features/Operation/helpers/combine-params.d.ts +1 -1
  123. package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -1
  124. package/dist/features/Operation/helpers/combine-params.js +2 -2
  125. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -9
  126. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  127. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  128. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +75 -82
  129. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -10
  130. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  131. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  132. package/dist/features/Operation/layouts/ModernLayout.vue2.js +96 -103
  133. package/dist/features/api-client-modal/useApiClient.d.ts +90 -90
  134. package/dist/index.js +1 -1
  135. package/dist/libs/openapi.d.ts +1 -13
  136. package/dist/libs/openapi.d.ts.map +1 -1
  137. package/dist/libs/openapi.js +39 -56
  138. package/dist/style.css +1 -1
  139. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +10 -4
  140. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  141. package/dist/v2/ApiReferenceWorkspace.vue.js +22 -18
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
  143. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  144. package/package.json +13 -13
  145. package/dist/components/Content/Schema/Schema.preview.d.ts +0 -1078
  146. package/dist/components/Content/Schema/Schema.preview.d.ts.map +0 -1
  147. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +0 -12
  148. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
  149. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -49
  150. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -4
  151. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +0 -13
  152. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +0 -1
  153. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +0 -1
  154. package/dist/features/Operation/components/ParameterHeaders.vue.js +0 -7
  155. package/dist/features/Operation/components/ParameterHeaders.vue2.js +0 -64
  156. package/dist/features/Operation/components/ParameterList.vue3.js +0 -4
  157. package/dist/features/Operation/hooks/useResponses.d.ts +0 -17
  158. package/dist/features/Operation/hooks/useResponses.d.ts.map +0 -1
  159. package/dist/features/Operation/hooks/useResponses.js +0 -19
  160. package/dist/hooks/useDiscriminator.d.ts +0 -53
  161. package/dist/hooks/useDiscriminator.d.ts.map +0 -1
  162. package/dist/hooks/useDiscriminator.js +0 -149
  163. package/dist/hooks/useOperationDiscriminator.d.ts +0 -8
  164. package/dist/hooks/useOperationDiscriminator.d.ts.map +0 -1
  165. package/dist/hooks/useOperationDiscriminator.js +0 -57
  166. /package/dist/features/Operation/components/{ParameterHeaders.vue3.js → Headers.vue3.js} +0 -0
@@ -1,34 +1,36 @@
1
- import { defineComponent as z, computed as m, inject as Z, createBlock as u, openBlock as a, resolveDynamicComponent as L, normalizeClass as X, withCtx as b, createCommentVNode as l, createElementBlock as o, createVNode as d, createSlots as G, unref as y, toDisplayString as f, Fragment as h, createTextVNode as V, renderList as J } from "vue";
2
- import { ScalarMarkdown as D } from "@scalar/components";
3
- import { isTypeObject as K } from "./helpers/is-type-object.js";
4
- import { DISCRIMINATOR_CONTEXT as Q } from "../../../hooks/useDiscriminator.js";
5
- import { optimizeValueForDisplay as W, compositions as Y } from "./helpers/optimize-value-for-display.js";
6
- import H from "./Schema.vue.js";
7
- import C from "./SchemaComposition.vue.js";
8
- import _ from "./SchemaDiscriminator.vue.js";
9
- import x from "./SchemaEnumValues.vue.js";
10
- import ee from "./SchemaPropertyHeading.vue.js";
11
- import re from "../../Anchor/WithBreadcrumb.vue2.js";
12
- import ie from "../../../features/specification-extension/SpecificationExtension.vue2.js";
13
- const ae = {
1
+ import { defineComponent as F, computed as l, createBlock as c, openBlock as i, resolveDynamicComponent as M, normalizeClass as $, withCtx as y, createCommentVNode as s, createElementBlock as a, createVNode as d, createSlots as I, unref as o, toDisplayString as f, Fragment as h, createTextVNode as N, renderList as z } from "vue";
2
+ import { ScalarMarkdown as S } from "@scalar/components";
3
+ import { isDefined as U } from "@scalar/helpers/array/is-defined";
4
+ import { getResolvedRef as b } from "@scalar/workspace-store/helpers/get-resolved-ref";
5
+ import { isArraySchema as m } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
6
+ import { isTypeObject as Z } from "./helpers/is-type-object.js";
7
+ import { optimizeValueForDisplay as L } from "./helpers/optimize-value-for-display.js";
8
+ import { compositions as G } from "./helpers/schema-composition.js";
9
+ import W from "./Schema.vue.js";
10
+ import J from "./SchemaComposition.vue.js";
11
+ import K from "./SchemaEnumValues.vue.js";
12
+ import Q from "./SchemaPropertyHeading.vue.js";
13
+ import X from "../../Anchor/WithBreadcrumb.vue2.js";
14
+ import Y from "../../../features/specification-extension/SpecificationExtension.vue2.js";
15
+ const _ = {
14
16
  key: 0,
15
17
  class: "property-name-pattern-properties"
16
- }, ne = {
18
+ }, x = {
17
19
  key: 1,
18
20
  class: "property-name-additional-properties"
19
- }, oe = {
21
+ }, ee = {
20
22
  key: 1,
21
23
  class: "property-description"
22
- }, te = {
24
+ }, ne = {
23
25
  key: 2,
24
26
  class: "property-description"
25
- }, se = {
26
- key: 3,
27
+ }, re = {
28
+ key: 4,
27
29
  class: "children"
28
- }, me = {
30
+ }, ie = {
29
31
  key: 0,
30
32
  class: "children"
31
- }, Ne = /* @__PURE__ */ z({
33
+ }, ve = /* @__PURE__ */ F({
32
34
  __name: "SchemaProperty",
33
35
  props: {
34
36
  is: {},
@@ -38,20 +40,17 @@ const ae = {
38
40
  name: {},
39
41
  required: { type: Boolean, default: !1 },
40
42
  compact: { type: Boolean, default: !1 },
43
+ discriminator: {},
41
44
  description: {},
42
- withExamples: { type: Boolean, default: !0 },
43
45
  hideModelNames: { type: Boolean, default: !1 },
44
- schemas: {},
45
46
  hideHeading: { type: Boolean },
46
- discriminatorMapping: {},
47
- discriminatorPropertyName: {},
48
- isDiscriminator: { type: Boolean },
47
+ hideReadOnly: { type: Boolean },
48
+ hideWriteOnly: { type: Boolean },
49
49
  variant: {},
50
50
  breadcrumb: {}
51
51
  },
52
- emits: ["update:modelValue"],
53
- setup(T, { emit: R }) {
54
- const c = T, w = R, k = {
52
+ setup(D) {
53
+ const u = D, v = {
55
54
  integer: {
56
55
  _default: "Integer numbers.",
57
56
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -65,65 +64,68 @@ const ae = {
65
64
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
66
65
  binary: "binary data, used to describe files"
67
66
  }
68
- }, g = (e, r) => r != null && r.properties || r != null && r.additionalProperties || r != null && r.patternProperties || r != null && r.allOf ? null : e || (r == null ? void 0 : r.description) || null, N = (e) => !e || !k[e.type] ? null : k[e.type][e.format || e.contentEncoding || "_default"], E = (e) => {
67
+ }, O = (e) => !e || !v[e.type] ? null : v[e.type][e.format || e.contentEncoding || "_default"], H = (e) => {
69
68
  var r;
70
69
  return (e == null ? void 0 : e.enum) || ((r = e == null ? void 0 : e.items) == null ? void 0 : r.enum) || [];
71
- }, i = m(() => W(c.value)), t = Z(Q, null), n = m(() => {
72
- var e;
73
- return c.level > 0 ? i.value : (e = t == null ? void 0 : t.value) != null && e.mergedSchema ? t.value.mergedSchema : i.value;
74
- }), I = m(() => {
75
- var e;
76
- return ((e = t == null ? void 0 : t.value) == null ? void 0 : e.selectedType) || (c.discriminatorMapping ? Object.keys(c.discriminatorMapping)[0] : "");
77
- }), U = (e, r, p) => r || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) !== void 0 || (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) || p, v = (e) => {
78
- w("update:modelValue", e);
79
- }, P = m(() => {
80
- const e = i.value;
81
- if (!(e != null && e.items) || typeof e.items != "object")
70
+ }, n = l(() => L(u.value)), g = l(() => {
71
+ const e = n.value;
72
+ return !e || "properties" in e || "additionalProperties" in e || "patternProperties" in e || e != null && e.allOf || e != null && e.allOf ? null : u.description || (e == null ? void 0 : e.description) || null;
73
+ }), V = (e, r, t) => r || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) !== void 0 || (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) || t, k = l(() => {
74
+ const e = n.value;
75
+ if (!e || !m(e) || typeof e.items != "object")
82
76
  return !1;
83
77
  const r = e.items;
84
- return "type" in r && ["object"].includes(r.type) || "$ref" in r || "discriminator" in r || "allOf" in r || "oneOf" in r || "anyOf" in r;
85
- }), $ = (e) => {
86
- const r = i.value;
87
- return !(r != null && r.items) || typeof r.items != "object" || !(e in r.items) ? !1 : !P.value;
88
- }, q = m(() => P.value), F = m(() => {
89
- if (!i.value)
78
+ return "type" in r && r.type && (Array.isArray(r.type) ? r.type.includes("object") : ["object"].includes(r.type)) || "properties" in r || "$ref" in r || "discriminator" in r || "allOf" in r || "oneOf" in r || "anyOf" in r;
79
+ }), w = (e) => {
80
+ const r = n.value;
81
+ return r && m(r) === !1 || !(r != null && r.items) || typeof r.items != "object" || !(e in r.items) ? !1 : !k.value;
82
+ }, A = l(() => k.value), T = l(() => {
83
+ if (!n.value)
90
84
  return !1;
91
- const e = i.value, r = K(e), p = e.properties || e.additionalProperties;
92
- return r && p;
93
- }), A = m(() => c.level <= 1);
85
+ const e = n.value, r = Z(e), t = "properties" in e || "additionalProperties" in e;
86
+ return r && t;
87
+ }), q = l(() => u.level <= 1), E = l(() => n.value ? G.map((e) => {
88
+ var t, p;
89
+ return ((t = n.value) == null ? void 0 : t[e]) && !(m(n.value) && ((p = n.value) != null && p.items) && typeof e == "string" && typeof n.value.items == "object" && e in n.value.items) ? {
90
+ composition: e,
91
+ value: n.value
92
+ } : w(e) && n.value && m(n.value) && n.value.items ? {
93
+ composition: e,
94
+ value: n.value.items
95
+ } : null;
96
+ }).filter(U) : []);
94
97
  return (e, r) => {
95
- var p;
96
- return a(), u(L(e.is ?? "li"), {
97
- class: X(["property", [
98
- (g(e.description, i.value), ""),
98
+ var t;
99
+ return i(), c(M(e.is ?? "li"), {
100
+ class: $(["property", [
99
101
  `property--level-${e.level}`,
100
102
  {
101
103
  "property--compact": e.compact,
102
- "property--deprecated": (p = i.value) == null ? void 0 : p.deprecated
104
+ "property--deprecated": (t = n.value) == null ? void 0 : t.deprecated
103
105
  }
104
106
  ]])
105
107
  }, {
106
- default: b(() => {
107
- var M, S;
108
+ default: y(() => {
109
+ var p, R, P, B;
108
110
  return [
109
- U(i.value, e.name, e.required) ? (a(), u(ee, {
111
+ V(n.value, e.name, e.required) ? (i(), c(Q, {
110
112
  key: 0,
111
- enum: E(i.value).length > 0,
112
- required: e.required,
113
- value: i.value,
114
- schemas: e.schemas,
113
+ class: "group",
114
+ enum: H(n.value).length > 0,
115
115
  hideModelNames: e.hideModelNames,
116
- class: "group"
117
- }, G({ _: 2 }, [
116
+ isDiscriminator: e.discriminator && e.discriminator.propertyName === e.name,
117
+ required: e.required,
118
+ value: n.value
119
+ }, I({ _: 2 }, [
118
120
  e.name ? {
119
121
  name: "name",
120
- fn: b(() => [
121
- d(y(re), {
122
- breadcrumb: A.value && e.breadcrumb ? [...e.breadcrumb, e.name] : void 0
122
+ fn: y(() => [
123
+ d(o(X), {
124
+ breadcrumb: q.value && e.breadcrumb ? [...e.breadcrumb, e.name] : void 0
123
125
  }, {
124
- default: b(() => [
125
- e.variant === "patternProperties" ? (a(), o("span", ae, f(e.name), 1)) : e.variant === "additionalProperties" ? (a(), o("span", ne, f(e.name), 1)) : (a(), o(h, { key: 2 }, [
126
- V(f(e.name), 1)
126
+ default: y(() => [
127
+ e.variant === "patternProperties" ? (i(), a("span", _, f(e.name), 1)) : e.variant === "additionalProperties" ? (i(), a("span", x, f(e.name), 1)) : (i(), a(h, { key: 2 }, [
128
+ N(f(e.name), 1)
127
129
  ], 64))
128
130
  ]),
129
131
  _: 1
@@ -131,90 +133,68 @@ const ae = {
131
133
  ]),
132
134
  key: "0"
133
135
  } : void 0,
134
- (M = i.value) != null && M.example ? {
136
+ (p = n.value) != null && p.example ? {
135
137
  name: "example",
136
- fn: b(() => [
137
- V(" Example: " + f(i.value.example), 1)
138
+ fn: y(() => [
139
+ N(" Example: " + f(n.value.example), 1)
138
140
  ]),
139
141
  key: "1"
140
142
  } : void 0
141
- ]), 1032, ["enum", "required", "value", "schemas", "hideModelNames"])) : l("", !0),
142
- g(e.description, i.value) ? (a(), o("div", oe, [
143
- d(y(D), {
144
- value: g(e.description, i.value)
143
+ ]), 1032, ["enum", "hideModelNames", "isDiscriminator", "required", "value"])) : s("", !0),
144
+ g.value ? (i(), a("div", ee, [
145
+ d(o(S), { value: g.value }, null, 8, ["value"])
146
+ ])) : O(n.value) ? (i(), a("div", ne, [
147
+ d(o(S), {
148
+ value: O(n.value) || ""
145
149
  }, null, 8, ["value"])
146
- ])) : N(i.value) ? (a(), o("div", te, [
147
- d(y(D), {
148
- value: N(i.value) || ""
149
- }, null, 8, ["value"])
150
- ])) : l("", !0),
151
- d(x, { value: i.value }, null, 8, ["value"]),
152
- F.value ? (a(), o("div", se, [
153
- d(H, {
154
- compact: e.compact,
150
+ ])) : s("", !0),
151
+ (((R = n.value) == null ? void 0 : R.enum) || n.value && o(m)(n.value) && ((B = o(b)((P = n.value) == null ? void 0 : P.items)) == null ? void 0 : B.enum) || []).length ? (i(), c(K, {
152
+ key: 3,
153
+ value: n.value
154
+ }, null, 8, ["value"])) : s("", !0),
155
+ T.value ? (i(), a("div", re, [
156
+ d(W, {
155
157
  breadcrumb: e.breadcrumb && e.name ? [...e.breadcrumb, e.name] : void 0,
158
+ compact: e.compact,
159
+ hideReadOnly: e.hideReadOnly,
160
+ hideWriteOnly: e.hideWriteOnly,
156
161
  level: e.level + 1,
157
162
  name: e.name,
158
163
  noncollapsible: e.noncollapsible,
159
- value: n.value,
160
- resolvedSchema: n.value,
161
- discriminatorMapping: e.discriminatorMapping,
162
- discriminatorPropertyName: e.discriminatorPropertyName,
163
- schemas: e.schemas,
164
- "onUpdate:modelValue": v
165
- }, null, 8, ["compact", "breadcrumb", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
166
- ])) : l("", !0),
167
- (S = i.value) != null && S.items && typeof i.value.items == "object" ? (a(), o(h, { key: 4 }, [
168
- q.value ? (a(), o("div", me, [
169
- d(H, {
164
+ schema: n.value
165
+ }, null, 8, ["breadcrumb", "compact", "hideReadOnly", "hideWriteOnly", "level", "name", "noncollapsible", "schema"])
166
+ ])) : s("", !0),
167
+ n.value && o(m)(n.value) && typeof n.value.items == "object" ? (i(), a(h, { key: 5 }, [
168
+ A.value ? (i(), a("div", ie, [
169
+ d(W, {
170
170
  compact: e.compact,
171
+ hideReadOnly: e.hideReadOnly,
172
+ hideWriteOnly: e.hideWriteOnly,
171
173
  level: e.level + 1,
172
174
  name: e.name,
173
175
  noncollapsible: e.noncollapsible,
174
- value: n.value && typeof n.value == "object" && "items" in n.value ? n.value.items : i.value.items,
175
- resolvedSchema: n.value && typeof n.value == "object" && "items" in n.value ? n.value.items : i.value.items,
176
- discriminatorMapping: e.discriminatorMapping,
177
- discriminatorPropertyName: e.discriminatorPropertyName,
178
- schemas: e.schemas,
179
- "onUpdate:modelValue": v
180
- }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
181
- ])) : l("", !0)
182
- ], 64)) : l("", !0),
183
- (a(!0), o(h, null, J(y(Y), (s) => {
184
- var O, j, B;
185
- return a(), o(h, { key: s }, [
186
- (O = i.value) != null && O[s] && !((j = i.value) != null && j.items && typeof s == "string" && typeof i.value.items == "object" && s in i.value.items) ? (a(), u(C, {
187
- key: 0,
188
- breadcrumb: e.breadcrumb,
189
- compact: e.compact,
190
- composition: s,
191
- hideHeading: e.hideHeading,
192
- level: e.level,
193
- name: e.name,
194
- noncollapsible: e.noncollapsible,
195
- schemas: e.schemas,
196
- value: i.value
197
- }, null, 8, ["breadcrumb", "compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : $(s) ? (a(), u(C, {
198
- key: 1,
199
- breadcrumb: e.breadcrumb,
200
- compact: e.compact,
201
- composition: s,
202
- hideHeading: e.hideHeading,
203
- level: e.level,
204
- name: e.name,
205
- noncollapsible: e.noncollapsible,
206
- schemas: e.schemas,
207
- value: (B = i.value) == null ? void 0 : B.items
208
- }, null, 8, ["breadcrumb", "compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : l("", !0)
209
- ], 64);
176
+ schema: o(b)(n.value.items)
177
+ }, null, 8, ["compact", "hideReadOnly", "hideWriteOnly", "level", "name", "noncollapsible", "schema"])
178
+ ])) : s("", !0)
179
+ ], 64)) : s("", !0),
180
+ (i(!0), a(h, null, z(E.value, (C) => {
181
+ var j;
182
+ return i(), c(J, {
183
+ key: C.composition,
184
+ breadcrumb: e.breadcrumb,
185
+ compact: e.compact,
186
+ composition: C.composition,
187
+ discriminator: (j = e.value) == null ? void 0 : j.discriminator,
188
+ hideHeading: e.hideHeading,
189
+ hideReadOnly: e.hideReadOnly,
190
+ hideWriteOnly: e.hideWriteOnly,
191
+ level: e.level,
192
+ name: e.name,
193
+ noncollapsible: e.noncollapsible,
194
+ value: o(b)(u.value)
195
+ }, null, 8, ["breadcrumb", "compact", "composition", "discriminator", "hideHeading", "hideReadOnly", "hideWriteOnly", "level", "name", "noncollapsible", "value"]);
210
196
  }), 128)),
211
- e.isDiscriminator && e.discriminatorMapping && e.compact ? (a(), u(_, {
212
- key: 5,
213
- "discriminator-mapping": e.discriminatorMapping,
214
- discriminator: I.value,
215
- "onUpdate:modelValue": v
216
- }, null, 8, ["discriminator-mapping", "discriminator"])) : l("", !0),
217
- d(y(ie), { value: i.value }, null, 8, ["value"])
197
+ d(o(Y), { value: n.value }, null, 8, ["value"])
218
198
  ];
219
199
  }),
220
200
  _: 1
@@ -223,5 +203,5 @@ const ae = {
223
203
  }
224
204
  });
225
205
  export {
226
- Ne as default
206
+ ve as default
227
207
  };
@@ -1,5 +1,5 @@
1
1
  type __VLS_Props = {
2
- examples?: Record<string, unknown>;
2
+ examples?: unknown;
3
3
  example?: unknown;
4
4
  };
5
5
  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>;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyExamples.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyExamples.vue"],"names":[],"mappings":"AAyJA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AAgKF,wBAMG"}
1
+ {"version":3,"file":"SchemaPropertyExamples.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyExamples.vue"],"names":[],"mappings":"AAyJA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AAgKF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaPropertyExamples.vue2.js";
2
2
  import "./SchemaPropertyExamples.vue3.js";
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3f177f42"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-64e15694"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };
@@ -1,18 +1,23 @@
1
- import type { Schemas } from '../../../features/Operation/types/schemas';
1
+ import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
- value?: Record<string, any>;
3
+ value: SchemaObject | undefined;
4
4
  enum?: boolean;
5
+ isDiscriminator?: boolean;
5
6
  required?: boolean;
6
7
  additional?: boolean;
7
8
  withExamples?: boolean;
8
9
  hideModelNames?: boolean;
9
- schemas?: Schemas;
10
10
  };
11
11
  declare var __VLS_1: {};
12
12
  type __VLS_Slots = {} & {
13
13
  name?: (props: typeof __VLS_1) => any;
14
14
  };
15
- declare const __VLS_component: 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>;
15
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
+ required: boolean;
17
+ hideModelNames: boolean;
18
+ isDiscriminator: boolean;
19
+ withExamples: boolean;
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
21
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
17
22
  export default _default;
18
23
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA8SA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AASjE,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,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA8aF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA6B5C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,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":"AAmbA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAiBhG,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA2dJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAgC5C,QAAA,MAAM,eAAe;cAjgBN,OAAO;oBAGD,OAAO;qBAJN,OAAO;kBAGV,OAAO;6EAsgBxB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaPropertyHeading.vue2.js";
2
2
  import "./SchemaPropertyHeading.vue3.js";
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-fe194f0c"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bfc3b782"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };