@scalar/api-reference 1.35.7 → 1.36.1

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 (194) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/browser/standalone.js +14984 -15007
  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 +1 -1
  6. package/dist/components/ApiReferenceLayout.vue2.js +148 -150
  7. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Content.vue.js +44 -51
  9. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +4 -1
  10. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Models/ClassicLayout.vue.js +1 -1
  12. package/dist/components/Content/Models/ClassicLayout.vue2.js +49 -40
  13. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  14. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Models/Models.vue.js +25 -23
  16. package/dist/components/Content/Models/ModernLayout.vue.d.ts +1 -0
  17. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
  19. package/dist/components/Content/Models/ModernLayout.vue2.js +54 -51
  20. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +1 -2
  21. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Operations/TraversedEntry.vue.js +24 -24
  23. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +1 -1
  25. package/dist/components/Content/Operations/get-current-index.d.ts +1 -1
  26. package/dist/components/Content/Operations/get-current-index.d.ts.map +1 -1
  27. package/dist/components/Content/Operations/get-current-index.js +1 -1
  28. package/dist/components/Content/Schema/Schema.vue.d.ts +3 -4
  29. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  31. package/dist/components/Content/Schema/Schema.vue2.js +72 -75
  32. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +4 -5
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/SchemaComposition.vue.js +46 -49
  35. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +2 -7
  36. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  37. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +33 -54
  38. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -6
  39. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  41. package/dist/components/Content/Schema/SchemaProperty.vue2.js +72 -76
  42. package/dist/components/Content/Schema/helpers/sort-property-names.d.ts +16 -0
  43. package/dist/components/Content/Schema/helpers/sort-property-names.d.ts.map +1 -0
  44. package/dist/components/Content/Schema/helpers/sort-property-names.js +36 -0
  45. package/dist/components/Content/Schema/types.d.ts +17 -0
  46. package/dist/components/Content/Schema/types.d.ts.map +1 -0
  47. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts +1 -1
  48. package/dist/components/Content/Tags/ClassicLayout.vue.d.ts.map +1 -1
  49. package/dist/components/Content/Tags/ClassicLayout.vue.js +2 -2
  50. package/dist/components/Content/Tags/ClassicLayout.vue2.js +1 -1
  51. package/dist/components/Content/Tags/ModernLayout.vue.d.ts +1 -1
  52. package/dist/components/Content/Tags/ModernLayout.vue.d.ts.map +1 -1
  53. package/dist/components/Content/Tags/ModernLayout.vue.js +2 -2
  54. package/dist/components/Content/Tags/ModernLayout.vue2.js +2 -2
  55. package/dist/components/Content/Tags/Tag.vue.d.ts +1 -1
  56. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
  57. package/dist/components/Content/Tags/TagSection.vue.d.ts +1 -1
  58. package/dist/components/Content/Tags/TagSection.vue.d.ts.map +1 -1
  59. package/dist/components/Content/Tags/TagSection.vue.js +4 -4
  60. package/dist/components/MobileHeader.vue.js +2 -2
  61. package/dist/components/MobileHeader.vue2.js +1 -1
  62. package/dist/components/OperationsList/OperationsList.vue.d.ts +1 -1
  63. package/dist/components/OperationsList/OperationsList.vue.d.ts.map +1 -1
  64. package/dist/components/OperationsList/OperationsList.vue.js +1 -1
  65. package/dist/components/OperationsList/OperationsList.vue2.js +9 -11
  66. package/dist/components/OperationsList/OperationsListItem.vue.d.ts +1 -1
  67. package/dist/components/OperationsList/OperationsListItem.vue.d.ts.map +1 -1
  68. package/dist/components/OperationsList/OperationsListItem.vue.js +2 -2
  69. package/dist/components/OperationsList/OperationsListItem.vue2.js +24 -27
  70. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  71. package/dist/components/Section/Section.vue.js +2 -2
  72. package/dist/components/Section/Section.vue2.js +12 -13
  73. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  74. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  75. package/dist/components/Section/SectionAccordion.vue2.js +36 -37
  76. package/dist/components/ShowMoreButton.vue.js +2 -2
  77. package/dist/components/ShowMoreButton.vue2.js +3 -3
  78. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  79. package/dist/features/Operation/Operation.vue.js +32 -22
  80. package/dist/features/Operation/components/Header.vue.d.ts +2 -0
  81. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
  82. package/dist/features/Operation/components/Header.vue.js +15 -10
  83. package/dist/features/Operation/components/Headers.vue.d.ts +2 -0
  84. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
  85. package/dist/features/Operation/components/Headers.vue.js +1 -1
  86. package/dist/features/Operation/components/Headers.vue2.js +23 -21
  87. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  88. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  89. package/dist/features/Operation/components/ParameterListItem.vue2.js +55 -48
  90. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  91. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  92. package/dist/features/Operation/components/RequestBody.vue2.js +74 -49
  93. package/dist/features/Operation/helpers/get-first-server.d.ts +9 -0
  94. package/dist/features/Operation/helpers/get-first-server.d.ts.map +1 -0
  95. package/dist/features/Operation/helpers/get-first-server.js +20 -0
  96. package/dist/features/Search/components/SearchButton.vue.d.ts +2 -0
  97. package/dist/features/Search/components/SearchButton.vue.d.ts.map +1 -1
  98. package/dist/features/Search/components/SearchButton.vue.js +19 -17
  99. package/dist/features/Search/components/SearchModal.vue.d.ts +2 -1
  100. package/dist/features/Search/components/SearchModal.vue.d.ts.map +1 -1
  101. package/dist/features/Search/components/SearchModal.vue.js +2 -2
  102. package/dist/features/Search/components/SearchModal.vue2.js +74 -75
  103. package/dist/features/Search/helpers/create-search-index.d.ts +2 -2
  104. package/dist/features/Search/helpers/create-search-index.d.ts.map +1 -1
  105. package/dist/features/Search/helpers/create-search-index.js +68 -66
  106. package/dist/features/Search/hooks/useSearchIndex.d.ts +3 -2
  107. package/dist/features/Search/hooks/useSearchIndex.d.ts.map +1 -1
  108. package/dist/features/Search/hooks/useSearchIndex.js +13 -13
  109. package/dist/features/Search/types.d.ts +1 -1
  110. package/dist/features/Search/types.d.ts.map +1 -1
  111. package/dist/features/api-client-modal/useApiClient.d.ts +40 -40
  112. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  113. package/dist/helpers/convert-security-scheme.d.ts +1 -1
  114. package/dist/helpers/test-utils.d.ts +367 -5
  115. package/dist/helpers/test-utils.d.ts.map +1 -1
  116. package/dist/hooks/useNavState.d.ts +1 -15
  117. package/dist/hooks/useNavState.d.ts.map +1 -1
  118. package/dist/hooks/useNavState.js +29 -53
  119. package/dist/index.d.ts +5 -6
  120. package/dist/index.d.ts.map +1 -1
  121. package/dist/index.js +16 -20
  122. package/dist/style.css +1 -1
  123. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -1
  124. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +5 -6
  125. package/dist/{features/sidebar/components/Sidebar.vue.d.ts → v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts} +1 -1
  126. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.d.ts.map +1 -0
  127. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue.js +7 -0
  128. package/dist/{features/sidebar/components/Sidebar.vue2.js → v2/blocks/scalar-sidebar-block/components/SidebarBlock.vue2.js} +15 -15
  129. package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarElement.vue.d.ts +1 -1
  130. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.d.ts.map +1 -0
  131. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarElement.vue.js +7 -0
  132. package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarElement.vue2.js +41 -43
  133. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.d.ts.map +1 -0
  134. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarGroup.vue.js +7 -0
  135. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.d.ts.map +1 -0
  136. package/dist/v2/blocks/scalar-sidebar-block/components/SidebarHttpBadge.vue.js +7 -0
  137. package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarHttpBadge.vue2.js +1 -1
  138. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts +385 -0
  139. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.d.ts.map +1 -0
  140. package/dist/v2/blocks/scalar-sidebar-block/helpers/create-sidebar.js +35 -0
  141. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts +189 -0
  142. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.d.ts.map +1 -0
  143. package/dist/v2/blocks/scalar-sidebar-block/helpers/generate-reverse-index.js +9 -0
  144. package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/hooks/useSidebar.d.ts +4 -8
  145. package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.d.ts.map +1 -0
  146. package/dist/v2/blocks/scalar-sidebar-block/hooks/useSidebar.js +18 -0
  147. package/dist/v2/blocks/scalar-sidebar-block/index.d.ts +4 -0
  148. package/dist/v2/blocks/scalar-sidebar-block/index.d.ts.map +1 -0
  149. package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
  150. package/package.json +11 -11
  151. package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +0 -1
  152. package/dist/features/sidebar/components/Sidebar.vue.js +0 -7
  153. package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +0 -1
  154. package/dist/features/sidebar/components/SidebarElement.vue.js +0 -7
  155. package/dist/features/sidebar/components/SidebarGroup.vue.d.ts.map +0 -1
  156. package/dist/features/sidebar/components/SidebarGroup.vue.js +0 -7
  157. package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +0 -1
  158. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +0 -7
  159. package/dist/features/sidebar/helpers/create-sidebar.d.ts +0 -28
  160. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +0 -1
  161. package/dist/features/sidebar/helpers/create-sidebar.js +0 -32
  162. package/dist/features/sidebar/hooks/useSidebar.d.ts.map +0 -1
  163. package/dist/features/sidebar/hooks/useSidebar.js +0 -18
  164. package/dist/features/sidebar/index.d.ts +0 -4
  165. package/dist/features/sidebar/index.d.ts.map +0 -1
  166. package/dist/features/traverse-schema/helpers/get-tag.d.ts +0 -6
  167. package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +0 -1
  168. package/dist/features/traverse-schema/helpers/get-tag.js +0 -7
  169. package/dist/features/traverse-schema/helpers/traverse-description.d.ts +0 -11
  170. package/dist/features/traverse-schema/helpers/traverse-description.d.ts.map +0 -1
  171. package/dist/features/traverse-schema/helpers/traverse-description.js +0 -32
  172. package/dist/features/traverse-schema/helpers/traverse-document.d.ts +0 -16
  173. package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +0 -1
  174. package/dist/features/traverse-schema/helpers/traverse-document.js +0 -33
  175. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +0 -18
  176. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +0 -1
  177. package/dist/features/traverse-schema/helpers/traverse-paths.js +0 -30
  178. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +0 -8
  179. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +0 -1
  180. package/dist/features/traverse-schema/helpers/traverse-schemas.js +0 -21
  181. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +0 -11
  182. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +0 -1
  183. package/dist/features/traverse-schema/helpers/traverse-tags.js +0 -43
  184. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +0 -10
  185. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +0 -1
  186. package/dist/features/traverse-schema/helpers/traverse-webhooks.js +0 -24
  187. package/dist/features/traverse-schema/index.d.ts +0 -5
  188. package/dist/features/traverse-schema/index.d.ts.map +0 -1
  189. package/dist/features/traverse-schema/types.d.ts +0 -55
  190. package/dist/features/traverse-schema/types.d.ts.map +0 -1
  191. package/dist/libs/markdown.js +0 -18
  192. /package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarGroup.vue.d.ts +0 -0
  193. /package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarGroup.vue2.js +0 -0
  194. /package/dist/{features/sidebar → v2/blocks/scalar-sidebar-block}/components/SidebarHttpBadge.vue.d.ts +0 -0
@@ -1,54 +1,47 @@
1
- import { defineComponent as I, computed as c, createElementBlock as L, openBlock as i, Fragment as V, createVNode as r, createElementVNode as $, unref as t, renderSlot as m, createBlock as a, createCommentVNode as l, withCtx as o } from "vue";
2
- import { useWorkspace as b, useActiveEntities as N } from "@scalar/api-client/store";
1
+ import { defineComponent as $, computed as c, createElementBlock as A, openBlock as s, Fragment as L, createVNode as r, createElementVNode as U, unref as t, renderSlot as m, createBlock as a, createCommentVNode as l, withCtx as o } from "vue";
2
+ import { useWorkspace as B, useActiveEntities as F } from "@scalar/api-client/store";
3
3
  import { ScalarErrorBoundary as d } from "@scalar/components";
4
- import { getSlugUid as F } from "@scalar/oas-utils/transforms";
5
- import B from "./IntroductionSection.vue.js";
6
- import { useFreezing as j } from "../../hooks/useFreezing.js";
7
- import { useNavState as T } from "../../hooks/useNavState.js";
4
+ import { getSlugUid as I } from "@scalar/oas-utils/transforms";
5
+ import j from "./IntroductionSection.vue.js";
6
+ import { useFreezing as N } from "../../hooks/useFreezing.js";
8
7
  import { generateClientOptions as W } from "../../v2/blocks/scalar-request-example-block/helpers/generate-client-options.js";
9
- import { DEFAULT_INTRODUCTION_SLUG as z } from "../../features/traverse-schema/helpers/traverse-description.js";
8
+ import { useSidebar as z } from "../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
10
9
  import { getXKeysFromObject as g } from "../../features/specification-extension/helpers.js";
11
- import G from "../SectionFlare/SectionFlare.vue.js";
12
- import H from "../../v2/blocks/scalar-info-block/components/InfoBlock.vue.js";
10
+ import K from "../SectionFlare/SectionFlare.vue.js";
11
+ import M from "../../v2/blocks/scalar-info-block/components/InfoBlock.vue.js";
13
12
  import f from "../../v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js";
14
- import K from "../../v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
15
- import M from "../../v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
16
- import R from "../../v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
17
- import X from "./Operations/TraversedEntryContainer.vue.js";
18
- import q from "./Models/Models.vue.js";
19
- const J = { class: "narrow-references-container" }, fe = /* @__PURE__ */ I({
13
+ import X from "../../v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
14
+ import q from "../../v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
15
+ import G from "../../v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
16
+ import H from "./Operations/TraversedEntryContainer.vue.js";
17
+ import J from "./Models/Models.vue.js";
18
+ const P = { class: "narrow-references-container" }, me = /* @__PURE__ */ $({
20
19
  __name: "Content",
21
20
  props: {
22
21
  config: {},
23
22
  store: {}
24
23
  },
25
- setup(s) {
26
- j();
24
+ setup(i) {
25
+ N();
27
26
  const u = c(
28
- () => W(s.config.hiddenClients)
29
- ), { getHeadingId: k } = T(), S = c(
30
- () => k({
31
- slug: z,
32
- depth: 1,
33
- value: "Introduction"
34
- })
35
- ), h = c(
36
- () => g(s.store.workspace.activeDocument)
27
+ () => W(i.config.hiddenClients)
28
+ ), { items: k } = z(), S = c(() => k.value.entries[0]?.id), h = c(
29
+ () => g(i.store.workspace.activeDocument)
37
30
  ), w = c(
38
- () => g(s.store.workspace.activeDocument?.info)
39
- ), { collections: D, securitySchemes: y, servers: v } = b(), {
31
+ () => g(i.store.workspace.activeDocument?.info)
32
+ ), { collections: y, securitySchemes: D, servers: v } = B(), {
40
33
  activeCollection: C,
41
34
  activeEnvVariables: E,
42
35
  activeEnvironment: O,
43
36
  activeWorkspace: p
44
- } = N(), n = c(() => {
45
- if (s.config.slug) {
46
- const e = D[F(s.config.slug)];
37
+ } = F(), n = c(() => {
38
+ if (i.config.slug) {
39
+ const e = y[I(i.config.slug)];
47
40
  if (e)
48
41
  return e;
49
42
  }
50
43
  return C.value;
51
- }), U = c(() => {
44
+ }), b = c(() => {
52
45
  if (n.value) {
53
46
  if (n.value.selectedServerUid) {
54
47
  const e = v[n.value.selectedServerUid];
@@ -57,24 +50,24 @@ const J = { class: "narrow-references-container" }, fe = /* @__PURE__ */ I({
57
50
  }
58
51
  return v[n.value.servers[0]];
59
52
  }
60
- }), A = () => s.store.exportActiveDocument("json") ?? "{}";
61
- return (e, P) => (i(), L(V, null, [
62
- r(t(G)),
63
- $("div", J, [
53
+ }), V = () => i.store.exportActiveDocument("json") ?? "{}";
54
+ return (e, Q) => (s(), A(L, null, [
55
+ r(t(K)),
56
+ U("div", P, [
64
57
  m(e.$slots, "start"),
65
- r(B, {
58
+ r(j, {
66
59
  showEmptyState: !e.store.workspace.activeDocument
67
60
  }, {
68
61
  "empty-state": o(() => [
69
62
  m(e.$slots, "empty-state")
70
63
  ]),
71
64
  default: o(() => [
72
- e.store.workspace.activeDocument ? (i(), a(t(H), {
65
+ e.store.workspace.activeDocument ? (s(), a(t(M), {
73
66
  key: 0,
74
67
  id: S.value,
75
68
  documentExtensions: h.value,
76
69
  externalDocs: e.store.workspace.activeDocument.externalDocs,
77
- getOriginalDocument: A,
70
+ getOriginalDocument: V,
78
71
  info: e.store.workspace.activeDocument.info,
79
72
  infoExtensions: w.value,
80
73
  isLoading: e.config.isLoading,
@@ -85,12 +78,12 @@ const J = { class: "narrow-references-container" }, fe = /* @__PURE__ */ I({
85
78
  selectors: o(() => [
86
79
  r(t(d), null, {
87
80
  default: o(() => [
88
- e.store.workspace.activeDocument?.servers?.length ? (i(), a(t(f), {
81
+ e.store.workspace.activeDocument?.servers?.length ? (s(), a(t(f), {
89
82
  key: 0,
90
83
  class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
91
84
  }, {
92
85
  default: o(() => [
93
- r(t(K), {
86
+ r(t(X), {
94
87
  servers: e.store.workspace.activeDocument?.servers ?? [],
95
88
  xSelectedServer: e.store.workspace.activeDocument?.["x-scalar-active-server"]
96
89
  }, null, 8, ["servers", "xSelectedServer"])
@@ -102,19 +95,19 @@ const J = { class: "narrow-references-container" }, fe = /* @__PURE__ */ I({
102
95
  }),
103
96
  r(t(d), null, {
104
97
  default: o(() => [
105
- n.value && t(p) && Object.keys(t(y) ?? {}).length ? (i(), a(t(f), {
98
+ n.value && t(p) && Object.keys(t(D) ?? {}).length ? (s(), a(t(f), {
106
99
  key: 0,
107
100
  class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
108
101
  }, {
109
102
  default: o(() => [
110
- r(t(M), {
103
+ r(t(q), {
111
104
  collection: n.value,
112
105
  envVariables: t(E),
113
106
  environment: t(O),
114
107
  layout: "reference",
115
108
  persistAuth: e.config?.persistAuth,
116
109
  selectedSecuritySchemeUids: n.value?.selectedSecuritySchemeUids ?? [],
117
- server: U.value,
110
+ server: b.value,
118
111
  title: "Authentication",
119
112
  workspace: t(p)
120
113
  }, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
@@ -126,12 +119,12 @@ const J = { class: "narrow-references-container" }, fe = /* @__PURE__ */ I({
126
119
  }),
127
120
  r(t(d), null, {
128
121
  default: o(() => [
129
- e.config?.hiddenClients !== !0 && u.value.length ? (i(), a(t(f), {
122
+ e.config?.hiddenClients !== !0 && u.value.length ? (s(), a(t(f), {
130
123
  key: 0,
131
124
  class: "introduction-card-item scalar-reference-intro-clients"
132
125
  }, {
133
126
  default: o(() => [
134
- r(t(R), {
127
+ r(t(G), {
135
128
  class: "introduction-card-item scalar-reference-intro-clients",
136
129
  clientOptions: u.value,
137
130
  xScalarSdkInstallation: e.store.workspace.activeDocument?.info?.["x-scalar-sdk-installation"],
@@ -149,23 +142,23 @@ const J = { class: "narrow-references-container" }, fe = /* @__PURE__ */ I({
149
142
  ]),
150
143
  _: 3
151
144
  }, 8, ["showEmptyState"]),
152
- e.store.workspace.activeDocument ? (i(), a(t(X), {
145
+ e.store.workspace.activeDocument ? (s(), a(t(H), {
153
146
  key: 0,
154
147
  clientOptions: u.value,
155
148
  config: e.config,
156
149
  document: e.store.workspace.activeDocument,
157
150
  store: e.store
158
151
  }, null, 8, ["clientOptions", "config", "document", "store"])) : l("", !0),
159
- !e.config?.hideModels && e.store.workspace.activeDocument ? (i(), a(t(q), {
152
+ !e.config?.hideModels && e.store.workspace.activeDocument ? (s(), a(t(J), {
160
153
  key: 1,
161
154
  config: e.config,
162
- document: e.store.workspace.activeDocument
163
- }, null, 8, ["config", "document"])) : l("", !0),
155
+ schemas: e.store.workspace.activeDocument.components?.schemas
156
+ }, null, 8, ["config", "schemas"])) : l("", !0),
164
157
  m(e.$slots, "end")
165
158
  ])
166
159
  ], 64));
167
160
  }
168
161
  });
169
162
  export {
170
- fe as default
163
+ me as default
171
164
  };
@@ -1,6 +1,9 @@
1
+ import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
1
2
  import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
3
  type __VLS_Props = {
3
- models: {
4
+ config: ApiReferenceConfiguration;
5
+ schemas: {
6
+ id: string;
4
7
  name: string;
5
8
  schema: SchemaObject;
6
9
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ClassicLayout.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAahG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CACjD,CAAC;;AA4KF,wBAMG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ClassicLayout.vue"],"names":[],"mappings":"AA6FA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAYhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAyLF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClassicLayout.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-59fedb4d"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-42f5a051"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1,54 +1,53 @@
1
- import { defineComponent as v, createBlock as a, createCommentVNode as k, openBlock as r, unref as e, withCtx as t, createElementBlock as n, Fragment as c, renderList as f, createVNode as i, createTextVNode as S } from "vue";
2
- import { getResolvedRef as g } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- import { useNavState as y } from "../../../hooks/useNavState.js";
4
- import C from "../../Section/SectionContainerAccordion.vue.js";
5
- import b from "../../Section/SectionAccordion.vue.js";
6
- import p from "../Schema/SchemaProperty.vue.js";
7
- import N from "../../Anchor/Anchor.vue.js";
8
- import q from "../../Section/SectionHeaderTag.vue.js";
1
+ import { defineComponent as h, createBlock as a, createCommentVNode as g, openBlock as r, unref as e, withCtx as o, createElementBlock as s, Fragment as p, renderList as u, createVNode as n, createTextVNode as S } from "vue";
2
+ import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import P from "../../Section/SectionContainerAccordion.vue.js";
4
+ import k from "../../Section/SectionAccordion.vue.js";
5
+ import f from "../Schema/SchemaProperty.vue.js";
6
+ import q from "../../Anchor/Anchor.vue.js";
7
+ import v from "../../Section/SectionHeaderTag.vue.js";
9
8
  import B from "../Schema/SchemaHeading.vue.js";
10
- import H from "../../Section/SectionHeader.vue.js";
11
- const V = {
9
+ import R from "../../Section/SectionHeader.vue.js";
10
+ const C = {
12
11
  key: 0,
13
12
  class: "properties"
14
- }, x = { key: 1 }, O = /* @__PURE__ */ v({
13
+ }, F = { key: 1 }, M = /* @__PURE__ */ h({
15
14
  __name: "ClassicLayout",
16
15
  props: {
17
- models: {}
16
+ config: {},
17
+ schemas: {}
18
18
  },
19
- setup(A) {
20
- const { getModelId: s } = y();
21
- return (u, m) => u.models.length ? (r(), a(e(C), {
19
+ setup(b) {
20
+ return (t, m) => t.schemas.length ? (r(), a(e(P), {
22
21
  key: 0,
23
22
  class: "reference-models"
24
23
  }, {
25
- title: t(() => [
26
- i(e(H), { level: 2 }, {
27
- default: t(() => m[0] || (m[0] = [
24
+ title: o(() => [
25
+ n(e(R), { level: 2 }, {
26
+ default: o(() => m[0] || (m[0] = [
28
27
  S("Models")
29
28
  ])),
30
29
  _: 1,
31
30
  __: [0]
32
31
  })
33
32
  ]),
34
- default: t(() => [
35
- (r(!0), n(c, null, f(u.models, ({ name: l, schema: o }) => (r(), a(e(b), {
36
- id: e(s)({ name: l }),
33
+ default: o(() => [
34
+ (r(!0), s(p, null, u(t.schemas, ({ id: c, name: l, schema: i }) => (r(), a(e(k), {
35
+ id: c,
37
36
  key: l,
38
37
  label: l
39
38
  }, {
40
- title: t(() => [
41
- i(e(N), {
42
- id: e(s)({ name: l }),
39
+ title: o(() => [
40
+ n(e(q), {
41
+ id: c,
43
42
  class: "reference-models-anchor"
44
43
  }, {
45
- default: t(() => [
46
- i(e(q), { level: 3 }, {
47
- default: t(() => [
48
- i(e(B), {
44
+ default: o(() => [
45
+ n(e(v), { level: 3 }, {
46
+ default: o(() => [
47
+ n(e(B), {
49
48
  class: "reference-models-label",
50
- name: o.title ?? l,
51
- value: o
49
+ name: i.title ?? l,
50
+ value: i
52
51
  }, null, 8, ["name", "value"])
53
52
  ]),
54
53
  _: 2
@@ -57,25 +56,35 @@ const V = {
57
56
  _: 2
58
57
  }, 1032, ["id"])
59
58
  ]),
60
- default: t(() => [
61
- "properties" in o ? (r(), n("div", V, [
62
- (r(!0), n(c, null, f(Object.entries(o.properties ?? {}), ([d, _]) => (r(), a(e(p), {
59
+ default: o(() => [
60
+ "properties" in i ? (r(), s("div", C, [
61
+ (r(!0), s(p, null, u(Object.entries(i.properties ?? {}), ([d, _]) => (r(), a(e(f), {
63
62
  key: d,
64
63
  name: d,
65
- required: o.required?.includes(d),
66
- value: e(g)(_)
67
- }, null, 8, ["name", "required", "value"]))), 128))
68
- ])) : (r(), n("div", x, [
69
- i(e(p), { value: o }, null, 8, ["value"])
64
+ options: {
65
+ orderRequiredPropertiesFirst: t.config.orderRequiredPropertiesFirst,
66
+ orderSchemaPropertiesBy: t.config.orderSchemaPropertiesBy
67
+ },
68
+ required: i.required?.includes(d),
69
+ schema: e(y)(_)
70
+ }, null, 8, ["name", "options", "required", "schema"]))), 128))
71
+ ])) : (r(), s("div", F, [
72
+ n(e(f), {
73
+ options: {
74
+ orderRequiredPropertiesFirst: t.config.orderRequiredPropertiesFirst,
75
+ orderSchemaPropertiesBy: t.config.orderSchemaPropertiesBy
76
+ },
77
+ schema: i
78
+ }, null, 8, ["options", "schema"])
70
79
  ]))
71
80
  ]),
72
81
  _: 2
73
82
  }, 1032, ["id", "label"]))), 128))
74
83
  ]),
75
84
  _: 1
76
- })) : k("", !0);
85
+ })) : g("", !0);
77
86
  }
78
87
  });
79
88
  export {
80
- O as default
89
+ M as default
81
90
  };
@@ -1,7 +1,7 @@
1
1
  import type { ApiReferenceConfiguration } from '@scalar/types';
2
- import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ import type { ComponentsObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
3
  type __VLS_Props = {
4
- document: OpenApiDocument;
4
+ schemas: ComponentsObject['schemas'];
5
5
  config: ApiReferenceConfiguration;
6
6
  };
7
7
  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, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AASnG,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,CAAA;IACzB,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC;;AAiGF,wBAMG"}
1
+ {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,8DAA8D,CAAA;AAUrE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACpC,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC;;AAkGF,wBAMG"}
@@ -1,42 +1,44 @@
1
- import { defineComponent as u, computed as f, createBlock as s, createCommentVNode as d, openBlock as n, unref as r, withCtx as p } from "vue";
1
+ import { defineComponent as f, computed as r, createBlock as s, createCommentVNode as u, openBlock as t, unref as a, withCtx as d } from "vue";
2
2
  import { getResolvedRef as h } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- import { useNavState as y } from "../../../hooks/useNavState.js";
4
- import g from "./ClassicLayout.vue.js";
5
- import _ from "./ModernLayout.vue.js";
6
- import k from "../../Lazy/Lazy.vue2.js";
7
- const b = /* @__PURE__ */ u({
3
+ import { useNavState as p } from "../../../hooks/useNavState.js";
4
+ import y from "./ClassicLayout.vue.js";
5
+ import g from "./ModernLayout.vue.js";
6
+ import { useSidebar as k } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
7
+ import v from "../../Lazy/Lazy.vue2.js";
8
+ const z = /* @__PURE__ */ f({
8
9
  __name: "Models",
9
10
  props: {
10
- document: {},
11
+ schemas: { default: () => ({}) },
11
12
  config: {}
12
13
  },
13
14
  setup(c) {
14
- const { hash: a } = y(), o = f(() => {
15
- const e = c.document.components?.schemas;
16
- return e ? Object.entries(e).flatMap(([i, l]) => {
17
- const t = h(l);
18
- return t["x-internal"] || t["x-scalar-ignore"] ? [] : [{ name: i, schema: t }];
19
- }) : [];
20
- });
21
- return (e, m) => o.value && Object.keys(o.value).length > 0 ? (n(), s(r(k), {
15
+ const { hash: m } = p(), { items: i } = k(), l = r(() => i.value.entries.find(
16
+ (e) => e.type === "text" && e.id === "models"
17
+ )), n = r(() => (l.value?.children ?? []).filter((o) => o.type === "model").map((o) => ({
18
+ id: o.id,
19
+ name: o.name,
20
+ schema: h(c.schemas[o.name])
21
+ })));
22
+ return (e, o) => e.schemas && Object.keys(e.schemas).length > 0 ? (t(), s(a(v), {
22
23
  key: 0,
23
24
  id: "models",
24
- isLazy: !!r(a) && !r(a).startsWith("model")
25
+ isLazy: !!a(m) && !a(m).startsWith("model")
25
26
  }, {
26
- default: p(() => [
27
- e.config?.layout === "classic" ? (n(), s(g, {
27
+ default: d(() => [
28
+ e.config?.layout === "classic" ? (t(), s(y, {
28
29
  key: 0,
29
- models: o.value
30
- }, null, 8, ["models"])) : (n(), s(_, {
30
+ config: e.config,
31
+ schemas: n.value
32
+ }, null, 8, ["config", "schemas"])) : (t(), s(g, {
31
33
  key: 1,
32
34
  config: e.config,
33
- schemas: o.value
35
+ schemas: n.value
34
36
  }, null, 8, ["config", "schemas"]))
35
37
  ]),
36
38
  _: 1
37
- }, 8, ["isLazy"])) : d("", !0);
39
+ }, 8, ["isLazy"])) : u("", !0);
38
40
  }
39
41
  });
40
42
  export {
41
- b as default
43
+ z as default
42
44
  };
@@ -3,6 +3,7 @@ import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/o
3
3
  type __VLS_Props = {
4
4
  config: ApiReferenceConfiguration;
5
5
  schemas: {
6
+ id: string;
6
7
  name: string;
7
8
  schema: SchemaObject;
8
9
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModernLayout.vue"],"names":[],"mappings":"AAgHA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAgBhG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CAClD,CAAC;;AAqNF,wBAMG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModernLayout.vue"],"names":[],"mappings":"AAmHA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAehG,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AA6NF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cd0edd51"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c4d2ae99"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };
@@ -1,40 +1,39 @@
1
- import { defineComponent as M, useId as b, computed as f, createBlock as m, createCommentVNode as p, openBlock as r, unref as e, withCtx as l, createVNode as t, createElementVNode as N, createTextVNode as _, normalizeClass as y, createElementBlock as I, Fragment as k, renderList as C } from "vue";
2
- import { ScalarErrorBoundary as A } from "@scalar/components";
3
- import B from "../../ShowMoreButton.vue.js";
4
- import { useNavState as H } from "../../../hooks/useNavState.js";
5
- import { useSidebar as L } from "../../../features/sidebar/hooks/useSidebar.js";
6
- import w from "../../Section/SectionContainer.vue.js";
7
- import x from "../../Section/Section.vue.js";
1
+ import { defineComponent as b, useId as y, computed as u, createBlock as s, createCommentVNode as f, openBlock as a, unref as e, withCtx as o, createVNode as l, createElementVNode as M, createTextVNode as B, normalizeClass as N, createElementBlock as k, Fragment as C, renderList as I } from "vue";
2
+ import { ScalarErrorBoundary as _ } from "@scalar/components";
3
+ import A from "../../ShowMoreButton.vue.js";
4
+ import { useSidebar as H } from "../../../v2/blocks/scalar-sidebar-block/hooks/useSidebar.js";
5
+ import L from "../../Section/SectionContainer.vue.js";
6
+ import w from "../../Section/Section.vue.js";
8
7
  import E from "../../Section/SectionHeader.vue.js";
9
- import S from "../../Section/SectionHeaderTag.vue.js";
8
+ import p from "../../Section/SectionHeaderTag.vue.js";
10
9
  import O from "../../Section/CompactSection.vue.js";
11
- import V from "../Schema/Schema.vue.js";
12
- import T from "../Schema/SchemaHeading.vue.js";
13
- const h = 10, Q = /* @__PURE__ */ M({
10
+ import P from "../Schema/Schema.vue.js";
11
+ import V from "../Schema/SchemaHeading.vue.js";
12
+ const S = 10, G = /* @__PURE__ */ b({
14
13
  __name: "ModernLayout",
15
14
  props: {
16
15
  config: {},
17
16
  schemas: { default: () => [] }
18
17
  },
19
- setup(o) {
20
- const s = b(), { collapsedSidebarItems: v } = L(), { getModelId: d } = H(), n = f(
21
- () => o.config.expandAllModelSections || o.schemas.length <= h || v[d()]
22
- ), g = f(() => n.value ? o.schemas : o.schemas.slice(0, h));
23
- return (u, c) => u.schemas ? (r(), m(e(w), {
18
+ setup(r) {
19
+ const m = y(), { collapsedSidebarItems: h } = H(), d = u(
20
+ () => r.config.expandAllModelSections || r.schemas.length <= S || h.models
21
+ ), g = u(() => d.value ? r.schemas : r.schemas.slice(0, S));
22
+ return (t, c) => t.schemas ? (a(), s(e(L), {
24
23
  key: 0,
25
24
  id: "models"
26
25
  }, {
27
- default: l(() => [
28
- t(e(x), { "aria-labelledby": e(s) }, {
29
- default: l(() => [
30
- t(e(E), null, {
31
- default: l(() => [
32
- t(e(S), {
33
- id: e(s),
26
+ default: o(() => [
27
+ l(e(w), { "aria-labelledby": e(m) }, {
28
+ default: o(() => [
29
+ l(e(E), null, {
30
+ default: o(() => [
31
+ l(e(p), {
32
+ id: e(m),
34
33
  level: 2
35
34
  }, {
36
- default: l(() => c[0] || (c[0] = [
37
- _(" Models ")
35
+ default: o(() => c[0] || (c[0] = [
36
+ B(" Models ")
38
37
  ])),
39
38
  _: 1,
40
39
  __: [0]
@@ -42,37 +41,41 @@ const h = 10, Q = /* @__PURE__ */ M({
42
41
  ]),
43
42
  _: 1
44
43
  }),
45
- N("div", {
46
- class: y(["models-list", { "models-list-truncated": !n.value }])
44
+ M("div", {
45
+ class: N(["models-list", { "models-list-truncated": !d.value }])
47
46
  }, [
48
- (r(!0), I(k, null, C(g.value, ({ name: a, schema: i }) => (r(), m(e(O), {
49
- id: e(d)({ name: a }),
50
- key: a,
47
+ (a(!0), k(C, null, I(g.value, ({ id: v, name: i, schema: n }) => (a(), s(e(O), {
48
+ id: v,
49
+ key: i,
51
50
  class: "models-list-item",
52
- defaultOpen: u.config.expandAllModelSections,
53
- label: a
51
+ defaultOpen: t.config.expandAllModelSections,
52
+ label: i
54
53
  }, {
55
- heading: l(() => [
56
- t(e(S), { level: 3 }, {
57
- default: l(() => [
58
- t(e(T), {
59
- name: i.title ?? a,
60
- value: i
54
+ heading: o(() => [
55
+ l(e(p), { level: 3 }, {
56
+ default: o(() => [
57
+ l(e(V), {
58
+ name: n.title ?? i,
59
+ value: n
61
60
  }, null, 8, ["name", "value"])
62
61
  ]),
63
62
  _: 2
64
63
  }, 1024)
65
64
  ]),
66
- default: l(() => [
67
- t(e(A), null, {
68
- default: l(() => [
69
- t(e(V), {
70
- hideHeading: !0,
71
- hideModelNames: !0,
65
+ default: o(() => [
66
+ l(e(_), null, {
67
+ default: o(() => [
68
+ l(e(P), {
69
+ hideHeading: "",
70
+ hideModelNames: "",
72
71
  level: 1,
73
72
  noncollapsible: "",
74
- schema: i
75
- }, null, 8, ["schema"])
73
+ options: {
74
+ orderRequiredPropertiesFirst: t.config.orderRequiredPropertiesFirst,
75
+ orderSchemaPropertiesBy: t.config.orderSchemaPropertiesBy
76
+ },
77
+ schema: n
78
+ }, null, 8, ["options", "schema"])
76
79
  ]),
77
80
  _: 2
78
81
  }, 1024)
@@ -80,19 +83,19 @@ const h = 10, Q = /* @__PURE__ */ M({
80
83
  _: 2
81
84
  }, 1032, ["id", "defaultOpen", "label"]))), 128))
82
85
  ], 2),
83
- n.value ? p("", !0) : (r(), m(B, {
86
+ d.value ? f("", !0) : (a(), s(A, {
84
87
  key: 0,
85
- id: e(d)(),
88
+ id: "models",
86
89
  class: "show-more-models"
87
- }, null, 8, ["id"]))
90
+ }))
88
91
  ]),
89
92
  _: 1
90
93
  }, 8, ["aria-labelledby"])
91
94
  ]),
92
95
  _: 1
93
- })) : p("", !0);
96
+ })) : f("", !0);
94
97
  }
95
98
  });
96
99
  export {
97
- Q as default
100
+ G as default
98
101
  };
@@ -1,8 +1,7 @@
1
1
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
2
  import type { ApiReferenceConfiguration } from '@scalar/types';
3
3
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
4
- import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
5
- import { type TraversedEntry } from '../../../features/traverse-schema';
4
+ import type { OpenApiDocument, TraversedEntry } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
6
5
  import type { ClientOptionGroup } from '../../../v2/blocks/scalar-request-example-block/types';
7
6
  type __VLS_Props = {
8
7
  level?: number;