@scalar/api-reference 1.32.6 → 1.32.8

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 (186) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/browser/standalone.js +16427 -16210
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue2.js +2 -1
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +8 -8
  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 +164 -176
  10. package/dist/components/Badge/Badge.vue.js +1 -1
  11. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.js +2 -2
  13. package/dist/components/Content/Content.vue2.js +20 -20
  14. package/dist/components/Content/Models/Models.vue2.js +5 -4
  15. package/dist/components/Content/Models/ModelsAccordion.vue2.js +2 -1
  16. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  18. package/dist/components/Content/Schema/Schema.vue2.js +99 -157
  19. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts +7 -0
  20. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -0
  21. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +7 -0
  22. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +25 -0
  23. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
  25. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +73 -90
  26. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +21 -0
  27. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -0
  28. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +92 -0
  29. package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +4 -0
  30. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -2
  31. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  33. package/dist/components/Content/Schema/SchemaProperty.vue2.js +54 -55
  34. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
  35. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +1 -1
  36. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +0 -2
  37. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  39. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +95 -104
  40. package/dist/components/Content/Schema/helpers/{formatExample.d.ts → format-example.d.ts} +1 -1
  41. package/dist/components/Content/Schema/helpers/format-example.d.ts.map +1 -0
  42. package/dist/components/Content/Schema/helpers/is-type-object.d.ts +3 -0
  43. package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -0
  44. package/dist/components/Content/Schema/helpers/is-type-object.js +17 -0
  45. package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.d.ts → optimize-value-for-display.d.ts} +1 -1
  46. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -0
  47. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  49. package/dist/components/Content/Tag/OperationsList.vue2.js +18 -22
  50. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  51. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  52. package/dist/components/Content/Tag/OperationsListItem.vue2.js +33 -34
  53. package/dist/components/Content/Tag/Tag.vue.js +2 -1
  54. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  55. package/dist/components/GettingStarted.vue2.js +8 -6
  56. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  57. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  58. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  59. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  60. package/dist/components/Section/SectionAccordion.vue2.js +28 -29
  61. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  62. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  63. package/dist/components/Section/SectionContainerAccordion.vue2.js +17 -18
  64. package/dist/features/Operation/Operation.vue.d.ts +6 -6
  65. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  66. package/dist/features/Operation/Operation.vue.js +50 -49
  67. package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
  68. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  69. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
  70. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  71. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  72. package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
  73. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
  74. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  75. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
  76. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
  77. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  78. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  79. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +168 -154
  80. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
  81. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  82. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  83. package/dist/features/Operation/layouts/ModernLayout.vue2.js +113 -117
  84. package/dist/features/Search/SearchButton.vue.js +2 -1
  85. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  86. package/dist/features/Search/SearchModal.vue.js +2 -2
  87. package/dist/features/Search/SearchModal.vue2.js +16 -16
  88. package/dist/features/api-client-modal/useApiClient.d.ts +5338 -5258
  89. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  90. package/dist/features/download-link/DownloadLink.vue2.js +4 -2
  91. package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
  92. package/dist/{components/Card/CardTab.vue.d.ts → features/example-responses/ExampleResponseTab.vue.d.ts} +1 -1
  93. package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -0
  94. package/dist/features/example-responses/ExampleResponseTab.vue.js +7 -0
  95. package/dist/{components/Card/CardTab.vue2.js → features/example-responses/ExampleResponseTab.vue2.js} +6 -6
  96. package/dist/{components/Card/CardTabHeader.vue.d.ts → features/example-responses/ExampleResponseTabList.vue.d.ts} +3 -3
  97. package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -0
  98. package/dist/features/example-responses/ExampleResponseTabList.vue.js +7 -0
  99. package/dist/{components/Card/CardTabHeader.vue2.js → features/example-responses/ExampleResponseTabList.vue2.js} +9 -9
  100. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  101. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  102. package/dist/features/example-responses/ExampleResponses.vue2.js +89 -96
  103. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
  104. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  105. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  106. package/dist/features/test-request-button/TestRequestButton.vue2.js +26 -24
  107. package/dist/helpers/convert-security-scheme.d.ts +9 -0
  108. package/dist/helpers/convert-security-scheme.d.ts.map +1 -0
  109. package/dist/helpers/convert-security-scheme.js +23 -0
  110. package/dist/index.d.ts +0 -2
  111. package/dist/index.d.ts.map +1 -1
  112. package/dist/index.js +15 -29
  113. package/dist/style.css +1 -1
  114. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
  115. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  116. package/dist/v2/ApiReferenceWorkspace.vue.js +114 -86
  117. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +6 -1
  118. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  119. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
  120. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +64 -0
  121. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  122. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
  123. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +212 -0
  124. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +3 -1
  125. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
  126. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +22 -0
  127. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
  128. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
  129. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
  130. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -1
  131. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +1 -1
  132. package/dist/v2/events/definitions.d.ts +6 -6
  133. package/dist/v2/events/definitions.d.ts.map +1 -1
  134. package/dist/v2/events/definitions.js +7 -0
  135. package/dist/v2/events/index.d.ts +1 -1
  136. package/dist/v2/events/listeners.d.ts +1 -1
  137. package/dist/v2/hooks/useStore.d.ts +9 -0
  138. package/dist/v2/hooks/useStore.d.ts.map +1 -0
  139. package/dist/v2/hooks/useStore.js +14 -0
  140. package/package.json +24 -24
  141. package/dist/blocks/constants.js +0 -6
  142. package/dist/blocks/helpers/getPointer.js +0 -12
  143. package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
  144. package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
  145. package/dist/blocks/hooks/useBlockProps.js +0 -24
  146. package/dist/components/Card/Card.vue.d.ts +0 -18
  147. package/dist/components/Card/Card.vue.d.ts.map +0 -1
  148. package/dist/components/Card/Card.vue.js +0 -13
  149. package/dist/components/Card/CardContent.vue.d.ts +0 -19
  150. package/dist/components/Card/CardContent.vue.d.ts.map +0 -1
  151. package/dist/components/Card/CardContent.vue.js +0 -7
  152. package/dist/components/Card/CardContent.vue2.js +0 -27
  153. package/dist/components/Card/CardFooter.vue.d.ts +0 -19
  154. package/dist/components/Card/CardFooter.vue.d.ts.map +0 -1
  155. package/dist/components/Card/CardFooter.vue.js +0 -7
  156. package/dist/components/Card/CardFooter.vue2.js +0 -24
  157. package/dist/components/Card/CardHeader.vue.d.ts +0 -20
  158. package/dist/components/Card/CardHeader.vue.d.ts.map +0 -1
  159. package/dist/components/Card/CardHeader.vue.js +0 -7
  160. package/dist/components/Card/CardHeader.vue2.js +0 -31
  161. package/dist/components/Card/CardTab.vue.d.ts.map +0 -1
  162. package/dist/components/Card/CardTab.vue.js +0 -7
  163. package/dist/components/Card/CardTabHeader.vue.d.ts.map +0 -1
  164. package/dist/components/Card/CardTabHeader.vue.js +0 -7
  165. package/dist/components/Card/index.d.ts +0 -7
  166. package/dist/components/Card/index.d.ts.map +0 -1
  167. package/dist/components/Card/types.d.ts +0 -8
  168. package/dist/components/Card/types.d.ts.map +0 -1
  169. package/dist/components/Content/Schema/helpers/formatExample.d.ts.map +0 -1
  170. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +0 -1
  171. package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
  172. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
  173. package/dist/features/example-request/ExamplePicker.vue.js +0 -7
  174. package/dist/features/example-request/ExamplePicker.vue2.js +0 -56
  175. package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -79
  176. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
  177. package/dist/features/example-request/ExampleRequest.vue.js +0 -7
  178. package/dist/features/example-request/ExampleRequest.vue2.js +0 -359
  179. package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
  180. package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
  181. package/dist/features/example-request/TextSelect.vue.js +0 -48
  182. package/dist/features/example-request/TextSelect.vue3.js +0 -5
  183. package/dist/features/example-request/index.d.ts +0 -3
  184. package/dist/features/example-request/index.d.ts.map +0 -1
  185. /package/dist/components/Content/Schema/helpers/{formatExample.js → format-example.js} +0 -0
  186. /package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.js → optimize-value-for-display.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, computed as p, createElementBlock as i, openBlock as r, Fragment as m, createStaticVNode as H, createElementVNode as M, renderSlot as f, createBlock as s, createCommentVNode as n, unref as t, withCtx as W, createVNode as v, normalizeClass as J, renderList as K } from "vue";
1
+ import { defineComponent as D, computed as p, createElementBlock as l, openBlock as r, Fragment as m, createStaticVNode as H, createElementVNode as M, renderSlot as f, createBlock as s, createCommentVNode as i, unref as t, withCtx as W, createVNode as v, normalizeClass as J, renderList as K } from "vue";
2
2
  import { useWorkspace as P, useActiveEntities as Q } from "@scalar/api-client/store";
3
3
  import { RequestAuth as T } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
4
  import { ScalarErrorBoundary as X } from "@scalar/components";
@@ -15,7 +15,7 @@ import re from "./Models/Models.vue.js";
15
15
  const se = { class: "narrow-references-container" }, ae = {
16
16
  key: 0,
17
17
  class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm leading-normal [--scalar-address-bar-height:0px]"
18
- }, le = {
18
+ }, ce = {
19
19
  key: 1,
20
20
  class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
21
21
  }, Ce = /* @__PURE__ */ D({
@@ -52,8 +52,8 @@ const se = { class: "narrow-references-container" }, ae = {
52
52
  );
53
53
  return (e, k) => {
54
54
  var g, C, b, w, A, V, E, U, $, B, N;
55
- return r(), i(m, null, [
56
- k[0] || (k[0] = H('<div class="section-flare" data-v-3358908f><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div><div class="section-flare-item" data-v-3358908f></div></div>', 1)),
55
+ return r(), l(m, null, [
56
+ k[0] || (k[0] = H('<div class="section-flare" data-v-75c50136><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div><div class="section-flare-item" data-v-75c50136></div></div>', 1)),
57
57
  M("div", se, [
58
58
  f(e.$slots, "start", {}, void 0, !0),
59
59
  o.value ? (r(), s(t(_), {
@@ -63,7 +63,7 @@ const se = { class: "narrow-references-container" }, ae = {
63
63
  layout: e.layout,
64
64
  parsedSpec: e.parsedSpec,
65
65
  server: a.value
66
- }, null, 8, ["document", "collection", "layout", "parsedSpec", "server"])) : n("", !0),
66
+ }, null, 8, ["document", "collection", "layout", "parsedSpec", "server"])) : i("", !0),
67
67
  (C = (g = e.document) == null ? void 0 : g.info) != null && C.title || (w = (b = e.document) == null ? void 0 : b.info) != null && w.description ? (r(), s(t(x), {
68
68
  key: 1,
69
69
  document: e.document
@@ -71,18 +71,18 @@ const se = { class: "narrow-references-container" }, ae = {
71
71
  [O.value]: W(() => [
72
72
  v(t(X), null, {
73
73
  default: W(() => {
74
- var c, l, d;
74
+ var n, c, d;
75
75
  return [
76
76
  M("div", {
77
77
  class: J(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
78
78
  }, [
79
- (l = (c = o.value) == null ? void 0 : c.servers) != null && l.length ? (r(), i("div", ae, [
79
+ (c = (n = o.value) == null ? void 0 : n.servers) != null && c.length ? (r(), l("div", ae, [
80
80
  v(t(ee), {
81
81
  collection: o.value,
82
82
  server: a.value
83
83
  }, null, 8, ["collection", "server"])
84
- ])) : n("", !0),
85
- o.value && t(S) && Object.keys(t(z) ?? {}).length ? (r(), i("div", le, [
84
+ ])) : i("", !0),
85
+ o.value && t(S) && Object.keys(t(z) ?? {}).length ? (r(), l("div", ce, [
86
86
  v(t(T), {
87
87
  collection: o.value,
88
88
  envVariables: t(G),
@@ -94,7 +94,7 @@ const se = { class: "narrow-references-container" }, ae = {
94
94
  title: "Authentication",
95
95
  workspace: t(S)
96
96
  }, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
97
- ])) : n("", !0),
97
+ ])) : i("", !0),
98
98
  v(t(te), { class: "introduction-card-item scalar-reference-intro-clients" })
99
99
  ], 2)
100
100
  ];
@@ -104,18 +104,18 @@ const se = { class: "narrow-references-container" }, ae = {
104
104
  ]),
105
105
  _: 2
106
106
  }, 1032, ["document"])) : f(e.$slots, "empty-state", { key: 2 }, void 0, !0),
107
- e.parsedSpec.tags && o.value ? (r(), i(m, { key: 3 }, [
108
- e.parsedSpec["x-tagGroups"] ? (r(!0), i(m, { key: 0 }, K(e.parsedSpec["x-tagGroups"], (c) => (r(), s(t(y), {
107
+ e.parsedSpec.tags && o.value ? (r(), l(m, { key: 3 }, [
108
+ e.parsedSpec["x-tagGroups"] ? (r(!0), l(m, { key: 0 }, K(e.parsedSpec["x-tagGroups"], (n) => (r(), s(t(y), {
109
109
  document: e.document,
110
- key: c.name,
110
+ key: n.name,
111
111
  collection: o.value,
112
112
  layout: e.layout,
113
113
  server: a.value,
114
114
  spec: e.parsedSpec,
115
- tags: c.tags.map((l) => {
115
+ tags: n.tags.map((c) => {
116
116
  var d;
117
- return (d = e.parsedSpec.tags) == null ? void 0 : d.find((R) => R.name === l);
118
- }).filter((l) => !!l)
117
+ return (d = e.parsedSpec.tags) == null ? void 0 : d.find((R) => R.name === c);
118
+ }).filter((c) => !!c)
119
119
  }, null, 8, ["document", "collection", "layout", "server", "spec", "tags"]))), 128)) : (r(), s(t(y), {
120
120
  key: 1,
121
121
  collection: o.value,
@@ -125,7 +125,7 @@ const se = { class: "narrow-references-container" }, ae = {
125
125
  spec: e.parsedSpec,
126
126
  tags: e.parsedSpec.tags
127
127
  }, null, 8, ["collection", "document", "layout", "server", "spec", "tags"]))
128
- ], 64)) : n("", !0),
128
+ ], 64)) : i("", !0),
129
129
  (A = e.parsedSpec.webhooks) != null && A.length && o.value ? (r(), s(t(y), {
130
130
  key: 4,
131
131
  document: e.document,
@@ -141,8 +141,8 @@ const se = { class: "narrow-references-container" }, ae = {
141
141
  operations: e.parsedSpec.webhooks
142
142
  }
143
143
  ]
144
- }, null, 8, ["document", "collection", "layout", "server", "spec", "tags"])) : n("", !0),
145
- (E = (V = e.document) == null ? void 0 : V.components) != null && E.schemas && !t(u).hideModels ? (r(), i(m, { key: 5 }, [
144
+ }, null, 8, ["document", "collection", "layout", "server", "spec", "tags"])) : i("", !0),
145
+ (E = (V = e.document) == null ? void 0 : V.components) != null && E.schemas && !t(u).hideModels ? (r(), l(m, { key: 5 }, [
146
146
  e.layout === "classic" ? (r(), s(t(oe), {
147
147
  key: 0,
148
148
  schemas: ($ = (U = e.document) == null ? void 0 : U.components) == null ? void 0 : $.schemas
@@ -150,7 +150,7 @@ const se = { class: "narrow-references-container" }, ae = {
150
150
  key: 1,
151
151
  schemas: (N = (B = e.document) == null ? void 0 : B.components) == null ? void 0 : N.schemas
152
152
  }, null, 8, ["schemas"]))
153
- ], 64)) : n("", !0),
153
+ ], 64)) : i("", !0),
154
154
  f(e.$slots, "end", {}, void 0, !0)
155
155
  ])
156
156
  ], 64);
@@ -16,9 +16,9 @@ const v = 10, Z = /* @__PURE__ */ M({
16
16
  props: {
17
17
  schemas: {}
18
18
  },
19
- setup(b) {
20
- const i = b, n = k(), { collapsedSidebarItems: _ } = O(), { getModelId: a } = w(), d = f(
21
- () => Object.keys(i.schemas ?? {}).length <= v || _[a()]
19
+ setup(_) {
20
+ const i = _, n = k(), { collapsedSidebarItems: b } = O(), { getModelId: a } = w(), d = f(
21
+ () => Object.keys(i.schemas ?? {}).length <= v || b[a()]
22
22
  ), y = f(() => {
23
23
  const l = Object.keys(i.schemas ?? {});
24
24
  return d.value ? l : l.slice(0, v);
@@ -39,7 +39,8 @@ const v = 10, Z = /* @__PURE__ */ M({
39
39
  default: t(() => c[0] || (c[0] = [
40
40
  g(" Models ")
41
41
  ])),
42
- _: 1
42
+ _: 1,
43
+ __: [0]
43
44
  }, 8, ["id"])
44
45
  ]),
45
46
  _: 1
@@ -29,7 +29,8 @@ const T = {
29
29
  default: o(() => i[0] || (i[0] = [
30
30
  N("Models")
31
31
  ])),
32
- _: 1
32
+ _: 1,
33
+ __: [0]
33
34
  })
34
35
  ]),
35
36
  default: o(() => [
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AA+fA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAQjE,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,WAAW,CAAC,eAAe,GAC3B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,GAChC,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4BAA4B;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,kCAAkC;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;;;;;;WAtBQ,MAAM;oBAMG,OAAO;oBAKP,OAAO;;AA0mB5B,wBAQG"}
1
+ {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAiZA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAUjE,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,WAAW,CAAC,eAAe,GAC3B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,GAChC,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+FAA+F;IAC/F,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,uCAAuC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4BAA4B;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,kCAAkC;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;;;;;;WAtBQ,MAAM;oBAMG,OAAO;oBAKP,OAAO;;AAgd5B,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Schema.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e2ccf7a4"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-67eca159"]]);
5
5
  export {
6
- r as default
6
+ c as default
7
7
  };
@@ -1,17 +1,19 @@
1
- import { defineComponent as Q, inject as W, computed as p, createBlock as s, createCommentVNode as n, openBlock as i, unref as u, withCtx as v, createElementVNode as I, normalizeClass as P, createElementBlock as d, withDirectives as E, createVNode as k, createTextVNode as M, toDisplayString as H, vShow as R, normalizeStyle as Y, Fragment as m, renderList as $ } from "vue";
2
- import { Disclosure as Z, DisclosureButton as F, DisclosurePanel as _ } from "@headlessui/vue";
3
- import { ScalarMarkdown as x, ScalarIcon as V } from "@scalar/components";
4
- import L from "../../ScreenReader.vue.js";
5
- import { DISCRIMINATOR_CONTEXT as ee } from "../../../hooks/useDiscriminator.js";
6
- import ae from "./SchemaHeading.vue.js";
7
- import b from "./SchemaProperty.vue.js";
8
- const ie = {
1
+ import { defineComponent as U, inject as F, computed as c, createBlock as t, createCommentVNode as n, openBlock as l, unref as s, withCtx as d, createElementVNode as C, normalizeClass as p, createElementBlock as m, withDirectives as T, createVNode as h, createTextVNode as v, toDisplayString as g, vShow as A, normalizeStyle as X, Fragment as f } from "vue";
2
+ import { Disclosure as q, DisclosureButton as j, DisclosurePanel as G } from "@headlessui/vue";
3
+ import { ScalarMarkdown as J, ScalarIcon as k } from "@scalar/components";
4
+ import z from "../../ScreenReader.vue.js";
5
+ import { DISCRIMINATOR_CONTEXT as K } from "../../../hooks/useDiscriminator.js";
6
+ import { isTypeObject as N } from "./helpers/is-type-object.js";
7
+ import L from "./SchemaHeading.vue.js";
8
+ import Q from "./SchemaObjectProperties.vue.js";
9
+ import W from "./SchemaProperty.vue.js";
10
+ const Y = {
9
11
  key: 0,
10
12
  class: "schema-card-description"
11
- }, le = {
13
+ }, Z = {
12
14
  key: 0,
13
15
  class: "schema-properties"
14
- }, ue = /* @__PURE__ */ Q({
16
+ }, te = /* @__PURE__ */ U({
15
17
  __name: "Schema",
16
18
  props: {
17
19
  value: { type: [Object, Boolean] },
@@ -29,118 +31,119 @@ const ie = {
29
31
  hasDiscriminator: { type: Boolean }
30
32
  },
31
33
  emits: ["update:modelValue"],
32
- setup(X, { emit: G }) {
33
- const o = X, J = G, r = W(ee, null), h = p(
34
+ setup(I, { emit: E }) {
35
+ const r = I, R = E, i = F(K, null), M = c(
34
36
  () => {
35
37
  var e;
36
- return ((e = r == null ? void 0 : r.value) == null ? void 0 : e.discriminatorMapping) || o.discriminatorMapping || {};
38
+ return ((e = i == null ? void 0 : i.value) == null ? void 0 : e.discriminatorMapping) || r.discriminatorMapping || {};
37
39
  }
38
- ), c = p(
40
+ ), P = c(
39
41
  () => {
40
42
  var e;
41
- return ((e = r == null ? void 0 : r.value) == null ? void 0 : e.discriminatorPropertyName) || o.discriminatorPropertyName || "";
43
+ return ((e = i == null ? void 0 : i.value) == null ? void 0 : e.discriminatorPropertyName) || r.discriminatorPropertyName || "";
42
44
  }
43
- ), D = p(
45
+ ), S = c(
44
46
  () => {
45
47
  var e;
46
- return ((e = r == null ? void 0 : r.value) == null ? void 0 : e.selectedType) || o.discriminator;
48
+ return ((e = i == null ? void 0 : i.value) == null ? void 0 : e.selectedType) || r.discriminator;
47
49
  }
48
- ), O = (e) => e !== null && typeof e == "object" && "type" in e && e.type === "object", a = p(() => {
49
- var t;
50
- const e = (t = r == null ? void 0 : r.value) == null ? void 0 : t.mergedSchema, S = o.value;
51
- return e && o.level === 0 && o.hasDiscriminator && O(S) && O(e) ? e : o.value;
52
- }), j = p(() => !(o.noncollapsible || o.level === 0)), K = p(() => {
50
+ ), a = c(() => {
51
+ var o;
52
+ const e = (o = i == null ? void 0 : i.value) == null ? void 0 : o.mergedSchema, y = r.value;
53
+ return e && r.level === 0 && r.hasDiscriminator && N(y) && N(e) ? e : r.value;
54
+ }), b = c(() => !(r.noncollapsible || r.level === 0)), $ = c(() => {
53
55
  var e;
54
- return !(!((e = a.value) != null && e.description) || typeof a.value.description != "string" || a.value.allOf || a.value.oneOf || a.value.anyOf || a.value.enum || !a.value.properties && !a.value.patternProperties && !a.value.additionalProperties || o.level === 0);
55
- }), B = (e) => o.noncollapsible && e.stopPropagation(), y = (e) => {
56
- J("update:modelValue", e);
56
+ return !(!((e = a.value) != null && e.description) || typeof a.value.description != "string" || a.value.allOf || a.value.oneOf || a.value.anyOf || a.value.enum || !a.value.properties && !a.value.patternProperties && !a.value.additionalProperties || r.level === 0);
57
+ }), D = (e) => r.noncollapsible && e.stopPropagation(), B = (e) => {
58
+ R("update:modelValue", e);
57
59
  };
58
- return (e, S) => typeof e.value == "object" && Object.keys(e.value).length ? (i(), s(u(Z), {
60
+ return (e, y) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), t(s(q), {
59
61
  key: 0,
60
62
  defaultOpen: e.noncollapsible
61
63
  }, {
62
- default: v(({ open: t }) => {
63
- var w, C;
64
+ default: d(({ open: o }) => {
65
+ var H, O;
64
66
  return [
65
- I("div", {
66
- class: P(["schema-card", [
67
+ C("div", {
68
+ class: p(["schema-card", [
67
69
  `schema-card--level-${e.level}`,
68
- { "schema-card--compact": e.compact, "schema-card--open": t },
69
- { "border-t": e.additionalProperties && t }
70
+ { "schema-card--compact": e.compact, "schema-card--open": o },
71
+ { "border-t": e.additionalProperties && o }
70
72
  ]])
71
73
  }, [
72
- K.value ? (i(), d("div", ie, [
73
- (w = a.value) != null && w.enum ? n("", !0) : (i(), s(u(x), {
74
+ $.value ? (l(), m("div", Y, [
75
+ (H = a.value) != null && H.enum ? n("", !0) : (l(), t(s(J), {
74
76
  key: 0,
75
- value: (C = a.value) == null ? void 0 : C.description
77
+ value: (O = a.value) == null ? void 0 : O.description
76
78
  }, null, 8, ["value"]))
77
79
  ])) : n("", !0),
78
- I("div", {
79
- class: P(["schema-properties", {
80
- "schema-properties-open": t
80
+ C("div", {
81
+ class: p(["schema-properties", {
82
+ "schema-properties-open": o
81
83
  }])
82
84
  }, [
83
- e.additionalProperties ? E((i(), d("div", le, [
84
- k(u(F), {
85
+ e.additionalProperties ? T((l(), m("div", Z, [
86
+ h(s(j), {
85
87
  as: "button",
86
88
  class: "schema-card-title schema-card-title--compact",
87
- onClickCapture: B
89
+ onClickCapture: D
88
90
  }, {
89
- default: v(() => [
90
- k(u(V), {
91
+ default: d(() => [
92
+ h(s(k), {
91
93
  class: "schema-card-title-icon",
92
94
  icon: "Add",
93
95
  size: "sm"
94
96
  }),
95
- S[0] || (S[0] = M(" Show additional properties ")),
96
- e.name ? (i(), s(L, { key: 0 }, {
97
- default: v(() => [
98
- M("for " + H(e.name), 1)
97
+ y[0] || (y[0] = v(" Show additional properties ")),
98
+ e.name ? (l(), t(z, { key: 0 }, {
99
+ default: d(() => [
100
+ v("for " + g(e.name), 1)
99
101
  ]),
100
102
  _: 1
101
103
  })) : n("", !0)
102
104
  ]),
103
- _: 1
105
+ _: 1,
106
+ __: [0]
104
107
  })
105
108
  ], 512)), [
106
- [R, !t]
107
- ]) : j.value ? E((i(), s(u(F), {
109
+ [A, !o]
110
+ ]) : b.value ? T((l(), t(s(j), {
108
111
  key: 1,
109
112
  as: e.noncollapsible ? "div" : "button",
110
- class: P(["schema-card-title", { "schema-card-title--compact": e.compact }]),
111
- style: Y({
113
+ class: p(["schema-card-title", { "schema-card-title--compact": e.compact }]),
114
+ style: X({
112
115
  top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
113
116
  }),
114
- onClickCapture: B
117
+ onClickCapture: D
115
118
  }, {
116
- default: v(() => {
117
- var f, g, l;
119
+ default: d(() => {
120
+ var u, V, w;
118
121
  return [
119
- e.compact ? (i(), d(m, { key: 0 }, [
120
- k(u(V), {
121
- class: P(["schema-card-title-icon", { "schema-card-title-icon--open": t }]),
122
+ e.compact ? (l(), m(f, { key: 0 }, [
123
+ h(s(k), {
124
+ class: p(["schema-card-title-icon", { "schema-card-title-icon--open": o }]),
122
125
  icon: "Add",
123
126
  size: "sm"
124
127
  }, null, 8, ["class"]),
125
- t ? (i(), d(m, { key: 0 }, [
126
- M(" Hide " + H(((f = e.value) == null ? void 0 : f.title) ?? "Child Attributes"), 1)
127
- ], 64)) : (i(), d(m, { key: 1 }, [
128
- M(" Show " + H(((g = e.value) == null ? void 0 : g.title) ?? "Child Attributes"), 1)
128
+ o ? (l(), m(f, { key: 0 }, [
129
+ v(" Hide " + g(((u = e.value) == null ? void 0 : u.title) ?? "Child Attributes"), 1)
130
+ ], 64)) : (l(), m(f, { key: 1 }, [
131
+ v(" Show " + g(((V = e.value) == null ? void 0 : V.title) ?? "Child Attributes"), 1)
129
132
  ], 64)),
130
- e.name ? (i(), s(L, { key: 2 }, {
131
- default: v(() => [
132
- M("for " + H(e.name), 1)
133
+ e.name ? (l(), t(z, { key: 2 }, {
134
+ default: d(() => [
135
+ v("for " + g(e.name), 1)
133
136
  ]),
134
137
  _: 1
135
138
  })) : n("", !0)
136
- ], 64)) : (i(), d(m, { key: 1 }, [
137
- k(u(V), {
138
- class: P(["schema-card-title-icon", { "schema-card-title-icon--open": t }]),
139
+ ], 64)) : (l(), m(f, { key: 1 }, [
140
+ h(s(k), {
141
+ class: p(["schema-card-title-icon", { "schema-card-title-icon--open": o }]),
139
142
  icon: "Add",
140
143
  size: "sm"
141
144
  }, null, 8, ["class"]),
142
- k(ae, {
143
- name: ((l = e.value) == null ? void 0 : l.title) ?? e.name,
145
+ h(L, {
146
+ name: ((w = e.value) == null ? void 0 : w.title) ?? e.name,
144
147
  value: e.value
145
148
  }, null, 8, ["name", "value"])
146
149
  ], 64))
@@ -148,92 +151,31 @@ const ie = {
148
151
  }),
149
152
  _: 2
150
153
  }, 1032, ["as", "class", "style"])), [
151
- [R, !e.hideHeading && !(e.noncollapsible && e.compact)]
154
+ [A, !e.hideHeading && !(e.noncollapsible && e.compact)]
152
155
  ]) : n("", !0),
153
- !e.additionalProperties || t ? (i(), s(u(_), {
156
+ !e.additionalProperties || o ? (l(), t(s(G), {
154
157
  key: 2,
155
158
  as: "ul",
156
- static: !j.value
159
+ static: !b.value
157
160
  }, {
158
- default: v(() => {
159
- var f, g;
161
+ default: d(() => {
162
+ var u;
160
163
  return [
161
- a.value && typeof a.value == "object" && ("properties" in a.value || "additionalProperties" in a.value || "patternProperties" in a.value) ? (i(), d(m, { key: 0 }, [
162
- a.value.properties ? (i(!0), d(m, { key: 0 }, $(Object.keys(a.value.properties), (l) => {
163
- var N, A, T, z, U, q;
164
- return i(), s(b, {
165
- key: l,
166
- compact: e.compact,
167
- hideHeading: e.hideHeading,
168
- level: e.level + 1,
169
- name: l,
170
- hideModelNames: e.hideModelNames,
171
- required: ((N = a.value.required) == null ? void 0 : N.includes(l)) || ((A = a.value.properties[l]) == null ? void 0 : A.required) === !0,
172
- schemas: e.schemas,
173
- resolvedSchema: a.value.properties[l],
174
- value: {
175
- ...a.value.properties[l],
176
- parent: a.value,
177
- isDiscriminator: l === c.value || ((T = a.value.discriminator) == null ? void 0 : T.propertyName) === l
178
- },
179
- discriminatorMapping: ((z = a.value.discriminator) == null ? void 0 : z.mapping) || h.value,
180
- discriminatorPropertyName: ((U = a.value.discriminator) == null ? void 0 : U.propertyName) || c.value,
181
- isDiscriminator: l === (((q = a.value.discriminator) == null ? void 0 : q.propertyName) || c.value),
182
- modelValue: D.value,
183
- "onUpdate:modelValue": y
184
- }, null, 8, ["compact", "hideHeading", "level", "name", "hideModelNames", "required", "schemas", "resolvedSchema", "value", "discriminatorMapping", "discriminatorPropertyName", "isDiscriminator", "modelValue"]);
185
- }), 128)) : n("", !0),
186
- a.value.patternProperties ? (i(!0), d(m, { key: 1 }, $(Object.keys(a.value.patternProperties), (l) => {
187
- var N;
188
- return i(), s(b, {
189
- key: l,
190
- compact: e.compact,
191
- hideHeading: e.hideHeading,
192
- level: e.level,
193
- name: l,
194
- hideModelNames: e.hideModelNames,
195
- pattern: "",
196
- schemas: e.schemas,
197
- value: ((N = e.value.discriminator) == null ? void 0 : N.propertyName) === l ? e.value : a.value.patternProperties[l],
198
- discriminatorMapping: h.value,
199
- discriminatorPropertyName: c.value,
200
- "onUpdate:modelValue": y
201
- }, null, 8, ["compact", "hideHeading", "level", "name", "hideModelNames", "schemas", "value", "discriminatorMapping", "discriminatorPropertyName"]);
202
- }), 128)) : n("", !0),
203
- a.value.additionalProperties ? (i(), d(m, { key: 2 }, [
204
- a.value.additionalProperties === !0 || Object.keys(a.value.additionalProperties).length === 0 || !("type" in a.value.additionalProperties) ? (i(), s(b, {
205
- key: 0,
206
- additional: "",
207
- compact: e.compact,
208
- hideHeading: e.hideHeading,
209
- hideModelNames: e.hideModelNames,
210
- level: e.level,
211
- noncollapsible: "",
212
- schemas: e.schemas,
213
- value: {
214
- type: "anything",
215
- ...typeof a.value.additionalProperties == "object" ? a.value.additionalProperties : {}
216
- },
217
- discriminatorMapping: h.value,
218
- discriminatorPropertyName: c.value,
219
- "onUpdate:modelValue": y
220
- }, null, 8, ["compact", "hideHeading", "hideModelNames", "level", "schemas", "value", "discriminatorMapping", "discriminatorPropertyName"])) : (i(), s(b, {
221
- key: 1,
222
- additional: "",
223
- compact: e.compact,
224
- hideHeading: e.hideHeading,
225
- hideModelNames: e.hideModelNames,
226
- level: e.level,
227
- noncollapsible: "",
228
- schemas: e.schemas,
229
- value: ((f = e.value.discriminator) == null ? void 0 : f.propertyName) === e.name ? e.value : a.value.additionalProperties,
230
- discriminatorMapping: h.value,
231
- discriminatorPropertyName: c.value,
232
- "onUpdate:modelValue": y
233
- }, null, 8, ["compact", "hideHeading", "hideModelNames", "level", "schemas", "value", "discriminatorMapping", "discriminatorPropertyName"]))
234
- ], 64)) : n("", !0)
235
- ], 64)) : (i(), d(m, { key: 1 }, [
236
- a.value ? (i(), s(b, {
164
+ s(N)(a.value) ? (l(), t(Q, {
165
+ key: 0,
166
+ schema: a.value,
167
+ compact: e.compact,
168
+ hideHeading: e.hideHeading,
169
+ level: e.level + 1,
170
+ hideModelNames: e.hideModelNames,
171
+ schemas: e.schemas,
172
+ discriminator: S.value,
173
+ discriminatorMapping: M.value,
174
+ discriminatorPropertyName: P.value,
175
+ hasDiscriminator: e.hasDiscriminator,
176
+ "onUpdate:modelValue": B
177
+ }, null, 8, ["schema", "compact", "hideHeading", "level", "hideModelNames", "schemas", "discriminator", "discriminatorMapping", "discriminatorPropertyName", "hasDiscriminator"])) : (l(), m(f, { key: 1 }, [
178
+ a.value ? (l(), t(W, {
237
179
  key: 0,
238
180
  compact: e.compact,
239
181
  hideHeading: e.hideHeading,
@@ -241,11 +183,11 @@ const ie = {
241
183
  level: e.level,
242
184
  name: a.value.name,
243
185
  schemas: e.schemas,
244
- value: ((g = e.value.discriminator) == null ? void 0 : g.propertyName) === e.name ? e.value : a.value,
245
- discriminatorMapping: h.value,
246
- discriminatorPropertyName: c.value,
247
- modelValue: D.value,
248
- "onUpdate:modelValue": y
186
+ value: ((u = e.value.discriminator) == null ? void 0 : u.propertyName) === e.name ? e.value : a.value,
187
+ discriminatorMapping: M.value,
188
+ discriminatorPropertyName: P.value,
189
+ modelValue: S.value,
190
+ "onUpdate:modelValue": B
249
191
  }, null, 8, ["compact", "hideHeading", "hideModelNames", "level", "name", "schemas", "value", "discriminatorMapping", "discriminatorPropertyName", "modelValue"])) : n("", !0)
250
192
  ], 64))
251
193
  ];
@@ -261,5 +203,5 @@ const ie = {
261
203
  }
262
204
  });
263
205
  export {
264
- ue as default
206
+ te as default
265
207
  };
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ label: string;
3
+ description?: string;
4
+ };
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, {}, HTMLLIElement>;
6
+ export default _default;
7
+ //# sourceMappingURL=SchemaEnumPropertyItem.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaEnumPropertyItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaEnumPropertyItem.vue"],"names":[],"mappings":"AAkGA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;;AAmFF,wBAOG"}
@@ -0,0 +1,7 @@
1
+ import o from "./SchemaEnumPropertyItem.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ac891053"]]);
5
+ export {
6
+ e as default
7
+ };
@@ -0,0 +1,25 @@
1
+ import { defineComponent as n, createElementBlock as o, openBlock as t, createElementVNode as r, createCommentVNode as a, toDisplayString as s, createVNode as l, unref as p } from "vue";
2
+ import { ScalarMarkdown as c } from "@scalar/components";
3
+ const i = { class: "property-enum-value" }, m = { class: "property-enum-value-content" }, u = { class: "property-enum-value-label" }, d = {
4
+ key: 0,
5
+ class: "property-enum-value-description"
6
+ }, h = /* @__PURE__ */ n({
7
+ __name: "SchemaEnumPropertyItem",
8
+ props: {
9
+ label: {},
10
+ description: {}
11
+ },
12
+ setup(_) {
13
+ return (e, v) => (t(), o("li", i, [
14
+ r("div", m, [
15
+ r("span", u, s(e.label), 1),
16
+ e.description ? (t(), o("span", d, [
17
+ l(p(c), { value: e.description }, null, 8, ["value"])
18
+ ])) : a("", !0)
19
+ ])
20
+ ]));
21
+ }
22
+ });
23
+ export {
24
+ h as default
25
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaEnumValues.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaEnumValues.vue"],"names":[],"mappings":"AA6TA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,GAAG,EAAE,CAAA;IACd,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;KAAE,CAAA;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,CAAA;IACxD,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,CAAA;IACzD,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAGvB,KAAK,WAAW,GAAG;IACjB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,4DAA4D;IAC5D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;;AAkUF,wBAMG"}
1
+ {"version":3,"file":"SchemaEnumValues.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaEnumValues.vue"],"names":[],"mappings":"AAqRA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,GAAG,EAAE,CAAA;IACd,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;KAAE,CAAA;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,CAAA;IACxD,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,CAAA;IACzD,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AAGvB,KAAK,WAAW,GAAG;IACjB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,4DAA4D;IAC5D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;;AA4SF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaEnumValues.vue2.js";
2
2
  /* empty css */
3
3
  import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ a(o, [["__scopeId", "data-v-ec7a8d6d"]]);
4
+ const r = /* @__PURE__ */ a(o, [["__scopeId", "data-v-904ae9e7"]]);
5
5
  export {
6
6
  r as default
7
7
  };