@scalar/api-reference 1.31.3 → 1.31.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 (166) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/browser/standalone.js +15752 -15637
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.js +6 -6
  5. package/dist/components/ApiReferenceLayout.vue.d.ts +6 -3
  6. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.js +4 -2
  8. package/dist/components/ApiReferenceLayout.vue2.js +230 -153
  9. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +1 -1
  11. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  13. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Lazy/Loading.vue.js +1 -1
  15. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Schema/SchemaComposition.vue.js +81 -101
  17. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  19. package/dist/components/Content/Schema/SchemaProperty.vue2.js +114 -105
  20. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +35 -35
  21. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +17 -15
  23. package/dist/components/Content/Schema/helpers/schema-name.js +13 -21
  24. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  26. package/dist/components/Content/Tag/OperationsList.vue2.js +10 -9
  27. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
  29. package/dist/components/Content/Tag/OperationsListItem.vue2.js +29 -28
  30. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Tag/TagList.vue.js +35 -34
  32. package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
  33. package/dist/components/DocumentSelector/DocumentSelector.vue.js +21 -28
  34. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  35. package/dist/components/GettingStarted.vue.js +3 -3
  36. package/dist/components/GettingStarted.vue2.js +23 -23
  37. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -20
  38. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  39. package/dist/components/HttpMethod/HttpMethod.vue.js +12 -13
  40. package/dist/components/Section/CompactSection.vue.js +2 -2
  41. package/dist/components/Section/CompactSection.vue2.js +6 -6
  42. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  43. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  44. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  45. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  46. package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
  47. package/dist/esm.d.ts.map +1 -1
  48. package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +1 -1
  49. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +1 -1
  50. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
  51. package/dist/features/DocumentSource/hooks/useDocumentSource.js +11 -11
  52. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  53. package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
  54. package/dist/features/DownloadLink/DownloadLink.vue2.js +21 -21
  55. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  56. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  57. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +1 -1
  58. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  59. package/dist/features/Search/SearchButton.vue.js +2 -2
  60. package/dist/features/Search/SearchButton.vue2.js +16 -16
  61. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  62. package/dist/features/Search/SearchModal.vue.js +2 -2
  63. package/dist/features/Search/SearchModal.vue2.js +1 -1
  64. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  65. package/dist/features/Search/useSearchIndex.js +29 -28
  66. package/dist/features/sidebar/helpers/create-sidebar.d.ts +26 -0
  67. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -0
  68. package/dist/features/sidebar/hooks/useSidebar.d.ts +23 -0
  69. package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -0
  70. package/dist/features/sidebar/index.d.ts +2 -0
  71. package/dist/features/sidebar/index.d.ts.map +1 -0
  72. package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -0
  73. package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -0
  74. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +8 -0
  75. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +1 -0
  76. package/dist/features/traverse-schema/helpers/operation-id-params.js +8 -0
  77. package/dist/features/traverse-schema/helpers/traverse-description.d.ts +9 -0
  78. package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +1 -0
  79. package/dist/features/traverse-schema/helpers/traverse-document.d.ts +16 -0
  80. package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -0
  81. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +11 -0
  82. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -0
  83. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +6 -0
  84. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -0
  85. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +9 -0
  86. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -0
  87. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +6 -0
  88. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -0
  89. package/dist/features/traverse-schema/index.d.ts +4 -0
  90. package/dist/features/traverse-schema/index.d.ts.map +1 -0
  91. package/dist/features/traverse-schema/types.d.ts +51 -0
  92. package/dist/features/traverse-schema/types.d.ts.map +1 -0
  93. package/dist/helpers/parse.d.ts.map +1 -1
  94. package/dist/helpers/parse.js +16 -16
  95. package/dist/hooks/useNavState.d.ts +9 -4
  96. package/dist/hooks/useNavState.d.ts.map +1 -1
  97. package/dist/hooks/useNavState.js +31 -29
  98. package/dist/hooks/useSidebar.d.ts.map +1 -1
  99. package/dist/hooks/useSidebar.js +69 -68
  100. package/dist/index.d.ts +0 -3
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/index.js +37 -44
  103. package/dist/legacy/fixtures/httpRequestMethods.js +2 -6
  104. package/dist/libs/openapi.js +32 -32
  105. package/dist/stores/useHttpClientStore.js +9 -8
  106. package/dist/style.css +1 -1
  107. package/dist/types.d.ts +0 -1
  108. package/dist/types.d.ts.map +1 -1
  109. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +40 -0
  110. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -0
  111. package/dist/v2/ApiReferenceWorkspace.vue.js +65 -0
  112. package/dist/v2/ApiReferenceWorkspace.vue3.js +5 -0
  113. package/dist/v2/events/definitions.d.ts +35 -0
  114. package/dist/v2/events/definitions.d.ts.map +1 -0
  115. package/dist/v2/events/index.d.ts +3 -0
  116. package/dist/v2/events/index.d.ts.map +1 -0
  117. package/dist/v2/events/listeners.d.ts +8 -0
  118. package/dist/v2/events/listeners.d.ts.map +1 -0
  119. package/dist/v2/events/listeners.js +15 -0
  120. package/dist/v2/styles.d.ts +2 -0
  121. package/dist/v2/styles.d.ts.map +1 -0
  122. package/package.json +13 -11
  123. package/dist/components/HttpMethod/constants.d.ts +0 -9
  124. package/dist/components/HttpMethod/constants.d.ts.map +0 -1
  125. package/dist/components/HttpMethod/constants.js +0 -36
  126. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +0 -4
  127. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +0 -1
  128. package/dist/components/HttpMethod/utils/isRequestMethod.js +0 -7
  129. package/dist/components/Layouts/ClassicLayout.vue.d.ts +0 -23
  130. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +0 -1
  131. package/dist/components/Layouts/ClassicLayout.vue.js +0 -67
  132. package/dist/components/Layouts/ClassicLayout.vue2.js +0 -4
  133. package/dist/components/Layouts/Layouts.vue.d.ts +0 -26
  134. package/dist/components/Layouts/Layouts.vue.d.ts.map +0 -1
  135. package/dist/components/Layouts/Layouts.vue.js +0 -35
  136. package/dist/components/Layouts/Layouts.vue2.js +0 -4
  137. package/dist/components/Layouts/ModernLayout.vue.d.ts +0 -23
  138. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +0 -1
  139. package/dist/components/Layouts/ModernLayout.vue.js +0 -8
  140. package/dist/components/Layouts/ModernLayout.vue2.js +0 -102
  141. package/dist/components/Layouts/index.d.ts +0 -2
  142. package/dist/components/Layouts/index.d.ts.map +0 -1
  143. package/dist/components/SingleApiReference.vue.d.ts +0 -29
  144. package/dist/components/SingleApiReference.vue.d.ts.map +0 -1
  145. package/dist/components/SingleApiReference.vue.js +0 -57
  146. package/dist/components/SingleApiReference.vue3.js +0 -5
  147. package/dist/helpers/freeze-element.d.ts +0 -11
  148. package/dist/helpers/freeze-element.d.ts.map +0 -1
  149. package/dist/helpers/freeze-element.js +0 -20
  150. package/dist/helpers/is-mac-os.d.ts +0 -5
  151. package/dist/helpers/is-mac-os.d.ts.map +0 -1
  152. package/dist/helpers/is-mac-os.js +0 -4
  153. package/dist/helpers/measure.d.ts +0 -21
  154. package/dist/helpers/measure.d.ts.map +0 -1
  155. package/dist/helpers/measure.js +0 -7
  156. package/dist/helpers/scroll-to-id.d.ts +0 -7
  157. package/dist/helpers/scroll-to-id.d.ts.map +0 -1
  158. package/dist/helpers/scroll-to-id.js +0 -21
  159. package/dist/helpers/sleep.d.ts +0 -6
  160. package/dist/helpers/sleep.d.ts.map +0 -1
  161. package/dist/helpers/sleep.js +0 -4
  162. package/dist/legacy/helpers/index.d.ts +0 -2
  163. package/dist/legacy/helpers/index.d.ts.map +0 -1
  164. package/dist/legacy/helpers/normalizeRequestMethod.d.ts +0 -6
  165. package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +0 -1
  166. package/dist/legacy/helpers/normalizeRequestMethod.js +0 -10
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as E, ref as v, watch as H, onMounted as K, withDirectives as M, createElementBlock as f, openBlock as l, normalizeClass as j, createBlock as m, createCommentVNode as b, Fragment as h, renderList as k, unref as r, withCtx as c, createVNode as S, createTextVNode as A, toDisplayString as F, vShow as P } from "vue";
2
+ import { scrollToId as C } from "@scalar/helpers/dom/scroll-to-id";
2
3
  import { lazyBus as q } from "./lazyBus.js";
3
- import { scrollToId as C } from "../../../helpers/scroll-to-id.js";
4
4
  import { useNavState as G } from "../../../hooks/useNavState.js";
5
5
  import { getModels as y } from "../../../libs/openapi.js";
6
6
  import J from "../Tag/TagSection.vue.js";
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AAwRA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAEjE,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,8BAA8B,CAAA;AAKrC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAqUF,wBAOG"}
1
+ {"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AAyRA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAEjE,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,8BAA8B,CAAA;AAKrC,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,kBAAkB,CAAA;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAoUF,wBAOG"}
@@ -1,17 +1,17 @@
1
- import { defineComponent as E, ref as F, computed as r, resolveComponent as I, createElementBlock as u, openBlock as m, createCommentVNode as p, createBlock as d, Fragment as V, renderList as M, createVNode as b, createElementVNode as v, unref as f, withCtx as T, toDisplayString as w } from "vue";
2
- import { ScalarListbox as j, ScalarMarkdown as R } from "@scalar/components";
3
- import { ScalarIconCaretDown as Z } from "@scalar/icons";
4
- import { mergeAllOfSchemas as $ } from "./helpers/merge-all-of-schemas.js";
5
- import { getCompositionDisplay as G, getModelNameFromSchema as J } from "./helpers/schema-name.js";
6
- import { hasComposition as g } from "./helpers/schema-composition.js";
7
- import S from "./Schema.vue.js";
1
+ import { defineComponent as F, ref as M, computed as s, resolveComponent as T, createElementBlock as c, openBlock as r, createCommentVNode as u, createBlock as p, Fragment as N, renderList as j, createVNode as y, createElementVNode as f, unref as v, withCtx as R, toDisplayString as V } from "vue";
2
+ import { ScalarListbox as Z, ScalarMarkdown as $ } from "@scalar/components";
3
+ import { ScalarIconCaretDown as G } from "@scalar/icons";
4
+ import { mergeAllOfSchemas as w } from "./helpers/merge-all-of-schemas.js";
5
+ import { getModelNameFromSchema as J } from "./helpers/schema-name.js";
6
+ import { hasComposition as b } from "./helpers/schema-composition.js";
7
+ import g from "./Schema.vue.js";
8
8
  const K = { class: "property-rule" }, P = {
9
9
  class: "composition-selector bg-b-1.5 hover:bg-b-2 flex w-full cursor-pointer items-center gap-1 rounded-t-lg border border-b-0 px-2 py-1.25 pr-3 text-left",
10
10
  type: "button"
11
- }, Q = { class: "text-c-2" }, X = { class: "composition-selector-label text-c-1 relative" }, Y = { class: "composition-panel" }, W = {
11
+ }, Q = { class: "text-c-2" }, X = { class: "composition-selector-label text-c-1" }, Y = { class: "composition-panel" }, W = {
12
12
  key: 0,
13
13
  class: "property-description border-x border-t p-2"
14
- }, te = /* @__PURE__ */ E({
14
+ }, te = /* @__PURE__ */ F({
15
15
  __name: "SchemaComposition",
16
16
  props: {
17
17
  composition: {},
@@ -22,116 +22,96 @@ const K = { class: "property-rule" }, P = {
22
22
  compact: { type: Boolean },
23
23
  hideHeading: { type: Boolean }
24
24
  },
25
- setup(n) {
26
- const h = F(0), q = r(() => n.value[n.composition] || []), B = r(() => G(
27
- q.value,
28
- N.value,
29
- n.schemas
30
- )), C = r(
25
+ setup(a) {
26
+ const d = M(0);
27
+ s(() => a.value[a.composition] || []);
28
+ const B = s(() => k.value), C = s(
31
29
  () => B.value.map(
32
- (e, a) => ({
33
- id: String(a),
34
- label: J(e, n.schemas) || "Schema"
30
+ (e, o) => ({
31
+ id: String(o),
32
+ label: J(e, a.schemas) || "Schema"
35
33
  })
36
34
  )
37
- ), O = r({
35
+ ), O = s({
38
36
  get: () => C.value.find(
39
- (e) => e.id === String(h.value)
37
+ (e) => e.id === String(d.value)
40
38
  ),
41
- set: (e) => h.value = Number(e.id)
42
- }), A = r(() => {
43
- var l;
44
- const e = ["oneOf", "anyOf"].includes(n.composition), a = n.composition === "allOf" && ((l = n.value[n.composition]) == null ? void 0 : l.some((o) => g(o)));
45
- return e || a;
46
- }), k = (e) => e.find((a) => g(a)), N = r(() => {
47
- if (!k(n.value[n.composition]))
48
- return n.value[n.composition];
49
- const e = k(n.value[n.composition]);
50
- return (e.oneOf || e.anyOf || e.allOf).map((l) => {
51
- if (l.allOf) {
52
- const o = l.allOf.find((c) => c.title), s = l.allOf.find((c) => !c.title);
53
- return o && s ? {
54
- ...o,
55
- properties: {
56
- ...o.properties,
57
- ...s.properties
58
- },
59
- required: [
60
- ...o.required || [],
61
- ...s.required || []
62
- ],
63
- oneOf: s.oneOf,
64
- anyOf: s.anyOf
65
- } : o || l;
66
- }
67
- return l;
68
- });
69
- }), D = (e) => {
70
- var a, l;
39
+ set: (e) => d.value = Number(e.id)
40
+ }), D = s(() => {
41
+ var i;
42
+ const e = ["oneOf", "anyOf"].includes(a.composition), o = a.composition === "allOf" && ((i = a.value[a.composition]) == null ? void 0 : i.some((l) => b(l)));
43
+ return e || o;
44
+ }), I = (e) => e.find((o) => b(o)), L = (e) => !e.allOf || !Array.isArray(e.allOf) ? !1 : e.allOf.some(
45
+ (o) => o.oneOf || o.anyOf || o.allOf
46
+ ), S = (e) => e.allOf && Array.isArray(e.allOf) ? L(e) ? e : w(e.allOf) : e, k = s(() => {
47
+ const e = a.value[a.composition], o = I(e);
48
+ return !o || a.composition !== "allOf" && o.allOf ? e.map(S) : (o.oneOf || o.anyOf || o.allOf).map(S);
49
+ }), U = (e) => {
50
+ var o, i;
71
51
  if (e === "allOf") {
72
- const o = (l = (a = n.value) == null ? void 0 : a[e]) == null ? void 0 : l.find(
73
- (s) => g(s)
52
+ const l = (i = (o = a.value) == null ? void 0 : o[e]) == null ? void 0 : i.find(
53
+ (m) => b(m)
74
54
  );
75
- if (o != null && o.oneOf)
55
+ if (l != null && l.oneOf)
76
56
  return "One of";
77
- if (o != null && o.anyOf)
57
+ if (l != null && l.anyOf)
78
58
  return "Any of";
79
59
  }
80
- return e.replace(/([A-Z])/g, " $1").replace(/^./, (o) => o.toUpperCase()).toLowerCase().replace(/^(\w)/, (o) => o.toUpperCase());
81
- }, i = r(
82
- () => N.value[h.value]
83
- ), y = r(() => {
60
+ return e.replace(/([A-Z])/g, " $1").replace(/^./, (l) => l.toUpperCase()).toLowerCase().replace(/^(\w)/, (l) => l.toUpperCase());
61
+ }, t = s(
62
+ () => k.value[d.value]
63
+ ), h = s(() => {
84
64
  var e;
85
- return (e = i.value) != null && e.oneOf ? "oneOf" : "anyOf";
86
- }), z = r(() => {
87
- var a;
88
- const e = y.value;
89
- return (a = i.value) == null ? void 0 : a[e];
90
- }), L = r(() => {
91
- const e = i.value;
65
+ return (e = t.value) != null && e.oneOf ? "oneOf" : "anyOf";
66
+ }), q = s(() => {
67
+ var o;
68
+ const e = h.value;
69
+ return (o = t.value) == null ? void 0 : o[e];
70
+ }), z = s(() => {
71
+ const e = t.value;
92
72
  return e ? !!(e.properties || e.type || e.nullable || e.const !== void 0 || e.enum || e.allOf || e.oneOf || e.anyOf || e.items) : !1;
93
73
  });
94
- return (e, a) => {
95
- var o, s, c, H;
96
- const l = I("SchemaComposition", !0);
97
- return m(), u("div", K, [
98
- e.composition === "allOf" && e.value[e.composition].some((t) => t.oneOf || t.anyOf) ? (m(!0), u(V, { key: 0 }, M(e.value[e.composition].filter(
99
- (t) => !t.oneOf && !t.anyOf
100
- ), (t, U) => (m(), d(S, {
101
- key: U,
74
+ return (e, o) => {
75
+ var l, m, A, H;
76
+ const i = T("SchemaComposition", !0);
77
+ return r(), c("div", K, [
78
+ e.composition === "allOf" && e.value[e.composition].some((n) => n.oneOf || n.anyOf) ? (r(!0), c(N, { key: 0 }, j(e.value[e.composition].filter(
79
+ (n) => !n.oneOf && !n.anyOf
80
+ ), (n, E) => (r(), p(g, {
81
+ key: E,
102
82
  compact: e.compact,
103
83
  level: e.level,
104
84
  name: e.name,
105
85
  noncollapsible: e.level == 0,
106
86
  schemas: e.schemas,
107
- value: t
108
- }, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))), 128)) : p("", !0),
109
- A.value ? (m(), u(V, { key: 1 }, [
110
- b(f(j), {
87
+ value: n
88
+ }, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))), 128)) : u("", !0),
89
+ D.value ? (r(), c(N, { key: 1 }, [
90
+ y(v(Z), {
111
91
  modelValue: O.value,
112
- "onUpdate:modelValue": a[0] || (a[0] = (t) => O.value = t),
92
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => O.value = n),
113
93
  options: C.value,
114
94
  resize: ""
115
95
  }, {
116
- default: T(() => {
117
- var t;
96
+ default: R(() => {
97
+ var n;
118
98
  return [
119
- v("button", P, [
120
- v("span", Q, w(D(e.composition)), 1),
121
- v("span", X, w(((t = O.value) == null ? void 0 : t.label) || "Schema"), 1),
122
- b(f(Z), { class: "z-1" })
99
+ f("button", P, [
100
+ f("span", Q, V(U(e.composition)), 1),
101
+ f("span", X, V(((n = O.value) == null ? void 0 : n.label) || "Schema"), 1),
102
+ y(v(G))
123
103
  ])
124
104
  ];
125
105
  }),
126
106
  _: 1
127
107
  }, 8, ["modelValue", "options"]),
128
- v("div", Y, [
129
- (o = i.value) != null && o.description ? (m(), u("div", W, [
130
- b(f(R), {
131
- value: i.value.description
108
+ f("div", Y, [
109
+ (l = t.value) != null && l.description ? (r(), c("div", W, [
110
+ y(v($), {
111
+ value: t.value.description
132
112
  }, null, 8, ["value"])
133
- ])) : p("", !0),
134
- L.value ? (m(), d(S, {
113
+ ])) : u("", !0),
114
+ z.value ? (r(), p(g, {
135
115
  key: 1,
136
116
  compact: e.compact,
137
117
  level: e.level + 1,
@@ -139,34 +119,34 @@ const K = { class: "property-rule" }, P = {
139
119
  name: e.name,
140
120
  noncollapsible: !0,
141
121
  schemas: e.schemas,
142
- value: (s = i.value) != null && s.properties ? {
122
+ value: (m = t.value) != null && m.properties ? {
143
123
  type: "object",
144
- properties: i.value.properties,
145
- required: i.value.required
146
- } : i.value
147
- }, null, 8, ["compact", "level", "hideHeading", "name", "schemas", "value"])) : p("", !0),
148
- (c = i.value) != null && c.oneOf || (H = i.value) != null && H.anyOf ? (m(), d(l, {
124
+ properties: t.value.properties,
125
+ required: t.value.required
126
+ } : t.value
127
+ }, null, 8, ["compact", "level", "hideHeading", "name", "schemas", "value"])) : u("", !0),
128
+ (A = t.value) != null && A.oneOf || (H = t.value) != null && H.anyOf ? (r(), p(i, {
149
129
  key: 2,
150
130
  compact: e.compact,
151
- composition: y.value,
131
+ composition: h.value,
152
132
  hideHeading: e.hideHeading,
153
133
  level: e.level + 1,
154
134
  name: e.name,
155
135
  noncollapsible: !0,
156
136
  schemas: e.schemas,
157
137
  value: {
158
- [y.value]: z.value
138
+ [h.value]: q.value
159
139
  }
160
- }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "schemas", "value"])) : p("", !0)
140
+ }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "schemas", "value"])) : u("", !0)
161
141
  ])
162
- ], 64)) : (m(), d(S, {
142
+ ], 64)) : (r(), p(g, {
163
143
  key: 2,
164
144
  compact: e.compact,
165
145
  level: e.level,
166
146
  name: e.name,
167
147
  noncollapsible: e.level == 0,
168
148
  schemas: e.schemas,
169
- value: f($)(e.value[e.composition])
149
+ value: v(w)(e.value[e.composition])
170
150
  }, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
171
151
  ]);
172
152
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA0kBA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAOtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAUjE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,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;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;;;;;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAKA,OAAO;kBADT,OAAO;;AAmkB1B,0BASG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAmnBA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAOtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAUjE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,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;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;;;;;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAKA,OAAO;kBADT,OAAO;;AA2mB1B,0BASG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9998b466"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cd0cb087"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };