@scalar/api-reference 1.35.1 → 1.35.3

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 (165) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/browser/standalone.js +13534 -13691
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts +2 -1
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +14 -11
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +70 -72
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +3 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.d.ts +0 -2
  13. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Content.vue.js +80 -80
  15. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +5 -2
  16. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  18. package/dist/components/Content/Models/ClassicLayout.vue2.js +43 -45
  19. package/dist/components/Content/Models/ClassicLayout.vue3.js +2 -2
  20. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  21. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/Models.vue.js +27 -20
  23. package/dist/components/Content/Models/ModernLayout.vue.d.ts +5 -2
  24. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
  26. package/dist/components/Content/Models/ModernLayout.vue2.js +48 -52
  27. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +3 -2
  28. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Operations/TraversedEntry.vue.js +33 -32
  30. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +2 -2
  31. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +1 -1
  33. package/dist/components/Content/Schema/Schema.vue.d.ts +6 -22
  34. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  36. package/dist/components/Content/Schema/Schema.vue2.js +86 -140
  37. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +15 -4
  38. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/SchemaComposition.vue.js +77 -138
  40. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +2 -13
  41. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +2 -2
  43. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +66 -92
  44. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  45. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  47. package/dist/components/Content/Schema/SchemaHeading.vue2.js +19 -17
  48. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +5 -14
  49. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  50. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +47 -68
  51. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -13
  52. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  53. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  54. package/dist/components/Content/Schema/SchemaProperty.vue2.js +116 -144
  55. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +1 -1
  56. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  57. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
  58. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +9 -4
  59. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  60. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  61. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +173 -204
  62. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts +11 -0
  63. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -0
  64. package/dist/components/Content/Schema/helpers/get-ref-name.js +11 -0
  65. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +13 -3
  66. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
  67. package/dist/components/Content/Schema/helpers/get-schema-type.js +34 -13
  68. package/dist/components/Content/Schema/helpers/is-type-object.d.ts +4 -2
  69. package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -1
  70. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -4
  71. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  72. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +130 -84
  73. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts +5 -5
  74. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  75. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +40 -31
  76. package/dist/components/Content/Schema/helpers/schema-composition.d.ts +0 -8
  77. package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -1
  78. package/dist/components/Content/Schema/helpers/schema-composition.js +2 -6
  79. package/dist/components/Content/Schema/helpers/schema-name.d.ts +8 -17
  80. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  81. package/dist/components/Content/Schema/helpers/schema-name.js +24 -33
  82. package/dist/features/Operation/Operation.vue.d.ts +3 -4
  83. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  84. package/dist/features/Operation/Operation.vue.js +54 -73
  85. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +10 -11
  86. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/components/ContentTypeSelect.vue.js +35 -43
  88. package/dist/features/Operation/components/{ParameterHeaders.vue.d.ts → Header.vue.d.ts} +4 -5
  89. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -0
  90. package/dist/features/Operation/components/Header.vue.js +23 -0
  91. package/dist/features/Operation/components/Header.vue2.js +4 -0
  92. package/dist/features/Operation/components/Headers.vue.d.ts +8 -0
  93. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -0
  94. package/dist/features/Operation/components/Headers.vue.js +7 -0
  95. package/dist/features/Operation/components/Headers.vue2.js +61 -0
  96. package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -10
  97. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  98. package/dist/features/Operation/components/OperationParameters.vue.js +23 -33
  99. package/dist/features/Operation/components/OperationResponses.vue.d.ts +3 -6
  100. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  101. package/dist/features/Operation/components/OperationResponses.vue.js +22 -19
  102. package/dist/features/Operation/components/ParameterList.vue.d.ts +3 -10
  103. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/components/ParameterList.vue.js +35 -5
  105. package/dist/features/Operation/components/ParameterList.vue2.js +2 -38
  106. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +4 -10
  107. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  109. package/dist/features/Operation/components/ParameterListItem.vue2.js +77 -74
  110. package/dist/features/Operation/components/RequestBody.vue.d.ts +3 -8
  111. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  112. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  113. package/dist/features/Operation/components/RequestBody.vue2.js +75 -82
  114. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +0 -4
  115. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  116. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  117. package/dist/features/Operation/components/callbacks/Callback.vue2.js +35 -36
  118. package/dist/features/Operation/components/callbacks/Callback.vue3.js +2 -2
  119. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +0 -2
  120. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  121. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +13 -15
  122. package/dist/features/Operation/helpers/combine-params.d.ts +1 -1
  123. package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -1
  124. package/dist/features/Operation/helpers/combine-params.js +2 -2
  125. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -9
  126. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  127. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  128. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +75 -82
  129. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -10
  130. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  131. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  132. package/dist/features/Operation/layouts/ModernLayout.vue2.js +96 -103
  133. package/dist/index.js +1 -1
  134. package/dist/libs/openapi.d.ts +1 -13
  135. package/dist/libs/openapi.d.ts.map +1 -1
  136. package/dist/libs/openapi.js +39 -56
  137. package/dist/style.css +1 -1
  138. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +10 -4
  139. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  140. package/dist/v2/ApiReferenceWorkspace.vue.js +22 -18
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  143. package/package.json +14 -14
  144. package/dist/components/Content/Schema/Schema.preview.d.ts +0 -1078
  145. package/dist/components/Content/Schema/Schema.preview.d.ts.map +0 -1
  146. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +0 -12
  147. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
  148. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -49
  149. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -4
  150. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +0 -13
  151. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +0 -1
  152. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +0 -1
  153. package/dist/features/Operation/components/ParameterHeaders.vue.js +0 -7
  154. package/dist/features/Operation/components/ParameterHeaders.vue2.js +0 -64
  155. package/dist/features/Operation/components/ParameterList.vue3.js +0 -4
  156. package/dist/features/Operation/hooks/useResponses.d.ts +0 -17
  157. package/dist/features/Operation/hooks/useResponses.d.ts.map +0 -1
  158. package/dist/features/Operation/hooks/useResponses.js +0 -19
  159. package/dist/hooks/useDiscriminator.d.ts +0 -53
  160. package/dist/hooks/useDiscriminator.d.ts.map +0 -1
  161. package/dist/hooks/useDiscriminator.js +0 -149
  162. package/dist/hooks/useOperationDiscriminator.d.ts +0 -8
  163. package/dist/hooks/useOperationDiscriminator.d.ts.map +0 -1
  164. package/dist/hooks/useOperationDiscriminator.js +0 -57
  165. /package/dist/features/Operation/components/{ParameterHeaders.vue3.js → Headers.vue3.js} +0 -0
@@ -1,83 +1,82 @@
1
- import { defineComponent as F, computed as a, createElementBlock as B, openBlock as l, Fragment as j, createVNode as o, createElementVNode as T, unref as t, renderSlot as v, createBlock as m, createCommentVNode as d, withCtx as n } from "vue";
2
- import { useWorkspace as W, useActiveEntities as x } from "@scalar/api-client/store";
1
+ import { defineComponent as F, computed as l, createElementBlock as B, openBlock as c, Fragment as j, createVNode as i, createElementVNode as T, unref as t, renderSlot as v, createBlock as u, createCommentVNode as m, withCtx as o } from "vue";
2
+ import { useWorkspace as W, useActiveEntities as z } from "@scalar/api-client/store";
3
3
  import { ScalarErrorBoundary as p } from "@scalar/components";
4
- import { getSlugUid as z } from "@scalar/oas-utils/transforms";
5
- import G from "./IntroductionSection.vue.js";
6
- import { useFreezing as H } from "../../hooks/useFreezing.js";
7
- import { useNavState as K } from "../../hooks/useNavState.js";
8
- import { generateClientOptions as M } from "../../v2/blocks/scalar-request-example-block/helpers/generate-client-options.js";
9
- import { DEFAULT_INTRODUCTION_SLUG as R } from "../../features/traverse-schema/helpers/traverse-description.js";
10
- import { getXKeysFromObject as D } from "../../features/specification-extension/helpers.js";
11
- import X from "../SectionFlare/SectionFlare.vue.js";
12
- import q from "../../v2/blocks/scalar-info-block/components/InfoBlock.vue.js";
4
+ import { getSlugUid as G } from "@scalar/oas-utils/transforms";
5
+ import H from "./IntroductionSection.vue.js";
6
+ import { useFreezing as K } from "../../hooks/useFreezing.js";
7
+ import { useNavState as M } from "../../hooks/useNavState.js";
8
+ import { generateClientOptions as R } from "../../v2/blocks/scalar-request-example-block/helpers/generate-client-options.js";
9
+ import { DEFAULT_INTRODUCTION_SLUG as X } from "../../features/traverse-schema/helpers/traverse-description.js";
10
+ import { getXKeysFromObject as y } from "../../features/specification-extension/helpers.js";
11
+ import q from "../SectionFlare/SectionFlare.vue.js";
12
+ import J from "../../v2/blocks/scalar-info-block/components/InfoBlock.vue.js";
13
13
  import g from "../../v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js";
14
- import J from "../../v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
15
- import P from "../../v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
16
- import Q from "../../v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
17
- import Y from "./Operations/TraversedEntryContainer.vue.js";
18
- import Z from "./Models/Models.vue.js";
14
+ import P from "../../v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
15
+ import Q from "../../v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
16
+ import Y from "../../v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
17
+ import Z from "./Operations/TraversedEntryContainer.vue.js";
18
+ import x from "./Models/Models.vue.js";
19
19
  const _ = { class: "narrow-references-container" }, he = /* @__PURE__ */ F({
20
20
  __name: "Content",
21
21
  props: {
22
- document: {},
23
22
  config: {},
24
23
  store: {}
25
24
  },
26
- setup(c) {
27
- H();
28
- const f = a(
29
- () => M(c.config.hiddenClients)
30
- ), { getHeadingId: C } = K(), E = a(
25
+ setup(a) {
26
+ K();
27
+ const f = l(
28
+ () => R(a.config.hiddenClients)
29
+ ), { getHeadingId: C } = M(), E = l(
31
30
  () => C({
32
- slug: R,
31
+ slug: X,
33
32
  depth: 1,
34
33
  value: "Introduction"
35
34
  })
36
- ), O = a(
37
- () => D(c.store.workspace.activeDocument)
38
- ), U = a(
35
+ ), O = l(
36
+ () => y(a.store.workspace.activeDocument)
37
+ ), U = l(
39
38
  () => {
40
39
  var e;
41
- return D((e = c.store.workspace.activeDocument) == null ? void 0 : e.info);
40
+ return y((e = a.store.workspace.activeDocument) == null ? void 0 : e.info);
42
41
  }
43
- ), { collections: A, securitySchemes: I, servers: S } = W(), {
42
+ ), { collections: A, securitySchemes: I, servers: k } = W(), {
44
43
  activeCollection: L,
45
44
  activeEnvVariables: V,
46
45
  activeEnvironment: $,
47
- activeWorkspace: k
48
- } = x(), s = a(() => {
49
- if (c.config.slug) {
50
- const e = A[z(c.config.slug)];
46
+ activeWorkspace: S
47
+ } = z(), s = l(() => {
48
+ if (a.config.slug) {
49
+ const e = A[G(a.config.slug)];
51
50
  if (e)
52
51
  return e;
53
52
  }
54
53
  return L.value;
55
- }), b = a(() => {
54
+ }), b = l(() => {
56
55
  if (s.value) {
57
56
  if (s.value.selectedServerUid) {
58
- const e = S[s.value.selectedServerUid];
57
+ const e = k[s.value.selectedServerUid];
59
58
  if (e)
60
59
  return e;
61
60
  }
62
- return S[s.value.servers[0]];
61
+ return k[s.value.servers[0]];
63
62
  }
64
- }), N = () => c.store.exportActiveDocument("json") ?? "{}";
63
+ }), N = () => a.store.exportActiveDocument("json") ?? "{}";
65
64
  return (e, ee) => {
66
65
  var h;
67
- return l(), B(j, null, [
68
- o(t(X)),
66
+ return c(), B(j, null, [
67
+ i(t(q)),
69
68
  T("div", _, [
70
69
  v(e.$slots, "start"),
71
- o(G, {
70
+ i(H, {
72
71
  showEmptyState: !e.store.workspace.activeDocument
73
72
  }, {
74
- "empty-state": n(() => [
73
+ "empty-state": o(() => [
75
74
  v(e.$slots, "empty-state")
76
75
  ]),
77
- default: n(() => {
78
- var y;
76
+ default: o(() => {
77
+ var w;
79
78
  return [
80
- e.store.workspace.activeDocument ? (l(), m(t(q), {
79
+ e.store.workspace.activeDocument ? (c(), u(t(J), {
81
80
  key: 0,
82
81
  id: E.value,
83
82
  documentExtensions: O.value,
@@ -87,103 +86,104 @@ const _ = { class: "narrow-references-container" }, he = /* @__PURE__ */ F({
87
86
  infoExtensions: U.value,
88
87
  isLoading: e.config.isLoading,
89
88
  layout: e.config.layout,
90
- oasVersion: (y = e.store.workspace.activeDocument) == null ? void 0 : y["x-original-oas-version"],
89
+ oasVersion: (w = e.store.workspace.activeDocument) == null ? void 0 : w["x-original-oas-version"],
91
90
  onLoaded: e.config.onLoaded
92
91
  }, {
93
- selectors: n(() => [
94
- o(t(p), null, {
95
- default: n(() => {
96
- var r, i;
92
+ selectors: o(() => [
93
+ i(t(p), null, {
94
+ default: o(() => {
95
+ var r, n;
97
96
  return [
98
- (i = (r = e.store.workspace.activeDocument) == null ? void 0 : r.servers) != null && i.length ? (l(), m(t(g), {
97
+ (n = (r = e.store.workspace.activeDocument) == null ? void 0 : r.servers) != null && n.length ? (c(), u(t(g), {
99
98
  key: 0,
100
99
  class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
101
100
  }, {
102
- default: n(() => {
103
- var u, w;
101
+ default: o(() => {
102
+ var d, D;
104
103
  return [
105
- o(t(J), {
106
- servers: ((u = e.store.workspace.activeDocument) == null ? void 0 : u.servers) ?? [],
107
- xSelectedServer: (w = e.store.workspace.activeDocument) == null ? void 0 : w["x-scalar-active-server"]
104
+ i(t(P), {
105
+ servers: ((d = e.store.workspace.activeDocument) == null ? void 0 : d.servers) ?? [],
106
+ xSelectedServer: (D = e.store.workspace.activeDocument) == null ? void 0 : D["x-scalar-active-server"]
108
107
  }, null, 8, ["servers", "xSelectedServer"])
109
108
  ];
110
109
  }),
111
110
  _: 1
112
- })) : d("", !0)
111
+ })) : m("", !0)
113
112
  ];
114
113
  }),
115
114
  _: 1
116
115
  }),
117
- o(t(p), null, {
118
- default: n(() => [
119
- s.value && t(k) && Object.keys(t(I) ?? {}).length ? (l(), m(t(g), {
116
+ i(t(p), null, {
117
+ default: o(() => [
118
+ s.value && t(S) && Object.keys(t(I) ?? {}).length ? (c(), u(t(g), {
120
119
  key: 0,
121
120
  class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
122
121
  }, {
123
- default: n(() => {
124
- var r, i;
122
+ default: o(() => {
123
+ var r, n;
125
124
  return [
126
- o(t(P), {
125
+ i(t(Q), {
127
126
  collection: s.value,
128
127
  envVariables: t(V),
129
128
  environment: t($),
130
129
  layout: "reference",
131
130
  persistAuth: (r = e.config) == null ? void 0 : r.persistAuth,
132
- selectedSecuritySchemeUids: ((i = s.value) == null ? void 0 : i.selectedSecuritySchemeUids) ?? [],
131
+ selectedSecuritySchemeUids: ((n = s.value) == null ? void 0 : n.selectedSecuritySchemeUids) ?? [],
133
132
  server: b.value,
134
133
  title: "Authentication",
135
- workspace: t(k)
134
+ workspace: t(S)
136
135
  }, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
137
136
  ];
138
137
  }),
139
138
  _: 1
140
- })) : d("", !0)
139
+ })) : m("", !0)
141
140
  ]),
142
141
  _: 1
143
142
  }),
144
- o(t(p), null, {
145
- default: n(() => {
143
+ i(t(p), null, {
144
+ default: o(() => {
146
145
  var r;
147
146
  return [
148
- ((r = e.config) == null ? void 0 : r.hiddenClients) !== !0 && f.value.length ? (l(), m(t(g), {
147
+ ((r = e.config) == null ? void 0 : r.hiddenClients) !== !0 && f.value.length ? (c(), u(t(g), {
149
148
  key: 0,
150
149
  class: "introduction-card-item scalar-reference-intro-clients"
151
150
  }, {
152
- default: n(() => {
153
- var i, u;
151
+ default: o(() => {
152
+ var n, d;
154
153
  return [
155
- o(t(Q), {
154
+ i(t(Y), {
156
155
  class: "introduction-card-item scalar-reference-intro-clients",
157
156
  clientOptions: f.value,
158
- xScalarSdkInstallation: (u = (i = e.store.workspace.activeDocument) == null ? void 0 : i.info) == null ? void 0 : u["x-scalar-sdk-installation"],
157
+ xScalarSdkInstallation: (d = (n = e.store.workspace.activeDocument) == null ? void 0 : n.info) == null ? void 0 : d["x-scalar-sdk-installation"],
159
158
  xSelectedClient: e.store.workspace["x-scalar-default-client"]
160
159
  }, null, 8, ["clientOptions", "xScalarSdkInstallation", "xSelectedClient"])
161
160
  ];
162
161
  }),
163
162
  _: 1
164
- })) : d("", !0)
163
+ })) : m("", !0)
165
164
  ];
166
165
  }),
167
166
  _: 1
168
167
  })
169
168
  ]),
170
169
  _: 1
171
- }, 8, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "isLoading", "layout", "oasVersion", "onLoaded"])) : d("", !0)
170
+ }, 8, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "isLoading", "layout", "oasVersion", "onLoaded"])) : m("", !0)
172
171
  ];
173
172
  }),
174
173
  _: 3
175
174
  }, 8, ["showEmptyState"]),
176
- o(t(Y), {
175
+ e.store.workspace.activeDocument ? (c(), u(t(Z), {
176
+ key: 0,
177
177
  clientOptions: f.value,
178
178
  config: e.config,
179
- document: e.document,
179
+ document: e.store.workspace.activeDocument,
180
180
  store: e.store
181
- }, null, 8, ["clientOptions", "config", "document", "store"]),
182
- (h = e.config) != null && h.hideModels ? d("", !0) : (l(), m(t(Z), {
183
- key: 0,
181
+ }, null, 8, ["clientOptions", "config", "document", "store"])) : m("", !0),
182
+ !((h = e.config) != null && h.hideModels) && e.store.workspace.activeDocument ? (c(), u(t(x), {
183
+ key: 1,
184
184
  config: e.config,
185
- document: e.document
186
- }, null, 8, ["config", "document"])),
185
+ document: e.store.workspace.activeDocument
186
+ }, null, 8, ["config", "document"])) : m("", !0),
187
187
  v(e.$slots, "end")
188
188
  ])
189
189
  ], 64);
@@ -1,6 +1,9 @@
1
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
1
+ import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
- schemas?: Record<string, OpenAPIV3_1.SchemaObject> | undefined;
3
+ models: {
4
+ name: string;
5
+ schema: SchemaObject;
6
+ }[];
4
7
  };
5
8
  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>;
6
9
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ClassicLayout.vue"],"names":[],"mappings":"AAmGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAcxD,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,SAAS,CAAA;CAC/D,CAAC;;AA6LF,wBAMG"}
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,7 +1,7 @@
1
1
  import o from "./ClassicLayout.vue2.js";
2
2
  import "./ClassicLayout.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-94ac35f8"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-59fedb4d"]]);
5
5
  export {
6
- c as default
6
+ f as default
7
7
  };
@@ -1,56 +1,54 @@
1
- import { defineComponent as q, computed as x, createBlock as a, createCommentVNode as y, openBlock as t, unref as e, withCtx as o, createElementBlock as u, Fragment as v, renderList as k, createVNode as i, createTextVNode as N } from "vue";
2
- import { useNavState as B } from "../../../hooks/useNavState.js";
3
- import H from "../../Section/SectionContainerAccordion.vue.js";
4
- import V from "../../Section/SectionAccordion.vue.js";
5
- import S from "../Schema/SchemaProperty.vue.js";
6
- import j from "../../Anchor/Anchor.vue.js";
7
- import A from "../../Section/SectionHeaderTag.vue.js";
8
- import L from "../Schema/SchemaHeading.vue.js";
9
- import M from "../../Section/SectionHeader.vue.js";
10
- const O = {
1
+ import { defineComponent as k, createBlock as a, createCommentVNode as S, openBlock as r, unref as e, withCtx as t, createElementBlock as n, Fragment as f, renderList as p, createVNode as i, createTextVNode as g } from "vue";
2
+ import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { useNavState as C } from "../../../hooks/useNavState.js";
4
+ import b from "../../Section/SectionContainerAccordion.vue.js";
5
+ import N from "../../Section/SectionAccordion.vue.js";
6
+ import _ from "../Schema/SchemaProperty.vue.js";
7
+ import q from "../../Anchor/Anchor.vue.js";
8
+ import B from "../../Section/SectionHeaderTag.vue.js";
9
+ import H from "../Schema/SchemaHeading.vue.js";
10
+ import V from "../../Section/SectionHeader.vue.js";
11
+ const x = {
11
12
  key: 0,
12
13
  class: "properties"
13
- }, T = { key: 1 }, J = /* @__PURE__ */ q({
14
+ }, A = { key: 1 }, P = /* @__PURE__ */ k({
14
15
  __name: "ClassicLayout",
15
16
  props: {
16
- schemas: {}
17
+ models: {}
17
18
  },
18
- setup(b) {
19
- const s = b, C = x(() => s.schemas ? Object.entries(s.schemas).map(([m, n]) => ({
20
- name: m,
21
- schema: n
22
- })) : []), { getModelId: c } = B();
23
- return (m, n) => s.schemas ? (t(), a(e(H), {
19
+ setup(L) {
20
+ const { getModelId: s } = C();
21
+ return (u, m) => u.models.length ? (r(), a(e(b), {
24
22
  key: 0,
25
23
  class: "reference-models"
26
24
  }, {
27
- title: o(() => [
28
- i(e(M), { level: 2 }, {
29
- default: o(() => n[0] || (n[0] = [
30
- N("Models")
25
+ title: t(() => [
26
+ i(e(V), { level: 2 }, {
27
+ default: t(() => m[0] || (m[0] = [
28
+ g("Models")
31
29
  ])),
32
30
  _: 1,
33
31
  __: [0]
34
32
  })
35
33
  ]),
36
- default: o(() => [
37
- (t(!0), u(v, null, k(C.value, ({ name: l, schema: r }) => (t(), a(e(V), {
38
- id: e(c)({ name: l }),
34
+ default: t(() => [
35
+ (r(!0), n(f, null, p(u.models, ({ name: l, schema: o }) => (r(), a(e(N), {
36
+ id: e(s)({ name: l }),
39
37
  key: l,
40
38
  label: l
41
39
  }, {
42
- title: o(() => [
43
- i(e(j), {
44
- id: e(c)({ name: l }),
40
+ title: t(() => [
41
+ i(e(q), {
42
+ id: e(s)({ name: l }),
45
43
  class: "reference-models-anchor"
46
44
  }, {
47
- default: o(() => [
48
- i(e(A), { level: 3 }, {
49
- default: o(() => [
50
- i(e(L), {
45
+ default: t(() => [
46
+ i(e(B), { level: 3 }, {
47
+ default: t(() => [
48
+ i(e(H), {
51
49
  class: "reference-models-label",
52
- name: r.title ?? l,
53
- value: r
50
+ name: o.title ?? l,
51
+ value: o
54
52
  }, null, 8, ["name", "value"])
55
53
  ]),
56
54
  _: 2
@@ -59,28 +57,28 @@ const O = {
59
57
  _: 2
60
58
  }, 1032, ["id"])
61
59
  ]),
62
- default: o(() => [
63
- r != null && r.properties ? (t(), u("div", O, [
64
- (t(!0), u(v, null, k(Object.entries(r.properties), ([d, g]) => {
65
- var f, p, _;
66
- return t(), a(e(S), {
60
+ default: t(() => [
61
+ "properties" in o ? (r(), n("div", x, [
62
+ (r(!0), n(f, null, p(Object.entries(o.properties ?? {}), ([d, v]) => {
63
+ var c;
64
+ return r(), a(e(_), {
67
65
  key: d,
68
66
  name: d,
69
- required: ((f = r.required) == null ? void 0 : f.includes(d)) || ((_ = (p = r.properties) == null ? void 0 : p[d]) == null ? void 0 : _.required) === !0,
70
- value: g
67
+ required: (c = o.required) == null ? void 0 : c.includes(d),
68
+ value: e(y)(v)
71
69
  }, null, 8, ["name", "required", "value"]);
72
70
  }), 128))
73
- ])) : (t(), u("div", T, [
74
- i(e(S), { value: r }, null, 8, ["value"])
71
+ ])) : (r(), n("div", A, [
72
+ i(e(_), { value: o }, null, 8, ["value"])
75
73
  ]))
76
74
  ]),
77
75
  _: 2
78
76
  }, 1032, ["id", "label"]))), 128))
79
77
  ]),
80
78
  _: 1
81
- })) : y("", !0);
79
+ })) : S("", !0);
82
80
  }
83
81
  });
84
82
  export {
85
- J as default
83
+ P as default
86
84
  };
@@ -1,4 +1,4 @@
1
- const _ = "";
1
+ const e = "";
2
2
  export {
3
- _ as default
3
+ e as default
4
4
  };
@@ -1,7 +1,7 @@
1
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
1
  import type { ApiReferenceConfiguration } from '@scalar/types';
2
+ import type { OpenApiDocument } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
3
  type __VLS_Props = {
4
- document: OpenAPIV3_1.Document;
4
+ document: OpenApiDocument;
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":"AAsCA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAU9D,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC;;AA8EF,wBAMG"}
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,39 +1,46 @@
1
- import { defineComponent as r, computed as i, createBlock as o, createCommentVNode as l, openBlock as t, unref as s, withCtx as u } from "vue";
2
- import { useNavState as f } from "../../../hooks/useNavState.js";
3
- import { getModels as d } from "../../../libs/openapi.js";
4
- import p from "./ClassicLayout.vue.js";
5
- import h from "./ModernLayout.vue.js";
6
- import y from "../../Lazy/Lazy.vue2.js";
7
- const M = /* @__PURE__ */ r({
1
+ import { defineComponent as f, computed as d, createBlock as n, createCommentVNode as p, openBlock as r, unref as a, withCtx as h } from "vue";
2
+ import { getResolvedRef as y } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { useNavState as g } from "../../../hooks/useNavState.js";
4
+ import _ from "./ClassicLayout.vue.js";
5
+ import k from "./ModernLayout.vue.js";
6
+ import v from "../../Lazy/Lazy.vue2.js";
7
+ const j = /* @__PURE__ */ f({
8
8
  __name: "Models",
9
9
  props: {
10
10
  document: {},
11
11
  config: {}
12
12
  },
13
- setup(n) {
14
- const { hash: a } = f(), e = i(() => d(n.document));
15
- return (m, g) => e.value && Object.keys(e.value).length > 0 ? (t(), o(s(y), {
13
+ setup(m) {
14
+ const { hash: c } = g(), t = d(() => {
15
+ var o;
16
+ const e = (o = m.document.components) == null ? void 0 : o.schemas;
17
+ return e ? Object.entries(e).flatMap(([l, u]) => {
18
+ const s = y(u);
19
+ return s["x-internal"] || s["x-scalar-ignore"] ? [] : [{ name: l, schema: s }];
20
+ }) : [];
21
+ });
22
+ return (e, i) => t.value && Object.keys(t.value).length > 0 ? (r(), n(a(v), {
16
23
  key: 0,
17
24
  id: "models",
18
- isLazy: !!s(a) && !s(a).startsWith("model")
25
+ isLazy: !!a(c) && !a(c).startsWith("model")
19
26
  }, {
20
- default: u(() => {
21
- var c;
27
+ default: h(() => {
28
+ var o;
22
29
  return [
23
- ((c = m.config) == null ? void 0 : c.layout) === "classic" ? (t(), o(p, {
30
+ ((o = e.config) == null ? void 0 : o.layout) === "classic" ? (r(), n(_, {
24
31
  key: 0,
25
- schemas: e.value
26
- }, null, 8, ["schemas"])) : (t(), o(h, {
32
+ models: t.value
33
+ }, null, 8, ["models"])) : (r(), n(k, {
27
34
  key: 1,
28
- config: m.config,
29
- schemas: e.value
35
+ config: e.config,
36
+ schemas: t.value
30
37
  }, null, 8, ["config", "schemas"]))
31
38
  ];
32
39
  }),
33
40
  _: 1
34
- }, 8, ["isLazy"])) : l("", !0);
41
+ }, 8, ["isLazy"])) : p("", !0);
35
42
  }
36
43
  });
37
44
  export {
38
- M as default
45
+ j as default
39
46
  };
@@ -1,8 +1,11 @@
1
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
1
  import type { ApiReferenceConfiguration } from '@scalar/types';
2
+ import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
3
  type __VLS_Props = {
4
4
  config: ApiReferenceConfiguration;
5
- schemas?: Record<string, OpenAPIV3_1.SchemaObject>;
5
+ schemas: {
6
+ name: string;
7
+ schema: SchemaObject;
8
+ }[];
6
9
  };
7
10
  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>;
8
11
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModernLayout.vue"],"names":[],"mappings":"AAmHA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAgB9D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,yBAAyB,CAAA;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;CACnD,CAAC;;AAyNF,wBAMG"}
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,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
2
  import "./ModernLayout.vue3.js";
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-33789325"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cd0edd51"]]);
5
5
  export {
6
- p as default
6
+ e as default
7
7
  };