@scalar/api-reference 1.35.5 → 1.35.6

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 (217) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/browser/standalone.js +18150 -18465
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/WithBreadcrumb.vue2.js +8 -11
  5. package/dist/components/ApiReference.vue.js +1 -1
  6. package/dist/components/ApiReferenceLayout.vue.js +4 -4
  7. package/dist/components/ApiReferenceLayout.vue2.js +247 -268
  8. package/dist/components/Badge/Badge.vue.js +1 -1
  9. package/dist/components/ClassicHeader.vue.js +1 -1
  10. package/dist/components/Content/Content.vue.js +145 -169
  11. package/dist/components/Content/Content.vue3.js +1 -1
  12. package/dist/components/Content/Models/ClassicLayout.vue.js +1 -1
  13. package/dist/components/Content/Models/ClassicLayout.vue2.js +32 -35
  14. package/dist/components/Content/Models/Models.vue.js +27 -31
  15. package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
  16. package/dist/components/Content/Operations/TraversedEntry.vue.js +32 -35
  17. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +26 -27
  18. package/dist/components/Content/Operations/get-current-index.js +1 -1
  19. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  20. package/dist/components/Content/Schema/Schema.vue2.js +68 -74
  21. package/dist/components/Content/Schema/SchemaComposition.vue.js +42 -45
  22. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +1 -1
  23. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
  24. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +45 -50
  25. package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
  26. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +41 -48
  27. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  28. package/dist/components/Content/Schema/SchemaProperty.vue2.js +142 -157
  29. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +1 -1
  30. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +1 -1
  31. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  32. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +160 -164
  33. package/dist/components/Content/Schema/helpers/get-schema-type.js +15 -17
  34. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +74 -77
  35. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +10 -11
  36. package/dist/components/Content/Tags/ClassicLayout.vue.js +1 -1
  37. package/dist/components/Content/Tags/ClassicLayout.vue2.js +36 -39
  38. package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
  39. package/dist/components/Content/Tags/ModernLayout.vue2.js +31 -35
  40. package/dist/components/Content/Tags/TagSection.vue.js +86 -92
  41. package/dist/components/GettingStarted.vue.js +1 -1
  42. package/dist/components/LinkList/LinkList.vue.js +1 -1
  43. package/dist/components/LoadingSkeleton.vue.js +1 -1
  44. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  45. package/dist/components/MobileHeader.vue.js +3 -3
  46. package/dist/components/MobileHeader.vue2.js +13 -12
  47. package/dist/components/OperationPath.vue.js +1 -1
  48. package/dist/components/OperationsList/OperationsList.vue.js +1 -1
  49. package/dist/components/OperationsList/OperationsList.vue2.js +45 -51
  50. package/dist/components/OperationsList/OperationsListItem.vue.js +1 -1
  51. package/dist/components/ScreenReader.vue.js +1 -1
  52. package/dist/components/Section/CompactSection.vue.js +1 -1
  53. package/dist/components/Section/Section.vue.js +1 -1
  54. package/dist/components/Section/Section.vue2.js +13 -14
  55. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  56. package/dist/components/Section/SectionAccordion.vue2.js +29 -30
  57. package/dist/components/Section/SectionColumn.vue.js +1 -1
  58. package/dist/components/Section/SectionColumns.vue.js +1 -1
  59. package/dist/components/Section/SectionContainer.vue.js +1 -1
  60. package/dist/components/Section/SectionContainerAccordion.vue.js +1 -1
  61. package/dist/components/Section/SectionContent.vue.js +1 -1
  62. package/dist/components/Section/SectionHeader.vue.js +1 -1
  63. package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
  64. package/dist/components/SectionFlare/SectionFlare.vue.js +1 -1
  65. package/dist/components/ShowMoreButton.vue.js +1 -1
  66. package/dist/components/ShowMoreButton.vue2.js +12 -13
  67. package/dist/features/Operation/Operation.vue.js +31 -36
  68. package/dist/features/Operation/components/Headers.vue.js +1 -1
  69. package/dist/features/Operation/components/OperationParameters.vue.js +8 -11
  70. package/dist/features/Operation/components/ParameterList.vue.js +21 -24
  71. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  72. package/dist/features/Operation/components/ParameterListItem.vue2.js +36 -37
  73. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  74. package/dist/features/Operation/components/RequestBody.vue2.js +45 -52
  75. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  76. package/dist/features/Operation/components/callbacks/Callback.vue2.js +32 -35
  77. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  78. package/dist/features/Operation/layouts/ClassicLayout.vue.js +4 -4
  79. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +114 -119
  80. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  81. package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
  82. package/dist/features/Operation/layouts/ModernLayout.vue2.js +87 -89
  83. package/dist/features/Search/components/SearchButton.vue.js +23 -25
  84. package/dist/features/Search/components/SearchModal.vue.js +1 -1
  85. package/dist/features/Search/components/SearchModal.vue2.js +53 -54
  86. package/dist/features/api-client-modal/ApiClientModal.vue.js +31 -38
  87. package/dist/features/document-source/hooks/useDocumentFetcher.js +17 -18
  88. package/dist/features/document-source/hooks/useDocumentSource.js +16 -16
  89. package/dist/features/example-responses/ExampleResponse.vue.js +1 -1
  90. package/dist/features/example-responses/ExampleResponse.vue2.js +23 -26
  91. package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
  92. package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
  93. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  94. package/dist/features/example-responses/ExampleResponses.vue2.js +128 -153
  95. package/dist/features/info-object/Contact.vue.js +24 -27
  96. package/dist/features/info-object/License.vue.js +26 -29
  97. package/dist/features/multiple-documents/DocumentSelector.vue.js +22 -31
  98. package/dist/features/multiple-documents/useMultipleDocuments.js +52 -56
  99. package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -1
  100. package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
  101. package/dist/features/sidebar/components/Sidebar.vue2.js +74 -79
  102. package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
  103. package/dist/features/sidebar/components/SidebarElement.vue2.js +52 -53
  104. package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
  105. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
  106. package/dist/features/specification-extension/SpecificationExtension.vue2.js +28 -31
  107. package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
  108. package/dist/features/test-request-button/TestRequestButton.vue2.js +1 -2
  109. package/dist/features/traverse-schema/helpers/traverse-description.js +13 -14
  110. package/dist/features/traverse-schema/helpers/traverse-document.js +14 -15
  111. package/dist/features/traverse-schema/helpers/traverse-paths.js +20 -23
  112. package/dist/features/traverse-schema/helpers/traverse-schemas.js +13 -15
  113. package/dist/features/traverse-schema/helpers/traverse-webhooks.js +8 -10
  114. package/dist/hooks/useFreezing.js +14 -14
  115. package/dist/hooks/useNavState.js +37 -39
  116. package/dist/index.js +2 -2
  117. package/dist/libs/openapi.js +28 -31
  118. package/dist/style.css +1 -1
  119. package/dist/v2/ApiReferenceWorkspace.vue.js +68 -75
  120. package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
  121. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
  122. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +116 -135
  123. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +40 -47
  124. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +45 -46
  125. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +109 -125
  126. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +1 -1
  127. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +84 -84
  128. package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.js +12 -13
  129. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +1 -1
  130. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +1 -4
  131. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +1 -1
  132. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +77 -82
  133. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +1 -1
  134. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +46 -49
  135. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.js +1 -1
  136. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.js +1 -1
  137. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +1 -1
  138. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +1 -1
  139. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +74 -89
  140. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +24 -27
  141. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +1 -1
  142. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +106 -119
  143. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +11 -12
  144. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +3 -3
  145. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.js +11 -14
  146. package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +45 -48
  147. package/dist/v2/helpers/get-document-name.js +10 -10
  148. package/dist/v2/helpers/map-configuration.js +48 -51
  149. package/dist/v2/hooks/use-legacy-store-events.js +44 -48
  150. package/dist/v2/hooks/use-workspace-store-events.js +23 -26
  151. package/package.json +22 -22
  152. package/dist/components/ApiReferenceLayout.vue3.js +0 -4
  153. package/dist/components/ApiReferenceLayout.vue4.js +0 -4
  154. package/dist/components/ApiReferenceLayout.vue5.js +0 -4
  155. package/dist/components/ApiReferenceLayout.vue6.js +0 -4
  156. package/dist/components/Badge/Badge.vue3.js +0 -4
  157. package/dist/components/ClassicHeader.vue2.js +0 -4
  158. package/dist/components/Content/Content.vue2.js +0 -4
  159. package/dist/components/Content/Models/ClassicLayout.vue3.js +0 -4
  160. package/dist/components/Content/Models/ModernLayout.vue3.js +0 -4
  161. package/dist/components/Content/Schema/Schema.vue3.js +0 -4
  162. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +0 -4
  163. package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +0 -4
  164. package/dist/components/Content/Schema/SchemaHeading.vue3.js +0 -4
  165. package/dist/components/Content/Schema/SchemaProperty.vue3.js +0 -4
  166. package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +0 -4
  167. package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +0 -4
  168. package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +0 -4
  169. package/dist/components/Content/Tags/ClassicLayout.vue3.js +0 -4
  170. package/dist/components/Content/Tags/ModernLayout.vue3.js +0 -4
  171. package/dist/components/GettingStarted.vue3.js +0 -4
  172. package/dist/components/LinkList/LinkList.vue3.js +0 -4
  173. package/dist/components/LoadingSkeleton.vue3.js +0 -4
  174. package/dist/components/MobileHeader.vue3.js +0 -4
  175. package/dist/components/OperationPath.vue3.js +0 -4
  176. package/dist/components/OperationsList/OperationsList.vue3.js +0 -4
  177. package/dist/components/OperationsList/OperationsListItem.vue3.js +0 -4
  178. package/dist/components/ScreenReader.vue3.js +0 -4
  179. package/dist/components/Section/CompactSection.vue3.js +0 -4
  180. package/dist/components/Section/Section.vue3.js +0 -4
  181. package/dist/components/Section/SectionAccordion.vue3.js +0 -4
  182. package/dist/components/Section/SectionColumn.vue2.js +0 -4
  183. package/dist/components/Section/SectionColumns.vue2.js +0 -4
  184. package/dist/components/Section/SectionContainer.vue3.js +0 -4
  185. package/dist/components/Section/SectionContainerAccordion.vue3.js +0 -4
  186. package/dist/components/Section/SectionContent.vue3.js +0 -4
  187. package/dist/components/Section/SectionHeader.vue3.js +0 -4
  188. package/dist/components/Section/SectionHeaderTag.vue3.js +0 -4
  189. package/dist/components/SectionFlare/SectionFlare.vue2.js +0 -4
  190. package/dist/components/ShowMoreButton.vue3.js +0 -4
  191. package/dist/features/Operation/components/Headers.vue3.js +0 -4
  192. package/dist/features/Operation/components/ParameterListItem.vue3.js +0 -4
  193. package/dist/features/Operation/components/RequestBody.vue3.js +0 -4
  194. package/dist/features/Operation/components/callbacks/Callback.vue3.js +0 -4
  195. package/dist/features/Operation/layouts/ClassicLayout.vue3.js +0 -4
  196. package/dist/features/Operation/layouts/ModernLayout.vue3.js +0 -4
  197. package/dist/features/Search/components/SearchModal.vue3.js +0 -4
  198. package/dist/features/example-responses/ExampleResponse.vue3.js +0 -4
  199. package/dist/features/example-responses/ExampleResponseTab.vue3.js +0 -4
  200. package/dist/features/example-responses/ExampleResponseTabList.vue3.js +0 -4
  201. package/dist/features/example-responses/ExampleResponses.vue3.js +0 -4
  202. package/dist/features/sidebar/components/Sidebar.vue3.js +0 -4
  203. package/dist/features/sidebar/components/SidebarElement.vue3.js +0 -4
  204. package/dist/features/sidebar/components/SidebarGroup.vue3.js +0 -4
  205. package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +0 -4
  206. package/dist/features/test-request-button/TestRequestButton.vue3.js +0 -4
  207. package/dist/v2/ApiReferenceWorkspace.vue2.js +0 -4
  208. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue3.js +0 -4
  209. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue3.js +0 -4
  210. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue3.js +0 -4
  211. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue3.js +0 -4
  212. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue3.js +0 -4
  213. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue3.js +0 -4
  214. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue3.js +0 -4
  215. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue2.js +0 -4
  216. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue3.js +0 -4
  217. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +0 -4
@@ -1,77 +1,72 @@
1
- import { defineComponent as C, computed as s, ref as L, createElementBlock as m, createCommentVNode as d, openBlock as n, createElementVNode as V, Fragment as h, renderList as y, createBlock as S, createVNode as E, unref as N, withCtx as D, createTextVNode as B, normalizeClass as T, toDisplayString as H } from "vue";
2
- import { ScalarButton as P } from "@scalar/components";
3
- import { ScalarIconPlus as _ } from "@scalar/icons";
4
- import { getResolvedRef as $ } from "@scalar/workspace-store/helpers/get-resolved-ref";
5
- import { isArraySchema as w } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
6
- import b from "./SchemaEnumPropertyItem.vue.js";
7
- const R = {
1
+ import { defineComponent as I, computed as u, ref as A, createElementBlock as c, createCommentVNode as v, openBlock as a, createElementVNode as C, Fragment as p, renderList as g, createBlock as h, createVNode as y, unref as S, withCtx as L, createTextVNode as V, normalizeClass as D, toDisplayString as B } from "vue";
2
+ import { ScalarButton as T } from "@scalar/components";
3
+ import { ScalarIconPlus as H } from "@scalar/icons";
4
+ import { getResolvedRef as P } from "@scalar/workspace-store/helpers/get-resolved-ref";
5
+ import { isArraySchema as _ } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
6
+ import E from "./SchemaEnumPropertyItem.vue.js";
7
+ const $ = {
8
8
  key: 0,
9
9
  class: "property-enum"
10
- }, U = { class: "property-enum-values" }, O = { key: 1 }, j = 9, z = 5, k = " ", J = /* @__PURE__ */ C({
10
+ }, w = { class: "property-enum-values" }, R = { key: 1 }, U = 9, O = 5, N = " ", q = /* @__PURE__ */ I({
11
11
  __name: "SchemaEnumValues",
12
12
  props: {
13
13
  value: {}
14
14
  },
15
- setup(l) {
16
- const r = s(() => {
17
- var a;
18
- return l.value ? l.value.enum || w(l.value) && ((a = $(l.value.items)) == null ? void 0 : a.enum) || [] : [];
19
- }), v = s(
20
- () => r.value.length > j
21
- ), i = s(
22
- () => v.value ? z : r.value.length
23
- ), x = s(
24
- () => r.value.slice(0, i.value)
25
- ), I = s(
26
- () => r.value.slice(i.value)
27
- ), f = (a, c) => {
28
- var t, u;
29
- const e = ((t = l.value) == null ? void 0 : t["x-enumDescriptions"]) ?? ((u = l.value) == null ? void 0 : u["x-enum-descriptions"]);
15
+ setup(t) {
16
+ const n = u(() => t.value ? t.value.enum || _(t.value) && P(t.value.items)?.enum || [] : []), m = u(
17
+ () => n.value.length > U
18
+ ), s = u(
19
+ () => m.value ? O : n.value.length
20
+ ), b = u(
21
+ () => n.value.slice(0, s.value)
22
+ ), k = u(
23
+ () => n.value.slice(s.value)
24
+ ), d = (o, i) => {
25
+ const e = t.value?.["x-enumDescriptions"] ?? t.value?.["x-enum-descriptions"];
30
26
  if (e) {
31
27
  if (Array.isArray(e))
32
- return e[c];
28
+ return e[i];
33
29
  if (typeof e == "object" && e !== null)
34
- return e[String(a)];
30
+ return e[String(o)];
35
31
  }
36
- }, p = (a, c) => {
37
- var u, g;
38
- const e = ((u = l.value) == null ? void 0 : u["x-enum-varnames"]) ?? ((g = l.value) == null ? void 0 : g["x-enumNames"]), t = Array.isArray(e) ? e[c] : void 0;
39
- return t ? `${a}${k}=${k}${t}` : String(a);
40
- }, o = L(!1), A = () => {
41
- o.value = !o.value;
32
+ }, f = (o, i) => {
33
+ const e = t.value?.["x-enum-varnames"] ?? t.value?.["x-enumNames"], l = Array.isArray(e) ? e[i] : void 0;
34
+ return l ? `${o}${N}=${N}${l}` : String(o);
35
+ }, r = A(!1), x = () => {
36
+ r.value = !r.value;
42
37
  };
43
- return (a, c) => r.value.length > 0 ? (n(), m("div", R, [
44
- V("ul", U, [
45
- (n(!0), m(h, null, y(x.value, (e, t) => (n(), S(b, {
38
+ return (o, i) => n.value.length > 0 ? (a(), c("div", $, [
39
+ C("ul", w, [
40
+ (a(!0), c(p, null, g(b.value, (e, l) => (a(), h(E, {
46
41
  key: String(e),
47
- description: f(e, t),
48
- label: p(e, t)
42
+ description: d(e, l),
43
+ label: f(e, l)
49
44
  }, null, 8, ["description", "label"]))), 128)),
50
- v.value && o.value ? (n(!0), m(h, { key: 0 }, y(I.value, (e, t) => (n(), S(b, {
45
+ m.value && r.value ? (a(!0), c(p, { key: 0 }, g(k.value, (e, l) => (a(), h(E, {
51
46
  key: String(e),
52
- description: f(e, i.value + t),
53
- label: p(e, i.value + t)
54
- }, null, 8, ["description", "label"]))), 128)) : d("", !0),
55
- v.value ? (n(), m("li", O, [
56
- E(N(P), {
47
+ description: d(e, s.value + l),
48
+ label: f(e, s.value + l)
49
+ }, null, 8, ["description", "label"]))), 128)) : v("", !0),
50
+ m.value ? (a(), c("li", R, [
51
+ y(S(T), {
57
52
  class: "enum-toggle-button my-2 flex h-fit gap-1 rounded-full border py-1.5 pr-2.5 pl-2 leading-none",
58
53
  variant: "ghost",
59
- onClick: A
54
+ onClick: x
60
55
  }, {
61
- default: D(() => [
62
- E(N(_), {
63
- class: T({ "rotate-45": o.value }),
56
+ default: L(() => [
57
+ y(S(H), {
58
+ class: D({ "rotate-45": r.value }),
64
59
  weight: "bold"
65
60
  }, null, 8, ["class"]),
66
- B(" " + H(o.value ? "Hide values" : "Show all values"), 1)
61
+ V(" " + B(r.value ? "Hide values" : "Show all values"), 1)
67
62
  ]),
68
63
  _: 1
69
64
  })
70
- ])) : d("", !0)
65
+ ])) : v("", !0)
71
66
  ])
72
- ])) : d("", !0);
67
+ ])) : v("", !0);
73
68
  }
74
69
  });
75
70
  export {
76
- J as default
71
+ q as default
77
72
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./SchemaHeading.vue2.js";
2
- import "./SchemaHeading.vue3.js";
2
+ /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0759195c"]]);
5
5
  export {
@@ -1,8 +1,8 @@
1
- import { defineComponent as W, computed as B, createElementBlock as s, openBlock as d, Fragment as h, createCommentVNode as c, createBlock as u, unref as o, renderList as N } from "vue";
2
- import { getResolvedRef as m } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- import { isTypeObject as l } from "./helpers/is-type-object.js";
4
- import y from "./SchemaProperty.vue.js";
5
- const k = /* @__PURE__ */ W({
1
+ import { defineComponent as R, computed as P, createElementBlock as l, openBlock as t, Fragment as s, createCommentVNode as h, createBlock as c, unref as n, renderList as f } from "vue";
2
+ import { getResolvedRef as o } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { isTypeObject as m } from "./helpers/is-type-object.js";
4
+ import u from "./SchemaProperty.vue.js";
5
+ const j = /* @__PURE__ */ R({
6
6
  __name: "SchemaObjectProperties",
7
7
  props: {
8
8
  schema: {},
@@ -18,16 +18,15 @@ const k = /* @__PURE__ */ W({
18
18
  orderRequiredPropertiesFirst: { default: !0 }
19
19
  },
20
20
  setup(r) {
21
- const g = B(() => {
22
- if (!l(r.schema) || !r.schema.properties)
21
+ const v = P(() => {
22
+ if (!m(r.schema) || !r.schema.properties)
23
23
  return [];
24
- const e = Object.keys(r.schema.properties), t = new Set(r.schema.required || []);
25
- return e.sort((i, a) => {
26
- var f, v;
27
- const n = i === ((f = r.discriminator) == null ? void 0 : f.propertyName), p = a === ((v = r.discriminator) == null ? void 0 : v.propertyName), b = t.has(i), O = t.has(a);
28
- if (n && !p)
24
+ const e = Object.keys(r.schema.properties), a = new Set(r.schema.required || []);
25
+ return e.sort((i, d) => {
26
+ const y = i === r.discriminator?.propertyName, p = d === r.discriminator?.propertyName, b = a.has(i), O = a.has(d);
27
+ if (y && !p)
29
28
  return -1;
30
- if (!n && p)
29
+ if (!y && p)
31
30
  return 1;
32
31
  if (r.orderRequiredPropertiesFirst) {
33
32
  if (b && !O)
@@ -35,38 +34,18 @@ const k = /* @__PURE__ */ W({
35
34
  if (!b && O)
36
35
  return 1;
37
36
  }
38
- return r.orderSchemaPropertiesBy === "alpha" ? i.localeCompare(a) : 0;
39
- }).filter((i) => {
40
- var a, n;
41
- return r.hideReadOnly ? !(r.schema.properties && ((a = m(r.schema.properties[i])) == null ? void 0 : a.readOnly) === !0) : r.hideWriteOnly ? !(r.schema.properties && ((n = m(r.schema.properties[i])) == null ? void 0 : n.writeOnly) === !0) : !0;
42
- });
43
- }), R = (e) => {
44
- const t = m(e);
45
- return typeof t == "object" && typeof t["x-additionalPropertiesName"] == "string" && t["x-additionalPropertiesName"].trim().length > 0 ? `${t["x-additionalPropertiesName"].trim()}*` : "propertyName*";
46
- }, P = (e) => e === !0 || typeof e == "object" && Object.keys(e).length === 0 || typeof e != "object" || !("type" in e) ? {
37
+ return r.orderSchemaPropertiesBy === "alpha" ? i.localeCompare(d) : 0;
38
+ }).filter((i) => r.hideReadOnly ? !(r.schema.properties && o(r.schema.properties[i])?.readOnly === !0) : r.hideWriteOnly ? !(r.schema.properties && o(r.schema.properties[i])?.writeOnly === !0) : !0);
39
+ }), N = (e) => {
40
+ const a = o(e);
41
+ return typeof a == "object" && typeof a["x-additionalPropertiesName"] == "string" && a["x-additionalPropertiesName"].trim().length > 0 ? `${a["x-additionalPropertiesName"].trim()}*` : "propertyName*";
42
+ }, g = (e) => e === !0 || typeof e == "object" && Object.keys(e).length === 0 || typeof e != "object" || !("type" in e) ? {
47
43
  // @ts-expect-error - ask hans
48
44
  type: "anything",
49
45
  ...typeof e == "object" ? e : {}
50
46
  } : e;
51
- return (e, t) => (d(), s(h, null, [
52
- o(l)(e.schema) && e.schema.properties ? (d(!0), s(h, { key: 0 }, N(g.value, (i) => {
53
- var a;
54
- return d(), u(y, {
55
- key: i,
56
- breadcrumb: e.breadcrumb,
57
- compact: e.compact,
58
- discriminator: e.discriminator,
59
- hideHeading: e.hideHeading,
60
- hideModelNames: e.hideModelNames,
61
- hideReadOnly: e.hideReadOnly,
62
- hideWriteOnly: e.hideWriteOnly,
63
- level: e.level,
64
- name: i,
65
- required: (a = e.schema.required) == null ? void 0 : a.includes(i),
66
- value: o(m)(e.schema.properties[i])
67
- }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "required", "value"]);
68
- }), 128)) : c("", !0),
69
- o(l)(e.schema) && e.schema.patternProperties ? (d(!0), s(h, { key: 1 }, N(Object.entries(e.schema.patternProperties), ([i, a]) => (d(), u(y, {
47
+ return (e, a) => (t(), l(s, null, [
48
+ n(m)(e.schema) && e.schema.properties ? (t(!0), l(s, { key: 0 }, f(v.value, (i) => (t(), c(u, {
70
49
  key: i,
71
50
  breadcrumb: e.breadcrumb,
72
51
  compact: e.compact,
@@ -77,9 +56,23 @@ const k = /* @__PURE__ */ W({
77
56
  hideWriteOnly: e.hideWriteOnly,
78
57
  level: e.level,
79
58
  name: i,
80
- value: o(m)(a)
81
- }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "value"]))), 128)) : c("", !0),
82
- o(l)(e.schema) && e.schema.additionalProperties ? (d(), u(y, {
59
+ required: e.schema.required?.includes(i),
60
+ value: n(o)(e.schema.properties[i])
61
+ }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "required", "value"]))), 128)) : h("", !0),
62
+ n(m)(e.schema) && e.schema.patternProperties ? (t(!0), l(s, { key: 1 }, f(Object.entries(e.schema.patternProperties), ([i, d]) => (t(), c(u, {
63
+ key: i,
64
+ breadcrumb: e.breadcrumb,
65
+ compact: e.compact,
66
+ discriminator: e.discriminator,
67
+ hideHeading: e.hideHeading,
68
+ hideModelNames: e.hideModelNames,
69
+ hideReadOnly: e.hideReadOnly,
70
+ hideWriteOnly: e.hideWriteOnly,
71
+ level: e.level,
72
+ name: i,
73
+ value: n(o)(d)
74
+ }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "value"]))), 128)) : h("", !0),
75
+ n(m)(e.schema) && e.schema.additionalProperties ? (t(), c(u, {
83
76
  key: 2,
84
77
  breadcrumb: e.breadcrumb,
85
78
  compact: e.compact,
@@ -89,14 +82,14 @@ const k = /* @__PURE__ */ W({
89
82
  hideReadOnly: e.hideReadOnly,
90
83
  hideWriteOnly: e.hideWriteOnly,
91
84
  level: e.level,
92
- name: R(e.schema.additionalProperties),
85
+ name: N(e.schema.additionalProperties),
93
86
  noncollapsible: "",
94
- value: P(e.schema.additionalProperties),
87
+ value: g(e.schema.additionalProperties),
95
88
  variant: "additionalProperties"
96
- }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "value"])) : c("", !0)
89
+ }, null, 8, ["breadcrumb", "compact", "discriminator", "hideHeading", "hideModelNames", "hideReadOnly", "hideWriteOnly", "level", "name", "value"])) : h("", !0)
97
90
  ], 64));
98
91
  }
99
92
  });
100
93
  export {
101
- k as default
94
+ j as default
102
95
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
- import "./SchemaProperty.vue3.js";
2
+ /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7569fa08"]]);
5
5
  export {
@@ -1,36 +1,36 @@
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 _ = {
1
+ import { defineComponent as V, computed as t, createBlock as p, openBlock as r, resolveDynamicComponent as w, normalizeClass as A, withCtx as c, createCommentVNode as s, createElementBlock as i, createVNode as d, createSlots as T, unref as l, toDisplayString as y, Fragment as v, createTextVNode as k, renderList as q } from "vue";
2
+ import { ScalarMarkdown as R } from "@scalar/components";
3
+ import { isDefined as E } from "@scalar/helpers/array/is-defined";
4
+ import { getResolvedRef as f } from "@scalar/workspace-store/helpers/get-resolved-ref";
5
+ import { isArraySchema as u } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
6
+ import { isTypeObject as F } from "./helpers/is-type-object.js";
7
+ import { optimizeValueForDisplay as M } from "./helpers/optimize-value-for-display.js";
8
+ import { compositions as $ } from "./helpers/schema-composition.js";
9
+ import P from "./Schema.vue.js";
10
+ import I from "./SchemaComposition.vue.js";
11
+ import z from "./SchemaEnumValues.vue.js";
12
+ import U from "./SchemaPropertyHeading.vue.js";
13
+ import Z from "../../Anchor/WithBreadcrumb.vue2.js";
14
+ import L from "../../../features/specification-extension/SpecificationExtension.vue2.js";
15
+ const G = {
16
16
  key: 0,
17
17
  class: "property-name-pattern-properties"
18
- }, x = {
18
+ }, J = {
19
19
  key: 1,
20
20
  class: "property-name-additional-properties"
21
- }, ee = {
21
+ }, K = {
22
22
  key: 1,
23
23
  class: "property-description"
24
- }, ne = {
24
+ }, Q = {
25
25
  key: 2,
26
26
  class: "property-description"
27
- }, re = {
27
+ }, X = {
28
28
  key: 4,
29
29
  class: "children"
30
- }, ie = {
30
+ }, Y = {
31
31
  key: 0,
32
32
  class: "children"
33
- }, ve = /* @__PURE__ */ F({
33
+ }, pe = /* @__PURE__ */ V({
34
34
  __name: "SchemaProperty",
35
35
  props: {
36
36
  is: {},
@@ -49,8 +49,8 @@ const _ = {
49
49
  variant: {},
50
50
  breadcrumb: {}
51
51
  },
52
- setup(D) {
53
- const u = D, v = {
52
+ setup(B) {
53
+ const m = B, h = {
54
54
  integer: {
55
55
  _default: "Integer numbers.",
56
56
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -64,144 +64,129 @@ const _ = {
64
64
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
65
65
  binary: "binary data, used to describe files"
66
66
  }
67
- }, O = (e) => !e || !v[e.type] ? null : v[e.type][e.format || e.contentEncoding || "_default"], H = (e) => {
68
- var r;
69
- return (e == null ? void 0 : e.enum) || ((r = e == null ? void 0 : e.items) == null ? void 0 : r.enum) || [];
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")
67
+ }, b = (e) => !e || !h[e.type] ? null : h[e.type][e.format || e.contentEncoding || "_default"], C = (e) => e?.enum || e?.items?.enum || [], a = t(() => M(m.value)), O = t(() => {
68
+ const e = a.value;
69
+ return !e || "properties" in e || "additionalProperties" in e || "patternProperties" in e || e?.allOf || e?.allOf ? null : m.description || e?.description || null;
70
+ }), j = (e, n, o) => n || e?.deprecated || e?.const !== void 0 || e?.enum && e.enum.length === 1 || e?.type || e?.nullable === !0 || e?.writeOnly || e?.readOnly || o, g = t(() => {
71
+ const e = a.value;
72
+ if (!e || !u(e) || typeof e.items != "object")
76
73
  return !1;
77
- const r = e.items;
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)
74
+ const n = e.items;
75
+ return "type" in n && n.type && (Array.isArray(n.type) ? n.type.includes("object") : ["object"].includes(n.type)) || "properties" in n || "$ref" in n || "discriminator" in n || "allOf" in n || "oneOf" in n || "anyOf" in n;
76
+ }), N = (e) => {
77
+ const n = a.value;
78
+ return n && u(n) === !1 || !n?.items || typeof n.items != "object" || !(e in n.items) ? !1 : !g.value;
79
+ }, S = t(() => g.value), W = t(() => {
80
+ if (!a.value)
84
81
  return !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) : []);
97
- return (e, r) => {
98
- var t;
99
- return i(), c(M(e.is ?? "li"), {
100
- class: $(["property", [
101
- `property--level-${e.level}`,
102
- {
103
- "property--compact": e.compact,
104
- "property--deprecated": (t = n.value) == null ? void 0 : t.deprecated
105
- }
106
- ]])
107
- }, {
108
- default: y(() => {
109
- var p, R, P, B;
110
- return [
111
- V(n.value, e.name, e.required) ? (i(), c(Q, {
112
- key: 0,
113
- class: "group",
114
- enum: H(n.value).length > 0,
115
- hideModelNames: e.hideModelNames,
116
- isDiscriminator: e.discriminator && e.discriminator.propertyName === e.name,
117
- required: e.required,
118
- value: n.value
119
- }, I({ _: 2 }, [
120
- e.name ? {
121
- name: "name",
122
- fn: y(() => [
123
- d(o(X), {
124
- breadcrumb: q.value && e.breadcrumb ? [...e.breadcrumb, e.name] : void 0
125
- }, {
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)
129
- ], 64))
130
- ]),
131
- _: 1
132
- }, 8, ["breadcrumb"])
82
+ const e = a.value, n = F(e), o = "properties" in e || "additionalProperties" in e;
83
+ return n && o;
84
+ }), D = t(() => m.level <= 1), H = t(() => a.value ? $.map((e) => a.value?.[e] && !(u(a.value) && a.value?.items && typeof e == "string" && typeof a.value.items == "object" && e in a.value.items) ? {
85
+ composition: e,
86
+ value: a.value
87
+ } : N(e) && a.value && u(a.value) && a.value.items ? {
88
+ composition: e,
89
+ value: a.value.items
90
+ } : null).filter(E) : []);
91
+ return (e, n) => (r(), p(w(e.is ?? "li"), {
92
+ class: A(["property", [
93
+ `property--level-${e.level}`,
94
+ {
95
+ "property--compact": e.compact,
96
+ "property--deprecated": a.value?.deprecated
97
+ }
98
+ ]])
99
+ }, {
100
+ default: c(() => [
101
+ j(a.value, e.name, e.required) ? (r(), p(U, {
102
+ key: 0,
103
+ class: "group",
104
+ enum: C(a.value).length > 0,
105
+ hideModelNames: e.hideModelNames,
106
+ isDiscriminator: e.discriminator && e.discriminator.propertyName === e.name,
107
+ required: e.required,
108
+ value: a.value
109
+ }, T({ _: 2 }, [
110
+ e.name ? {
111
+ name: "name",
112
+ fn: c(() => [
113
+ d(l(Z), {
114
+ breadcrumb: D.value && e.breadcrumb ? [...e.breadcrumb, e.name] : void 0
115
+ }, {
116
+ default: c(() => [
117
+ e.variant === "patternProperties" ? (r(), i("span", G, y(e.name), 1)) : e.variant === "additionalProperties" ? (r(), i("span", J, y(e.name), 1)) : (r(), i(v, { key: 2 }, [
118
+ k(y(e.name), 1)
119
+ ], 64))
133
120
  ]),
134
- key: "0"
135
- } : void 0,
136
- (p = n.value) != null && p.example ? {
137
- name: "example",
138
- fn: y(() => [
139
- N(" Example: " + f(n.value.example), 1)
140
- ]),
141
- key: "1"
142
- } : void 0
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) || ""
149
- }, null, 8, ["value"])
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, {
157
- breadcrumb: e.breadcrumb && e.name ? [...e.breadcrumb, e.name] : void 0,
158
- compact: e.compact,
159
- hideReadOnly: e.hideReadOnly,
160
- hideWriteOnly: e.hideWriteOnly,
161
- level: e.level + 1,
162
- name: e.name,
163
- noncollapsible: e.noncollapsible,
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
- compact: e.compact,
171
- hideReadOnly: e.hideReadOnly,
172
- hideWriteOnly: e.hideWriteOnly,
173
- level: e.level + 1,
174
- name: e.name,
175
- noncollapsible: e.noncollapsible,
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"]);
196
- }), 128)),
197
- d(o(Y), { value: n.value }, null, 8, ["value"])
198
- ];
199
- }),
200
- _: 1
201
- }, 8, ["class"]);
202
- };
121
+ _: 1
122
+ }, 8, ["breadcrumb"])
123
+ ]),
124
+ key: "0"
125
+ } : void 0,
126
+ a.value?.example ? {
127
+ name: "example",
128
+ fn: c(() => [
129
+ k(" Example: " + y(a.value.example), 1)
130
+ ]),
131
+ key: "1"
132
+ } : void 0
133
+ ]), 1032, ["enum", "hideModelNames", "isDiscriminator", "required", "value"])) : s("", !0),
134
+ O.value ? (r(), i("div", K, [
135
+ d(l(R), { value: O.value }, null, 8, ["value"])
136
+ ])) : b(a.value) ? (r(), i("div", Q, [
137
+ d(l(R), {
138
+ value: b(a.value) || ""
139
+ }, null, 8, ["value"])
140
+ ])) : s("", !0),
141
+ (a.value?.enum || a.value && l(u)(a.value) && l(f)(a.value?.items)?.enum || []).length ? (r(), p(z, {
142
+ key: 3,
143
+ value: a.value
144
+ }, null, 8, ["value"])) : s("", !0),
145
+ W.value ? (r(), i("div", X, [
146
+ d(P, {
147
+ breadcrumb: e.breadcrumb && e.name ? [...e.breadcrumb, e.name] : void 0,
148
+ compact: e.compact,
149
+ hideReadOnly: e.hideReadOnly,
150
+ hideWriteOnly: e.hideWriteOnly,
151
+ level: e.level + 1,
152
+ name: e.name,
153
+ noncollapsible: e.noncollapsible,
154
+ schema: a.value
155
+ }, null, 8, ["breadcrumb", "compact", "hideReadOnly", "hideWriteOnly", "level", "name", "noncollapsible", "schema"])
156
+ ])) : s("", !0),
157
+ a.value && l(u)(a.value) && typeof a.value.items == "object" ? (r(), i(v, { key: 5 }, [
158
+ S.value ? (r(), i("div", Y, [
159
+ d(P, {
160
+ compact: e.compact,
161
+ hideReadOnly: e.hideReadOnly,
162
+ hideWriteOnly: e.hideWriteOnly,
163
+ level: e.level + 1,
164
+ name: e.name,
165
+ noncollapsible: e.noncollapsible,
166
+ schema: l(f)(a.value.items)
167
+ }, null, 8, ["compact", "hideReadOnly", "hideWriteOnly", "level", "name", "noncollapsible", "schema"])
168
+ ])) : s("", !0)
169
+ ], 64)) : s("", !0),
170
+ (r(!0), i(v, null, q(H.value, (o) => (r(), p(I, {
171
+ key: o.composition,
172
+ breadcrumb: e.breadcrumb,
173
+ compact: e.compact,
174
+ composition: o.composition,
175
+ discriminator: e.value?.discriminator,
176
+ hideHeading: e.hideHeading,
177
+ hideReadOnly: e.hideReadOnly,
178
+ hideWriteOnly: e.hideWriteOnly,
179
+ level: e.level,
180
+ name: e.name,
181
+ noncollapsible: e.noncollapsible,
182
+ value: l(f)(m.value)
183
+ }, null, 8, ["breadcrumb", "compact", "composition", "discriminator", "hideHeading", "hideReadOnly", "hideWriteOnly", "level", "name", "noncollapsible", "value"]))), 128)),
184
+ d(l(L), { value: a.value }, null, 8, ["value"])
185
+ ]),
186
+ _: 1
187
+ }, 8, ["class"]));
203
188
  }
204
189
  });
205
190
  export {
206
- ve as default
191
+ pe as default
207
192
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./SchemaPropertyDetail.vue2.js";
2
- import "./SchemaPropertyDetail.vue3.js";
2
+ /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-827ea49d"]]);
5
5
  export {