@scalar/api-reference 1.31.2 → 1.31.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dist/browser/standalone.js +9428 -9384
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  6. package/dist/components/ApiReferenceLayout.vue2.js +72 -73
  7. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  8. package/dist/components/Badge/Badge.vue.js +1 -1
  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 +77 -113
  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.d.ts +16 -0
  24. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -0
  25. package/dist/components/Content/Schema/helpers/schema-name.js +32 -0
  26. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  28. package/dist/components/Content/Tag/OperationsList.vue2.js +10 -9
  29. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
  31. package/dist/components/Content/Tag/OperationsListItem.vue2.js +29 -28
  32. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Tag/TagList.vue.js +35 -34
  34. package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
  35. package/dist/components/DocumentSelector/DocumentSelector.vue.js +21 -28
  36. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +1 -20
  37. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  38. package/dist/components/HttpMethod/HttpMethod.vue.js +12 -13
  39. package/dist/components/Section/CompactSection.vue.js +2 -2
  40. package/dist/components/Section/CompactSection.vue2.js +6 -6
  41. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  42. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  43. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  44. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  45. package/dist/components/Sidebar/SidebarElement.vue2.js +5 -5
  46. package/dist/esm.d.ts.map +1 -1
  47. package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +1 -1
  48. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +1 -1
  49. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
  50. package/dist/features/DocumentSource/hooks/useDocumentSource.js +11 -11
  51. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  52. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  53. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  54. package/dist/features/DownloadLink/DownloadLink.vue2.js +45 -28
  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/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  59. package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
  60. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  61. package/dist/features/Search/SearchButton.vue.js +2 -2
  62. package/dist/features/Search/SearchButton.vue2.js +16 -16
  63. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  64. package/dist/features/Search/SearchModal.vue.js +2 -2
  65. package/dist/features/Search/SearchModal.vue2.js +1 -1
  66. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  67. package/dist/features/Search/useSearchIndex.js +29 -28
  68. package/dist/features/sidebar/helpers/create-sidebar.d.ts +26 -0
  69. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -0
  70. package/dist/features/sidebar/hooks/useSidebar.d.ts +23 -0
  71. package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -0
  72. package/dist/features/sidebar/index.d.ts +2 -0
  73. package/dist/features/sidebar/index.d.ts.map +1 -0
  74. package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -0
  75. package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -0
  76. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +8 -0
  77. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +1 -0
  78. package/dist/features/traverse-schema/helpers/operation-id-params.js +8 -0
  79. package/dist/features/traverse-schema/helpers/traverse-description.d.ts +9 -0
  80. package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +1 -0
  81. package/dist/features/traverse-schema/helpers/traverse-document.d.ts +16 -0
  82. package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -0
  83. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +11 -0
  84. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -0
  85. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +6 -0
  86. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -0
  87. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +9 -0
  88. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -0
  89. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +6 -0
  90. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -0
  91. package/dist/features/traverse-schema/index.d.ts +4 -0
  92. package/dist/features/traverse-schema/index.d.ts.map +1 -0
  93. package/dist/features/traverse-schema/types.d.ts +51 -0
  94. package/dist/features/traverse-schema/types.d.ts.map +1 -0
  95. package/dist/helpers/parse.d.ts.map +1 -1
  96. package/dist/helpers/parse.js +16 -16
  97. package/dist/hooks/useNavState.d.ts +9 -4
  98. package/dist/hooks/useNavState.d.ts.map +1 -1
  99. package/dist/hooks/useNavState.js +31 -29
  100. package/dist/hooks/useSidebar.d.ts.map +1 -1
  101. package/dist/hooks/useSidebar.js +69 -68
  102. package/dist/index.js +1 -1
  103. package/dist/legacy/fixtures/httpRequestMethods.js +2 -6
  104. package/dist/libs/download.d.ts +2 -1
  105. package/dist/libs/download.d.ts.map +1 -1
  106. package/dist/libs/download.js +23 -11
  107. package/dist/stores/useHttpClientStore.js +18 -18
  108. package/dist/style.css +1 -1
  109. package/dist/types.d.ts +0 -1
  110. package/dist/types.d.ts.map +1 -1
  111. package/package.json +12 -11
  112. package/dist/components/HttpMethod/constants.d.ts +0 -9
  113. package/dist/components/HttpMethod/constants.d.ts.map +0 -1
  114. package/dist/components/HttpMethod/constants.js +0 -36
  115. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +0 -4
  116. package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +0 -1
  117. package/dist/components/HttpMethod/utils/isRequestMethod.js +0 -7
  118. package/dist/helpers/freeze-element.d.ts +0 -11
  119. package/dist/helpers/freeze-element.d.ts.map +0 -1
  120. package/dist/helpers/freeze-element.js +0 -20
  121. package/dist/helpers/is-mac-os.d.ts +0 -5
  122. package/dist/helpers/is-mac-os.d.ts.map +0 -1
  123. package/dist/helpers/is-mac-os.js +0 -4
  124. package/dist/helpers/local-storage.d.ts +0 -8
  125. package/dist/helpers/local-storage.d.ts.map +0 -1
  126. package/dist/helpers/local-storage.js +0 -6
  127. package/dist/helpers/measure.d.ts +0 -21
  128. package/dist/helpers/measure.d.ts.map +0 -1
  129. package/dist/helpers/measure.js +0 -7
  130. package/dist/helpers/scroll-to-id.d.ts +0 -7
  131. package/dist/helpers/scroll-to-id.d.ts.map +0 -1
  132. package/dist/helpers/scroll-to-id.js +0 -21
  133. package/dist/helpers/sleep.d.ts +0 -6
  134. package/dist/helpers/sleep.d.ts.map +0 -1
  135. package/dist/helpers/sleep.js +0 -4
  136. package/dist/legacy/helpers/index.d.ts +0 -2
  137. package/dist/legacy/helpers/index.d.ts.map +0 -1
  138. package/dist/legacy/helpers/normalizeRequestMethod.d.ts +0 -6
  139. package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +0 -1
  140. package/dist/legacy/helpers/normalizeRequestMethod.js +0 -10
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA4kBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAgCvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AA2OxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBA/aZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAob/D;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YArfqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA4f9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA4kBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA+BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AA0OxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBA9aZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAmb/D;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YApfqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA2f9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8d5d2de3"]]);
5
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-93a5ef6c"]]);
6
6
  export {
7
- a as default
7
+ f as default
8
8
  };
@@ -1,30 +1,30 @@
1
- import { defineComponent as ie, computed as h, provide as u, ref as E, onBeforeMount as B, onMounted as k, toValue as N, onUnmounted as se, useId as le, createElementBlock as y, openBlock as C, Fragment as F, createElementVNode as i, createVNode as c, unref as a, normalizeStyle as de, normalizeClass as ue, createCommentVNode as O, withDirectives as ce, renderSlot as s, normalizeProps as l, guardReactiveProps as d, withCtx as m, vShow as me, createSlots as fe, watch as pe } from "vue";
2
- import { provideUseId as ve } from "@headlessui/vue";
3
- import { LAYOUT_SYMBOL as ge } from "@scalar/api-client/hooks";
4
- import { WORKSPACE_SYMBOL as Se, ACTIVE_ENTITIES_SYMBOL as he } from "@scalar/api-client/store";
5
- import { addScalarClassesToHeadless as be, ScalarErrorBoundary as we } from "@scalar/components";
1
+ import { defineComponent as ne, computed as h, provide as u, ref as E, onBeforeMount as B, onMounted as k, toValue as N, onUnmounted as ie, useId as se, createElementBlock as y, openBlock as C, Fragment as F, createElementVNode as i, createVNode as c, unref as a, normalizeStyle as le, normalizeClass as de, createCommentVNode as O, withDirectives as ue, renderSlot as s, normalizeProps as l, guardReactiveProps as d, withCtx as m, vShow as ce, createSlots as me, watch as fe } from "vue";
2
+ import { provideUseId as pe } from "@headlessui/vue";
3
+ import { LAYOUT_SYMBOL as ve } from "@scalar/api-client/hooks";
4
+ import { WORKSPACE_SYMBOL as ge, ACTIVE_ENTITIES_SYMBOL as Se } from "@scalar/api-client/store";
5
+ import { addScalarClassesToHeadless as he, ScalarErrorBoundary as be } from "@scalar/components";
6
+ import { sleep as we } from "@scalar/helpers/testing/sleep";
6
7
  import { hasObtrusiveScrollbars as ye, getThemeStyles as Ce } from "@scalar/themes";
7
8
  import { apiReferenceConfigurationSchema as Te } from "@scalar/types/api-reference";
8
9
  import { useToasts as De, ScalarToasts as Ee } from "@scalar/use-toasts";
9
10
  import { useMediaQuery as Oe, useResizeObserver as $e, useDebounceFn as Re } from "@vueuse/core";
10
11
  import Ie from "./GettingStarted.vue.js";
11
- import { sleep as Me } from "../helpers/sleep.js";
12
- import { CONFIGURATION_SYMBOL as Pe } from "../hooks/useConfig.js";
13
- import { useNavState as Le } from "../hooks/useNavState.js";
14
- import { useSidebar as Ae } from "../hooks/useSidebar.js";
15
- import { downloadEventBus as _, downloadDocument as Be } from "../libs/download.js";
16
- import { useHttpClientStore as ke } from "../stores/useHttpClientStore.js";
17
- import { useDocumentSource as Ne } from "../features/DocumentSource/hooks/useDocumentSource.js";
18
- import { OPENAPI_VERSION_SYMBOL as Fe } from "../features/DownloadLink/openapi-version-symbol.js";
19
- import { PLUGIN_MANAGER_SYMBOL as _e } from "../plugins/hooks/usePluginManager.js";
20
- import { createPluginManager as He } from "../plugins/plugin-manager.js";
21
- import Ue from "./Sidebar/Sidebar.vue.js";
22
- import Ye from "./Content/Content.vue.js";
23
- import Ve from "../features/ApiClientModal/ApiClientModal.vue.js";
24
- const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label"], Qe = { class: "references-navigation-list" }, We = { class: "references-editor" }, je = { class: "references-editor-textarea" }, qe = ["aria-label"], Je = {
12
+ import { CONFIGURATION_SYMBOL as Me } from "../hooks/useConfig.js";
13
+ import { useNavState as Pe } from "../hooks/useNavState.js";
14
+ import { useSidebar as Le } from "../hooks/useSidebar.js";
15
+ import { downloadEventBus as _, downloadDocument as Ae } from "../libs/download.js";
16
+ import { useHttpClientStore as Be } from "../stores/useHttpClientStore.js";
17
+ import { useDocumentSource as ke } from "../features/DocumentSource/hooks/useDocumentSource.js";
18
+ import { OPENAPI_VERSION_SYMBOL as Ne } from "../features/DownloadLink/openapi-version-symbol.js";
19
+ import { PLUGIN_MANAGER_SYMBOL as Fe } from "../plugins/hooks/usePluginManager.js";
20
+ import { createPluginManager as _e } from "../plugins/plugin-manager.js";
21
+ import He from "./Sidebar/Sidebar.vue.js";
22
+ import Ue from "./Content/Content.vue.js";
23
+ import Ye from "../features/ApiClientModal/ApiClientModal.vue.js";
24
+ const Ve = ["innerHTML"], ze = { class: "references-header" }, Ge = ["aria-label"], Ke = { class: "references-navigation-list" }, Qe = { class: "references-editor" }, We = { class: "references-editor-textarea" }, je = ["aria-label"], qe = {
25
25
  key: 0,
26
26
  class: "references-footer"
27
- }, Et = /* @__PURE__ */ ie({
27
+ }, Dt = /* @__PURE__ */ ne({
28
28
  inheritAttrs: !1,
29
29
  __name: "ApiReferenceLayout",
30
30
  props: {
@@ -47,35 +47,34 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
47
47
  parsedDocument: D,
48
48
  workspaceStore: z,
49
49
  activeEntitiesStore: G
50
- } = Ne({
50
+ } = ke({
51
51
  configuration: t,
52
52
  dereferencedDocument: b.dereferencedDocument,
53
53
  originalDocument: b.originalDocument
54
54
  });
55
- u(Fe, V), u(Se, z), u(he, G);
55
+ u(Ne, V), u(ge, z), u(Se, G);
56
56
  const K = Oe("(min-width: 1150px)"), Q = E("100dvh"), f = E(null);
57
57
  $e(f, (e) => {
58
58
  Q.value = e[0].contentRect.height + "px";
59
59
  });
60
60
  const W = h(ye), {
61
- breadcrumb: j,
62
- collapsedSidebarItems: Xe,
63
- isSidebarOpen: q,
64
- setCollapsedSidebarItem: Ze,
65
- hideModels: J,
66
- defaultOpenAllTags: X,
61
+ collapsedSidebarItems: Je,
62
+ isSidebarOpen: j,
63
+ setCollapsedSidebarItem: Xe,
64
+ hideModels: q,
65
+ defaultOpenAllTags: J,
67
66
  // setParsedSpec,
68
- scrollToOperation: Z
69
- } = Ae(), {
70
- getReferenceId: x,
71
- getPathRoutingId: ee,
72
- getSectionId: xe,
73
- getTagId: et,
74
- hash: tt,
67
+ scrollToOperation: X
68
+ } = Le(), {
69
+ getReferenceId: Z,
70
+ getPathRoutingId: x,
71
+ getSectionId: Ze,
72
+ getTagId: xe,
73
+ hash: et,
75
74
  isIntersectionEnabled: $,
76
75
  updateHash: R,
77
- replaceUrlState: te
78
- } = Le(t);
76
+ replaceUrlState: ee
77
+ } = Pe(t);
79
78
  if (t.value.redirect && typeof window < "u") {
80
79
  const e = t.value.redirect(
81
80
  (t.value.pathRouting ? window.location.pathname : "") + window.location.hash
@@ -85,9 +84,9 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
85
84
  B(() => R());
86
85
  const I = async (e) => {
87
86
  var o;
88
- $.value = !1, R(), e ? Z(e) : (o = f.value) == null || o.scrollTo(0, 0), await Me(100), $.value = !0;
87
+ $.value = !1, R(), e ? X(e) : (o = f.value) == null || o.scrollTo(0, 0), await we(100), $.value = !0;
89
88
  }, M = E(0);
90
- B(() => be()), k(() => {
89
+ B(() => he()), k(() => {
91
90
  var r, p, v;
92
91
  history.scrollRestoration = "manual";
93
92
  const e = (p = (r = f.value) == null ? void 0 : r.parentElement) == null ? void 0 : p.getBoundingClientRect(), o = (v = f.value) == null ? void 0 : v.getBoundingClientRect();
@@ -96,35 +95,35 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
96
95
  M.value = g < 2 ? 0 : g;
97
96
  }
98
97
  window.onhashchange = () => {
99
- I(x());
100
- }, window.onpopstate = () => t.value.pathRouting && I(ee(window.location.pathname));
98
+ I(Z());
99
+ }, window.onpopstate = () => t.value.pathRouting && I(x(window.location.pathname));
101
100
  });
102
- const oe = h(
101
+ const te = h(
103
102
  () => K.value || !t.value.isEditable
104
103
  ), P = Re((e) => {
105
104
  if ((e.target.scrollTop ?? 0) < 50) {
106
105
  const r = t.value.pathRouting ? t.value.pathRouting.basePath : window.location.pathname;
107
- te("", r + window.location.search);
106
+ ee("", r + window.location.search);
108
107
  }
109
108
  }), n = h(() => ({
110
- breadcrumb: j.value,
111
109
  spec: D.value
112
110
  }));
113
111
  k(
114
- () => _.on(({ filename: e }) => {
115
- Be(
112
+ () => _.on(({ filename: e, format: o }) => {
113
+ Ae(
116
114
  N(Y) || N(b.rawSpec) || "",
117
- e
115
+ e,
116
+ o
118
117
  );
119
118
  })
120
- ), se(() => _.reset()), ve(() => le()), u(ge, "modal"), u(Pe, t), u(
121
- _e,
122
- He({
119
+ ), ie(() => _.reset()), pe(() => se()), u(ve, "modal"), u(Me, t), u(
120
+ Fe,
121
+ _e({
123
122
  plugins: t.value.plugins
124
123
  })
125
124
  );
126
125
  function L(e, o) {
127
- pe(
126
+ fe(
128
127
  () => t.value[e],
129
128
  (r) => {
130
129
  typeof r < "u" && o(r);
@@ -132,9 +131,9 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
132
131
  { immediate: !0 }
133
132
  );
134
133
  }
135
- const { setExcludedClients: ae, setDefaultHttpClient: re } = ke();
136
- L("defaultHttpClient", re), L("hiddenClients", ae), J.value = t.value.hideModels ?? !1, X.value = t.value.defaultOpenAllTags ?? !1;
137
- const ne = h(
134
+ const { setExcludedClients: oe, setDefaultHttpClient: ae } = Be();
135
+ L("defaultHttpClient", ae), L("hiddenClients", oe), q.value = t.value.hideModels ?? !1, J.value = t.value.defaultOpenAllTags ?? !1;
136
+ const re = h(
138
137
  () => `<style>
139
138
  ${Ce(t.value.theme, {
140
139
  fonts: t.value.withDefaultFonts
@@ -143,27 +142,27 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
143
142
  return (e, o) => {
144
143
  var r, p, v, g, A;
145
144
  return C(), y(F, null, [
146
- i("div", { innerHTML: ne.value }, null, 8, ze),
145
+ i("div", { innerHTML: re.value }, null, 8, Ve),
147
146
  i("div", {
148
147
  ref_key: "documentEl",
149
148
  ref: f,
150
- class: ue(["scalar-app scalar-api-reference references-layout", [
149
+ class: de(["scalar-app scalar-api-reference references-layout", [
151
150
  {
152
151
  "scalar-scrollbars-obtrusive": W.value,
153
152
  "references-editable": t.value.isEditable,
154
153
  "references-sidebar": t.value.showSidebar,
155
- "references-sidebar-mobile-open": a(q),
154
+ "references-sidebar-mobile-open": a(j),
156
155
  "references-classic": t.value.layout === "classic"
157
156
  },
158
157
  e.$attrs.class
159
158
  ]]),
160
- style: de({
159
+ style: le({
161
160
  "--scalar-y-offset": `var(--scalar-custom-header-height, ${M.value}px)`
162
161
  }),
163
162
  onScrollPassive: o[4] || (o[4] = //@ts-ignore
164
163
  (...w) => a(P) && a(P)(...w))
165
164
  }, [
166
- i("div", Ge, [
165
+ i("div", ze, [
167
166
  s(e.$slots, "header", l(d(n.value)), void 0, !0)
168
167
  ]),
169
168
  t.value.showSidebar ? (C(), y("aside", {
@@ -171,10 +170,10 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
171
170
  "aria-label": `Sidebar for ${(p = (r = a(T)) == null ? void 0 : r.info) == null ? void 0 : p.title}`,
172
171
  class: "references-navigation t-doc__sidebar"
173
172
  }, [
174
- i("div", Qe, [
175
- c(a(we), null, {
173
+ i("div", Ke, [
174
+ c(a(be), null, {
176
175
  default: m(() => [
177
- c(a(Ue), {
176
+ c(a(He), {
178
177
  operationsSorter: t.value.operationsSorter,
179
178
  parsedSpec: a(D),
180
179
  tagsSorter: t.value.tagsSorter
@@ -191,23 +190,23 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
191
190
  _: 3
192
191
  })
193
192
  ])
194
- ], 8, Ke)) : O("", !0),
195
- ce(i("div", We, [
196
- i("div", je, [
193
+ ], 8, Ge)) : O("", !0),
194
+ ue(i("div", Qe, [
195
+ i("div", We, [
197
196
  s(e.$slots, "editor", l(d(n.value)), void 0, !0)
198
197
  ])
199
198
  ], 512), [
200
- [me, t.value.isEditable]
199
+ [ce, t.value.isEditable]
201
200
  ]),
202
- oe.value ? (C(), y(F, { key: 1 }, [
201
+ te.value ? (C(), y(F, { key: 1 }, [
203
202
  i("main", {
204
203
  "aria-label": `Open API Documentation for ${(g = (v = a(T)) == null ? void 0 : v.info) == null ? void 0 : g.title}`,
205
204
  class: "references-rendered"
206
205
  }, [
207
- c(a(Ye), {
206
+ c(a(Ue), {
208
207
  layout: t.value.layout,
209
208
  parsedSpec: a(D)
210
- }, fe({
209
+ }, me({
211
210
  start: m(() => [
212
211
  s(e.$slots, "content-start", l(d(n.value)), void 0, !0)
213
212
  ]),
@@ -233,12 +232,12 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
233
232
  key: "0"
234
233
  } : void 0
235
234
  ]), 1032, ["layout", "parsedSpec"])
236
- ], 8, qe),
237
- e.$slots.footer ? (C(), y("div", Je, [
235
+ ], 8, je),
236
+ e.$slots.footer ? (C(), y("div", qe, [
238
237
  s(e.$slots, "footer", l(d(n.value)), void 0, !0)
239
238
  ])) : O("", !0)
240
239
  ], 64)) : O("", !0),
241
- c(a(Ve), {
240
+ c(a(Ye), {
242
241
  configuration: t.value,
243
242
  dereferencedDocument: a(T)
244
243
  }, null, 8, ["configuration", "dereferencedDocument"])
@@ -249,5 +248,5 @@ const ze = ["innerHTML"], Ge = { class: "references-header" }, Ke = ["aria-label
249
248
  }
250
249
  });
251
250
  export {
252
- Et as default
251
+ Dt as default
253
252
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"AA2BA,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.vue"],"names":[],"mappings":"AA4BA,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -7,7 +7,7 @@ function s(e, a) {
7
7
  r(e.$slots, "default", {}, void 0, !0)
8
8
  ]);
9
9
  }
10
- const l = /* @__PURE__ */ c(n, [["render", s], ["__scopeId", "data-v-190574ac"]]);
10
+ const l = /* @__PURE__ */ c(n, [["render", s], ["__scopeId", "data-v-1eb90c5b"]]);
11
11
  export {
12
12
  l as default
13
13
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientLibraries.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-076e8959"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-714ac357"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };
@@ -2,7 +2,7 @@ import { defineComponent as K, ref as w, useId as h, watch as P, onMounted as B,
2
2
  import { TabGroup as M, TabList as O, TabPanels as R, TabPanel as j } from "@headlessui/vue";
3
3
  import { useWorkspace as G } from "@scalar/api-client/store";
4
4
  import { ScalarMarkdown as J, ScalarCodeBlock as W } from "@scalar/components";
5
- import { REFERENCE_LS_KEYS as Y } from "../../../helpers/local-storage.js";
5
+ import { REFERENCE_LS_KEYS as Y } from "@scalar/helpers/object/local-storage";
6
6
  import { useHttpClientStore as q } from "../../../stores/useHttpClientStore.js";
7
7
  import z from "./ClientSelector.vue.js";
8
8
  import { useFeaturedHttpClients as Q } from "./useFeaturedHttpClients.js";
@@ -1 +1 @@
1
- {"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"AAqIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AA2KF,wBAMG"}
1
+ {"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"AAiIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAyKF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Description.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-62dad0f5"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2843ffaf"]]);
5
5
  export {
6
- f as default
6
+ a as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AA6QA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;gBAwCb,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;gBAHJ,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;YADP,QAAQ,GAAG,SAAS;;AAlBjC,wBA4UK"}
1
+ {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AA8QA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;gBAuCb,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;gBAHJ,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;YADP,QAAQ,GAAG,SAAS;;AAlBjC,wBA4UK"}
@@ -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":"AA2SA,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;;AAgWF,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 U, ref as D, computed as s, resolveComponent as E, createElementBlock as u, openBlock as m, createCommentVNode as p, createBlock as f, Fragment as H, renderList as F, createVNode as b, createElementVNode as d, unref as v, withCtx as I, toDisplayString as w } from "vue";
2
- import { ScalarListbox as M, ScalarMarkdown as $ } from "@scalar/components";
3
- import { ScalarIconCaretDown as R } from "@scalar/icons";
4
- import { stringify as j } from "flatted";
5
- import { mergeAllOfSchemas as Z } from "./helpers/merge-all-of-schemas.js";
6
- import { hasComposition as g } from "./helpers/schema-composition.js";
7
- import S from "./Schema.vue.js";
8
- const G = { class: "property-rule" }, J = {
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
+ 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
- }, K = { class: "text-c-2" }, P = { class: "composition-selector-label text-c-1 relative" }, Q = { class: "composition-panel" }, X = {
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__ */ U({
14
+ }, te = /* @__PURE__ */ F({
15
15
  __name: "SchemaComposition",
16
16
  props: {
17
17
  composition: {},
@@ -22,132 +22,96 @@ const G = { class: "property-rule" }, J = {
22
22
  compact: { type: Boolean },
23
23
  hideHeading: { type: Boolean }
24
24
  },
25
- setup(l) {
26
- const y = D(0), C = s(
27
- () => N.value.map((e, o) => ({
28
- id: String(o),
29
- label: A(e) || "Schema"
30
- }))
25
+ setup(a) {
26
+ const d = M(0);
27
+ s(() => a.value[a.composition] || []);
28
+ const B = s(() => k.value), C = s(
29
+ () => B.value.map(
30
+ (e, o) => ({
31
+ id: String(o),
32
+ label: J(e, a.schemas) || "Schema"
33
+ })
34
+ )
31
35
  ), O = s({
32
36
  get: () => C.value.find(
33
- (e) => e.id === String(y.value)
37
+ (e) => e.id === String(d.value)
34
38
  ),
35
- set: (e) => y.value = Number(e.id)
36
- }), q = s(() => {
37
- var t;
38
- const e = ["oneOf", "anyOf"].includes(l.composition), o = l.composition === "allOf" && ((t = l.value[l.composition]) == null ? void 0 : t.some((n) => g(n)));
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)));
39
43
  return e || o;
40
- }), A = (e) => {
41
- if (!e)
42
- return null;
43
- if (e.title)
44
- return e.title;
45
- if (e.name)
46
- return e.name;
47
- if (l.schemas && typeof l.schemas == "object") {
48
- for (const [o, t] of Object.entries(l.schemas))
49
- if (j(t) === j(e))
50
- return o;
51
- }
52
- if (e.type === "array" && e.items)
53
- return `Array of ${e.items.type || "any"}`;
54
- if (e.type)
55
- return e.type;
56
- if (typeof e == "object") {
57
- const o = Object.keys(e);
58
- if (o.length > 0)
59
- return o[0];
60
- }
61
- return null;
62
- }, k = (e) => e.find((o) => g(o)), N = s(() => {
63
- if (!k(l.value[l.composition]))
64
- return l.value[l.composition];
65
- const e = k(l.value[l.composition]);
66
- return (e.oneOf || e.anyOf || e.allOf).map((t) => {
67
- if (t.allOf) {
68
- const n = t.allOf.find((c) => c.title), r = t.allOf.find((c) => !c.title);
69
- return n && r ? {
70
- ...n,
71
- properties: {
72
- ...n.properties,
73
- ...r.properties
74
- },
75
- required: [
76
- ...n.required || [],
77
- ...r.required || []
78
- ],
79
- oneOf: r.oneOf,
80
- anyOf: r.anyOf
81
- } : n || t;
82
- }
83
- return t;
84
- });
85
- }), B = (e) => {
86
- var o, t;
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;
87
51
  if (e === "allOf") {
88
- const n = (t = (o = l.value) == null ? void 0 : o[e]) == null ? void 0 : t.find(
89
- (r) => g(r)
52
+ const l = (i = (o = a.value) == null ? void 0 : o[e]) == null ? void 0 : i.find(
53
+ (m) => b(m)
90
54
  );
91
- if (n != null && n.oneOf)
55
+ if (l != null && l.oneOf)
92
56
  return "One of";
93
- if (n != null && n.anyOf)
57
+ if (l != null && l.anyOf)
94
58
  return "Any of";
95
59
  }
96
- return e.replace(/([A-Z])/g, " $1").replace(/^./, (n) => n.toUpperCase()).toLowerCase().replace(/^(\w)/, (n) => n.toUpperCase());
97
- }, i = s(
98
- () => N.value[y.value]
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]
99
63
  ), h = s(() => {
100
64
  var e;
101
- return (e = i.value) != null && e.oneOf ? "oneOf" : "anyOf";
102
- }), T = s(() => {
65
+ return (e = t.value) != null && e.oneOf ? "oneOf" : "anyOf";
66
+ }), q = s(() => {
103
67
  var o;
104
68
  const e = h.value;
105
- return (o = i.value) == null ? void 0 : o[e];
69
+ return (o = t.value) == null ? void 0 : o[e];
106
70
  }), z = s(() => {
107
- const e = i.value;
71
+ const e = t.value;
108
72
  return e ? !!(e.properties || e.type || e.nullable || e.const !== void 0 || e.enum || e.allOf || e.oneOf || e.anyOf || e.items) : !1;
109
73
  });
110
74
  return (e, o) => {
111
- var n, r, c, V;
112
- const t = E("SchemaComposition", !0);
113
- return m(), u("div", G, [
114
- e.composition === "allOf" && e.value[e.composition].some((a) => a.oneOf || a.anyOf) ? (m(!0), u(H, { key: 0 }, F(e.value[e.composition].filter(
115
- (a) => !a.oneOf && !a.anyOf
116
- ), (a, L) => (m(), f(S, {
117
- key: L,
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,
118
82
  compact: e.compact,
119
83
  level: e.level,
120
84
  name: e.name,
121
85
  noncollapsible: e.level == 0,
122
86
  schemas: e.schemas,
123
- value: a
124
- }, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))), 128)) : p("", !0),
125
- q.value ? (m(), u(H, { key: 1 }, [
126
- b(v(M), {
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), {
127
91
  modelValue: O.value,
128
- "onUpdate:modelValue": o[0] || (o[0] = (a) => O.value = a),
92
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => O.value = n),
129
93
  options: C.value,
130
94
  resize: ""
131
95
  }, {
132
- default: I(() => {
133
- var a;
96
+ default: R(() => {
97
+ var n;
134
98
  return [
135
- d("button", J, [
136
- d("span", K, w(B(e.composition)), 1),
137
- d("span", P, w(((a = O.value) == null ? void 0 : a.label) || "Schema"), 1),
138
- b(v(R), { 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))
139
103
  ])
140
104
  ];
141
105
  }),
142
106
  _: 1
143
107
  }, 8, ["modelValue", "options"]),
144
- d("div", Q, [
145
- (n = i.value) != null && n.description ? (m(), u("div", X, [
146
- b(v($), {
147
- 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
148
112
  }, null, 8, ["value"])
149
- ])) : p("", !0),
150
- z.value ? (m(), f(S, {
113
+ ])) : u("", !0),
114
+ z.value ? (r(), p(g, {
151
115
  key: 1,
152
116
  compact: e.compact,
153
117
  level: e.level + 1,
@@ -155,13 +119,13 @@ const G = { class: "property-rule" }, J = {
155
119
  name: e.name,
156
120
  noncollapsible: !0,
157
121
  schemas: e.schemas,
158
- value: (r = i.value) != null && r.properties ? {
122
+ value: (m = t.value) != null && m.properties ? {
159
123
  type: "object",
160
- properties: i.value.properties,
161
- required: i.value.required
162
- } : i.value
163
- }, null, 8, ["compact", "level", "hideHeading", "name", "schemas", "value"])) : p("", !0),
164
- (c = i.value) != null && c.oneOf || (V = i.value) != null && V.anyOf ? (m(), f(t, {
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, {
165
129
  key: 2,
166
130
  compact: e.compact,
167
131
  composition: h.value,
@@ -171,18 +135,18 @@ const G = { class: "property-rule" }, J = {
171
135
  noncollapsible: !0,
172
136
  schemas: e.schemas,
173
137
  value: {
174
- [h.value]: T.value
138
+ [h.value]: q.value
175
139
  }
176
- }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "schemas", "value"])) : p("", !0)
140
+ }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "schemas", "value"])) : u("", !0)
177
141
  ])
178
- ], 64)) : (m(), f(S, {
142
+ ], 64)) : (r(), p(g, {
179
143
  key: 2,
180
144
  compact: e.compact,
181
145
  level: e.level,
182
146
  name: e.name,
183
147
  noncollapsible: e.level == 0,
184
148
  schemas: e.schemas,
185
- value: v(Z)(e.value[e.composition])
149
+ value: v(w)(e.value[e.composition])
186
150
  }, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
187
151
  ]);
188
152
  };