@scalar/api-reference 1.31.8 → 1.31.10

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 (184) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/browser/standalone.js +18628 -18480
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.js +10 -30
  6. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  8. package/dist/components/ApiReferenceLayout.vue2.js +240 -222
  9. package/dist/components/Content/Content.vue.d.ts +2 -0
  10. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Content.vue.js +2 -2
  12. package/dist/components/Content/Content.vue2.js +91 -81
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -3
  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 +93 -83
  17. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Lazy/Loading.vue.js +84 -86
  19. package/dist/components/Content/Models/Models.vue.js +1 -1
  20. package/dist/components/Content/Models/Models.vue2.js +4 -4
  21. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  23. package/dist/components/Content/Schema/Schema.vue2.js +53 -53
  24. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +1 -1
  26. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  28. package/dist/components/Content/Schema/SchemaProperty.vue2.js +135 -121
  29. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  31. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +161 -191
  32. package/dist/components/Content/Schema/helpers/schema-name.d.ts +13 -0
  33. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/helpers/schema-name.js +59 -13
  35. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  36. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  37. package/dist/components/Content/Tag/OperationsList.vue2.js +22 -25
  38. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -3
  39. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  41. package/dist/components/Content/Tag/OperationsListItem.vue2.js +46 -47
  42. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/Tag.vue.js +45 -47
  44. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -0
  45. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Tag/TagList.vue.js +40 -41
  47. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  49. package/dist/components/Content/Tag/TagSection.vue2.js +21 -21
  50. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +16 -1
  51. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  52. package/dist/components/HttpMethod/HttpMethod.vue.js +12 -11
  53. package/dist/components/MobileHeader.vue.d.ts +1 -8
  54. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  55. package/dist/components/MobileHeader.vue.js +1 -1
  56. package/dist/components/MobileHeader.vue2.js +19 -19
  57. package/dist/components/Section/Section.vue.js +2 -2
  58. package/dist/components/Section/Section.vue2.js +1 -1
  59. package/dist/components/ShowMoreButton.vue.js +2 -2
  60. package/dist/components/ShowMoreButton.vue2.js +1 -1
  61. package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -4
  62. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  63. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  64. package/dist/components/Sidebar/Sidebar.vue2.js +113 -159
  65. package/dist/components/Sidebar/SidebarElement.vue.d.ts +2 -11
  66. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  67. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  68. package/dist/components/Sidebar/SidebarElement.vue2.js +85 -81
  69. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +16 -1
  70. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
  71. package/dist/components/Sidebar/SidebarHttpBadge.vue.js +2 -2
  72. package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +11 -5
  73. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  74. package/dist/features/ApiClientModal/ApiClientModal.vue.js +54 -42
  75. package/dist/features/ApiClientModal/useApiClient.d.ts +74 -72
  76. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  77. package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +20 -20
  78. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +0 -2
  79. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
  80. package/dist/features/DocumentSource/hooks/useDocumentSource.js +40 -67
  81. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  82. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +5 -5
  83. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  84. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  85. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +200 -179
  86. package/dist/features/Operation/Operation.vue.d.ts +0 -1
  87. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  88. package/dist/features/Operation/Operation.vue.js +31 -34
  89. package/dist/features/Operation/components/OperationParameters.vue.d.ts +3 -2
  90. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  91. package/dist/features/Operation/components/OperationParameters.vue.js +62 -64
  92. package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -2
  93. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  94. package/dist/features/Operation/components/OperationResponses.vue.js +2 -2
  95. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  96. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  97. package/dist/features/Operation/components/callbacks/Callback.vue2.js +31 -38
  98. package/dist/features/Operation/hooks/useResponses.d.ts +3 -3
  99. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  100. package/dist/features/Operation/hooks/useResponses.js +12 -13
  101. package/dist/features/Operation/index.d.ts +0 -1
  102. package/dist/features/Operation/index.d.ts.map +1 -1
  103. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +4 -6
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  105. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  106. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +85 -72
  107. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -4
  108. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  109. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  110. package/dist/features/Operation/layouts/ModernLayout.vue2.js +114 -98
  111. package/dist/features/Search/SearchModal.vue.js +2 -2
  112. package/dist/features/Search/SearchModal.vue2.js +1 -1
  113. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  114. package/dist/features/Search/useSearchIndex.js +61 -64
  115. package/dist/features/sidebar/helpers/create-sidebar.d.ts +4 -2
  116. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
  117. package/dist/features/sidebar/helpers/create-sidebar.js +33 -0
  118. package/dist/features/sidebar/hooks/useSidebar.d.ts +2 -3
  119. package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -1
  120. package/dist/features/sidebar/hooks/useSidebar.js +18 -0
  121. package/dist/features/sidebar/index.d.ts +2 -1
  122. package/dist/features/sidebar/index.d.ts.map +1 -1
  123. package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -2
  124. package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -1
  125. package/dist/features/traverse-schema/helpers/get-tag.js +7 -0
  126. package/dist/features/traverse-schema/helpers/traverse-description.js +33 -0
  127. package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -1
  128. package/dist/features/traverse-schema/helpers/traverse-document.js +34 -0
  129. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +5 -3
  130. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
  131. package/dist/features/traverse-schema/helpers/traverse-paths.js +32 -0
  132. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +2 -2
  133. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
  134. package/dist/features/traverse-schema/helpers/traverse-schemas.js +23 -0
  135. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +2 -2
  136. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
  137. package/dist/features/traverse-schema/helpers/traverse-tags.js +43 -0
  138. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +2 -2
  139. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
  140. package/dist/features/traverse-schema/helpers/traverse-webhooks.js +26 -0
  141. package/dist/features/traverse-schema/index.d.ts +3 -3
  142. package/dist/features/traverse-schema/index.d.ts.map +1 -1
  143. package/dist/features/traverse-schema/types.d.ts +8 -5
  144. package/dist/features/traverse-schema/types.d.ts.map +1 -1
  145. package/dist/helpers/parse.d.ts +2 -1
  146. package/dist/helpers/parse.d.ts.map +1 -1
  147. package/dist/helpers/parse.js +72 -88
  148. package/dist/hooks/useMultipleDocuments.d.ts +6 -6
  149. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  150. package/dist/hooks/useNavState.d.ts +1 -1
  151. package/dist/hooks/useNavState.d.ts.map +1 -1
  152. package/dist/hooks/useNavState.js +14 -9
  153. package/dist/hooks/useOperation.d.ts +7 -7
  154. package/dist/hooks/useOperation.d.ts.map +1 -1
  155. package/dist/hooks/useOperation.js +13 -12
  156. package/dist/index.d.ts +0 -1
  157. package/dist/index.d.ts.map +1 -1
  158. package/dist/index.js +23 -25
  159. package/dist/legacy/fixtures/index.d.ts +1 -1
  160. package/dist/libs/openapi.d.ts +3 -4
  161. package/dist/libs/openapi.d.ts.map +1 -1
  162. package/dist/libs/openapi.js +8 -9
  163. package/dist/style.css +1 -1
  164. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +4 -18
  165. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  166. package/dist/v2/ApiReferenceWorkspace.vue.js +68 -45
  167. package/package.json +16 -16
  168. package/dist/components/Content/Webhooks/index.d.ts +0 -2
  169. package/dist/components/Content/Webhooks/index.d.ts.map +0 -1
  170. package/dist/features/Operation/Webhooks.vue.d.ts +0 -7
  171. package/dist/features/Operation/Webhooks.vue.d.ts.map +0 -1
  172. package/dist/features/Operation/Webhooks.vue.js +0 -7
  173. package/dist/features/Operation/Webhooks.vue2.js +0 -121
  174. package/dist/features/Operation/components/Webhook.vue.d.ts +0 -7
  175. package/dist/features/Operation/components/Webhook.vue.d.ts.map +0 -1
  176. package/dist/features/Operation/components/Webhook.vue.js +0 -7
  177. package/dist/features/Operation/components/Webhook.vue2.js +0 -29
  178. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +0 -8
  179. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +0 -1
  180. package/dist/features/traverse-schema/helpers/operation-id-params.js +0 -8
  181. package/dist/hooks/useSidebar.d.ts +0 -53
  182. package/dist/hooks/useSidebar.d.ts.map +0 -1
  183. package/dist/hooks/useSidebar.js +0 -248
  184. package/dist/legacy/fixtures/httpRequestMethods.js +0 -14
@@ -1,35 +1,35 @@
1
- import { defineComponent as _, computed as s, inject as x, createBlock as u, openBlock as t, resolveDynamicComponent as ee, normalizeClass as U, withCtx as y, createCommentVNode as l, createElementBlock as o, createVNode as m, createSlots as ne, createTextVNode as B, toDisplayString as h, unref as p, Fragment as f, renderList as M, createElementVNode as v } from "vue";
2
- import { Disclosure as ie, DisclosurePanel as te, DisclosureButton as ae } from "@headlessui/vue";
3
- import { ScalarMarkdown as j, ScalarIcon as oe } from "@scalar/components";
4
- import { optimizeValueForDisplay as re, compositions as se } from "./helpers/optimizeValueForDisplay.js";
5
- import { DISCRIMINATOR_CONTEXT as le } from "../../../hooks/useDiscriminator.js";
6
- import $ from "./Schema.vue.js";
7
- import z from "./SchemaComposition.vue.js";
8
- import me from "./SchemaDiscriminator.vue.js";
9
- import pe from "./SchemaPropertyHeading.vue.js";
10
- import de from "../../SpecificationExtension/SpecificationExtension.vue.js";
11
- const ce = {
1
+ import { defineComponent as W, computed as o, inject as Y, createBlock as h, openBlock as t, resolveDynamicComponent as _, normalizeClass as R, withCtx as f, createCommentVNode as l, createElementBlock as r, createVNode as m, createSlots as x, createTextVNode as B, toDisplayString as v, unref as p, Fragment as g, renderList as M, createElementVNode as k } from "vue";
2
+ import { Disclosure as ee, DisclosurePanel as ne, DisclosureButton as ie } from "@headlessui/vue";
3
+ import { ScalarMarkdown as O, ScalarIcon as te } from "@scalar/components";
4
+ import { optimizeValueForDisplay as ae, compositions as re } from "./helpers/optimizeValueForDisplay.js";
5
+ import { DISCRIMINATOR_CONTEXT as oe } from "../../../hooks/useDiscriminator.js";
6
+ import T from "./Schema.vue.js";
7
+ import q from "./SchemaComposition.vue.js";
8
+ import se from "./SchemaDiscriminator.vue.js";
9
+ import le from "./SchemaPropertyHeading.vue.js";
10
+ import me from "../../SpecificationExtension/SpecificationExtension.vue.js";
11
+ const pe = {
12
12
  key: 1,
13
13
  class: "property-description"
14
- }, ue = {
14
+ }, ce = {
15
15
  key: 2,
16
16
  class: "property-description"
17
- }, ye = {
17
+ }, de = {
18
18
  key: 3,
19
19
  class: "property-enum"
20
- }, he = {
20
+ }, ue = {
21
21
  key: 0,
22
22
  class: "property-list"
23
- }, fe = { class: "property-heading" }, ge = { class: "property-name" }, ve = { class: "property-description" }, be = {
23
+ }, ye = { class: "property-heading" }, he = { class: "property-name" }, fe = { class: "property-description" }, ve = {
24
24
  key: 1,
25
25
  class: "property-enum-values"
26
- }, ke = { class: "property-enum-value-label" }, Ne = { class: "property-enum-value-label" }, Me = {
26
+ }, ge = { class: "property-enum-value-label" }, be = { class: "property-enum-value-label" }, ke = {
27
27
  key: 4,
28
28
  class: "children"
29
- }, Se = {
29
+ }, De = {
30
30
  key: 0,
31
31
  class: "children"
32
- }, we = /* @__PURE__ */ _({
32
+ }, Ve = /* @__PURE__ */ W({
33
33
  __name: "SchemaProperty",
34
34
  props: {
35
35
  is: {},
@@ -51,8 +51,8 @@ const ce = {
51
51
  isDiscriminator: { type: Boolean }
52
52
  },
53
53
  emits: ["update:modelValue"],
54
- setup(L, { emit: Z }) {
55
- const S = L, X = Z, O = {
54
+ setup(F, { emit: U }) {
55
+ const D = F, $ = U, E = {
56
56
  integer: {
57
57
  _default: "Integer numbers.",
58
58
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -65,131 +65,145 @@ const ce = {
65
65
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
66
66
  binary: "binary data, used to describe files"
67
67
  }
68
- }, D = (e, i) => i != null && i.properties || i != null && i.additionalProperties || i != null && i.patternProperties || i != null && i.allOf ? null : e || (i == null ? void 0 : i.description) || null, C = (e) => !e || !O[e.type] ? null : O[e.type][e.format || "_default"], c = (e) => {
69
- var i;
70
- return (e == null ? void 0 : e.enum) || ((i = e == null ? void 0 : e.items) == null ? void 0 : i.enum) || [];
71
- }, E = s(
72
- () => c(n.value).length > 9
73
- ), H = s(() => E.value ? 5 : 9), G = s(
74
- () => c(n.value).slice(0, H.value)
75
- ), J = s(
76
- () => c(n.value).slice(H.value)
77
- ), n = s(() => re(S.value)), d = x(le, null), r = s(() => {
68
+ }, P = (e, n) => n != null && n.properties || n != null && n.additionalProperties || n != null && n.patternProperties || n != null && n.allOf ? null : e || (n == null ? void 0 : n.description) || null, C = (e) => !e || !E[e.type] ? null : E[e.type][e.format || "_default"], u = (e) => {
69
+ var n;
70
+ return (e == null ? void 0 : e.enum) || ((n = e == null ? void 0 : e.items) == null ? void 0 : n.enum) || [];
71
+ }, H = o(
72
+ () => u(i.value).length > 9
73
+ ), V = o(() => H.value ? 5 : 9), z = o(
74
+ () => u(i.value).slice(0, V.value)
75
+ ), L = o(
76
+ () => u(i.value).slice(V.value)
77
+ ), i = o(() => ae(D.value)), d = Y(oe, null), s = o(() => {
78
78
  var e;
79
- return (e = d == null ? void 0 : d.value) != null && e.mergedSchema ? d.value.mergedSchema : n.value;
80
- }), K = s(() => {
79
+ return D.level > 0 ? i.value : (e = d == null ? void 0 : d.value) != null && e.mergedSchema ? d.value.mergedSchema : i.value;
80
+ }), Z = o(() => {
81
81
  var e;
82
- return ((e = d == null ? void 0 : d.value) == null ? void 0 : e.selectedType) || (S.discriminatorMapping ? Object.keys(S.discriminatorMapping)[0] : "");
83
- }), Q = (e, i, b, k, N) => i || 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
- }, V = s(() => {
86
- const e = n.value;
82
+ return ((e = d == null ? void 0 : d.value) == null ? void 0 : e.selectedType) || (D.discriminatorMapping ? Object.keys(D.discriminatorMapping)[0] : "");
83
+ }), X = (e, n, y, N, S) => n || y || N || (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) || S, j = (e) => {
84
+ $("update:modelValue", e);
85
+ }, A = o(() => {
86
+ const e = i.value;
87
87
  if (!(e != null && e.items) || typeof e.items != "object")
88
88
  return !1;
89
- const i = e.items;
90
- return "type" in i && ["object"].includes(i.type) || "$ref" in i || "discriminator" in i || "allOf" in i || "oneOf" in i || "anyOf" in i;
91
- }), W = (e) => {
92
- const i = n.value;
93
- return !(i != null && i.items) || typeof i.items != "object" || !(e in i.items) ? !1 : !V.value;
94
- }, Y = s(() => V.value);
95
- return (e, i) => {
96
- var b;
97
- return t(), u(ee(e.is ?? "li"), {
98
- class: U(["property", [
99
- (D(e.description, n.value), ""),
89
+ const n = e.items;
90
+ return "type" in n && ["object"].includes(n.type) || "$ref" in n || "discriminator" in n || "allOf" in n || "oneOf" in n || "anyOf" in n;
91
+ }), G = (e) => {
92
+ const n = i.value;
93
+ return !(n != null && n.items) || typeof n.items != "object" || !(e in n.items) ? !1 : !A.value;
94
+ }, J = o(() => A.value), K = o(() => {
95
+ if (!i.value)
96
+ return !1;
97
+ const e = i.value, n = e.type === "object" || Array.isArray(e.type) && e.type.includes("object"), y = e.properties || e.additionalProperties;
98
+ return n && y;
99
+ }), Q = o(() => {
100
+ var n;
101
+ if (!((n = i.value) != null && n["x-enumDescriptions"]))
102
+ return !1;
103
+ const e = i.value["x-enumDescriptions"];
104
+ return typeof e == "object" && !Array.isArray(e);
105
+ });
106
+ return (e, n) => {
107
+ var y;
108
+ return t(), h(_(e.is ?? "li"), {
109
+ class: R(["property", [
110
+ (P(e.description, i.value), ""),
100
111
  `property--level-${e.level}`,
101
112
  {
102
113
  "property--compact": e.compact,
103
- "property--deprecated": (b = n.value) == null ? void 0 : b.deprecated
114
+ "property--deprecated": (y = i.value) == null ? void 0 : y.deprecated
104
115
  }
105
116
  ]])
106
117
  }, {
107
- default: y(() => {
108
- var k, N, I, w, A, R, T;
118
+ default: f(() => {
119
+ var N, S, w;
109
120
  return [
110
- Q(
111
- n.value,
121
+ X(
122
+ i.value,
112
123
  e.name,
113
124
  e.additional,
114
125
  e.pattern,
115
126
  e.required
116
- ) ? (t(), u(pe, {
127
+ ) ? (t(), h(le, {
117
128
  key: 0,
118
129
  additional: e.additional,
119
- enum: c(n.value).length > 0,
130
+ enum: u(i.value).length > 0,
120
131
  pattern: e.pattern,
121
132
  required: e.required,
122
- value: n.value,
133
+ value: i.value,
123
134
  schemas: e.schemas,
124
135
  hideModelNames: e.hideModelNames
125
- }, ne({ _: 2 }, [
136
+ }, x({ _: 2 }, [
126
137
  e.name ? {
127
138
  name: "name",
128
- fn: y(() => [
129
- B(h(e.name), 1)
139
+ fn: f(() => [
140
+ B(v(e.name), 1)
130
141
  ]),
131
142
  key: "0"
132
143
  } : void 0,
133
- (k = n.value) != null && k.example ? {
144
+ (N = i.value) != null && N.example ? {
134
145
  name: "example",
135
- fn: y(() => [
136
- B(" Example: " + h(n.value.example), 1)
146
+ fn: f(() => [
147
+ B(" Example: " + v(i.value.example), 1)
137
148
  ]),
138
149
  key: "1"
139
150
  } : void 0
140
151
  ]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas", "hideModelNames"])) : l("", !0),
141
- D(e.description, n.value) ? (t(), o("div", ce, [
142
- m(p(j), {
143
- value: D(e.description, n.value)
152
+ P(e.description, i.value) ? (t(), r("div", pe, [
153
+ m(p(O), {
154
+ value: P(e.description, i.value)
144
155
  }, null, 8, ["value"])
145
- ])) : C(n.value) ? (t(), o("div", ue, [
146
- m(p(j), {
147
- value: C(n.value) || ""
156
+ ])) : C(i.value) ? (t(), r("div", ce, [
157
+ m(p(O), {
158
+ value: C(i.value) || ""
148
159
  }, null, 8, ["value"])
149
160
  ])) : l("", !0),
150
- ((N = c(n.value)) == null ? void 0 : N.length) > 0 ? (t(), o("div", ye, [
151
- Array.isArray((I = n.value) == null ? void 0 : I["x-enumDescriptions"]) ? (t(), o("div", he, [
152
- (t(!0), o(f, null, M(c(n.value), (a) => (t(), o("div", {
153
- key: a,
154
- class: "property"
155
- }, [
156
- v("div", fe, [
157
- v("div", ge, h(a), 1)
158
- ]),
159
- v("div", ve, [
160
- m(p(j), {
161
- value: n.value["x-enumDescriptions"][a]
162
- }, null, 8, ["value"])
163
- ])
164
- ]))), 128))
165
- ])) : (t(), o("ul", be, [
166
- (t(!0), o(f, null, M(G.value, (a) => (t(), o("li", {
161
+ ((S = u(i.value)) == null ? void 0 : S.length) > 0 && !e.isDiscriminator ? (t(), r("div", de, [
162
+ Q.value ? (t(), r("div", ue, [
163
+ (t(!0), r(g, null, M(u(i.value), (a) => {
164
+ var c, b;
165
+ return t(), r("div", {
166
+ key: a,
167
+ class: "property"
168
+ }, [
169
+ k("div", ye, [
170
+ k("div", he, v(a), 1)
171
+ ]),
172
+ k("div", fe, [
173
+ m(p(O), {
174
+ value: (b = (c = i.value) == null ? void 0 : c["x-enumDescriptions"]) == null ? void 0 : b[a]
175
+ }, null, 8, ["value"])
176
+ ])
177
+ ]);
178
+ }), 128))
179
+ ])) : (t(), r("ul", ve, [
180
+ (t(!0), r(g, null, M(z.value, (a) => (t(), r("li", {
167
181
  key: a,
168
182
  class: "property-enum-value"
169
183
  }, [
170
- v("span", ke, h(a), 1)
184
+ k("span", ge, v(a), 1)
171
185
  ]))), 128)),
172
- E.value ? (t(), u(p(ie), { key: 0 }, {
173
- default: y(({ open: a }) => [
174
- m(p(te), null, {
175
- default: y(() => [
176
- (t(!0), o(f, null, M(J.value, (g) => (t(), o("li", {
177
- key: g,
186
+ H.value ? (t(), h(p(ee), { key: 0 }, {
187
+ default: f(({ open: a }) => [
188
+ m(p(ne), null, {
189
+ default: f(() => [
190
+ (t(!0), r(g, null, M(L.value, (c) => (t(), r("li", {
191
+ key: c,
178
192
  class: "property-enum-value"
179
193
  }, [
180
- v("span", Ne, h(g), 1)
194
+ k("span", be, v(c), 1)
181
195
  ]))), 128))
182
196
  ]),
183
197
  _: 1
184
198
  }),
185
- m(p(ae), { class: "enum-toggle-button" }, {
186
- default: y(() => [
187
- m(p(oe), {
188
- class: U(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
199
+ m(p(ie), { class: "enum-toggle-button" }, {
200
+ default: f(() => [
201
+ m(p(te), {
202
+ class: R(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
189
203
  icon: "Add",
190
204
  size: "sm"
191
205
  }, null, 8, ["class"]),
192
- B(" " + h(a ? "Hide values" : "Show all values"), 1)
206
+ B(" " + v(a ? "Hide values" : "Show all values"), 1)
193
207
  ]),
194
208
  _: 2
195
209
  }, 1024)
@@ -198,40 +212,40 @@ const ce = {
198
212
  })) : l("", !0)
199
213
  ]))
200
214
  ])) : l("", !0),
201
- ((w = n.value) == null ? void 0 : w.type) === "object" && ((A = n.value) != null && A.properties || (R = n.value) != null && R.additionalProperties) ? (t(), o("div", Me, [
202
- m($, {
215
+ K.value ? (t(), r("div", ke, [
216
+ m(T, {
203
217
  compact: e.compact,
204
218
  level: e.level + 1,
205
219
  name: e.name,
206
220
  noncollapsible: e.noncollapsible,
207
- value: r.value,
208
- resolvedSchema: r.value,
221
+ value: s.value,
222
+ resolvedSchema: s.value,
209
223
  discriminatorMapping: e.discriminatorMapping,
210
224
  discriminatorPropertyName: e.discriminatorPropertyName,
211
225
  schemas: e.schemas,
212
- "onUpdate:modelValue": P
226
+ "onUpdate:modelValue": j
213
227
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
214
228
  ])) : l("", !0),
215
- (T = n.value) != null && T.items && typeof n.value.items == "object" ? (t(), o(f, { key: 5 }, [
216
- Y.value ? (t(), o("div", Se, [
217
- m($, {
229
+ (w = i.value) != null && w.items && typeof i.value.items == "object" ? (t(), r(g, { key: 5 }, [
230
+ J.value ? (t(), r("div", De, [
231
+ m(T, {
218
232
  compact: e.compact,
219
233
  level: e.level + 1,
220
234
  name: e.name,
221
235
  noncollapsible: e.noncollapsible,
222
- value: r.value && typeof r.value == "object" && "items" in r.value ? r.value.items : n.value.items,
223
- resolvedSchema: r.value && typeof r.value == "object" && "items" in r.value ? r.value.items : n.value.items,
236
+ value: s.value && typeof s.value == "object" && "items" in s.value ? s.value.items : i.value.items,
237
+ resolvedSchema: s.value && typeof s.value == "object" && "items" in s.value ? s.value.items : i.value.items,
224
238
  discriminatorMapping: e.discriminatorMapping,
225
239
  discriminatorPropertyName: e.discriminatorPropertyName,
226
240
  schemas: e.schemas,
227
- "onUpdate:modelValue": P
241
+ "onUpdate:modelValue": j
228
242
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
229
243
  ])) : l("", !0)
230
244
  ], 64)) : l("", !0),
231
- (t(!0), o(f, null, M(p(se), (a) => {
232
- var g, q, F;
233
- return t(), o(f, { key: a }, [
234
- (g = n.value) != null && g[a] && !((q = n.value) != null && q.items && typeof a == "string" && typeof n.value.items == "object" && a in n.value.items) ? (t(), u(z, {
245
+ (t(!0), r(g, null, M(p(re), (a) => {
246
+ var c, b, I;
247
+ return t(), r(g, { key: a }, [
248
+ (c = i.value) != null && c[a] && !((b = i.value) != null && b.items && typeof a == "string" && typeof i.value.items == "object" && a in i.value.items) ? (t(), h(q, {
235
249
  key: 0,
236
250
  compact: e.compact,
237
251
  composition: a,
@@ -240,8 +254,8 @@ const ce = {
240
254
  name: e.name,
241
255
  noncollapsible: e.noncollapsible,
242
256
  schemas: e.schemas,
243
- value: n.value
244
- }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : W(a) ? (t(), u(z, {
257
+ value: i.value
258
+ }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : G(a) ? (t(), h(q, {
245
259
  key: 1,
246
260
  compact: e.compact,
247
261
  composition: a,
@@ -250,17 +264,17 @@ const ce = {
250
264
  name: e.name,
251
265
  noncollapsible: e.noncollapsible,
252
266
  schemas: e.schemas,
253
- value: (F = n.value) == null ? void 0 : F.items
267
+ value: (I = i.value) == null ? void 0 : I.items
254
268
  }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : l("", !0)
255
269
  ], 64);
256
270
  }), 128)),
257
- e.isDiscriminator && e.discriminatorMapping && e.compact ? (t(), u(me, {
271
+ e.isDiscriminator && e.discriminatorMapping && e.compact ? (t(), h(se, {
258
272
  key: 6,
259
273
  "discriminator-mapping": e.discriminatorMapping,
260
- discriminator: K.value,
261
- "onUpdate:modelValue": P
274
+ discriminator: Z.value,
275
+ "onUpdate:modelValue": j
262
276
  }, null, 8, ["discriminator-mapping", "discriminator"])) : l("", !0),
263
- m(p(de), { value: n.value }, null, 8, ["value"])
277
+ m(p(me), { value: i.value }, null, 8, ["value"])
264
278
  ];
265
279
  }),
266
280
  _: 1
@@ -269,5 +283,5 @@ const ce = {
269
283
  }
270
284
  });
271
285
  export {
272
- we as default
286
+ Ve as default
273
287
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA4ZA,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;WAyVT,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":"AAsUA,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,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;AAmFF,iBAAS,cAAc;WAyVT,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 r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a92839e2"]]);
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-5af5a0b2"]]);
5
5
  export {
6
6
  m as default
7
7
  };