@scalar/api-reference 1.35.5 → 1.35.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/browser/standalone.js +18150 -18465
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/WithBreadcrumb.vue2.js +8 -11
  5. package/dist/components/ApiReference.vue.js +1 -1
  6. package/dist/components/ApiReferenceLayout.vue.js +4 -4
  7. package/dist/components/ApiReferenceLayout.vue2.js +247 -268
  8. package/dist/components/Badge/Badge.vue.js +1 -1
  9. package/dist/components/ClassicHeader.vue.js +1 -1
  10. package/dist/components/Content/Content.vue.js +145 -169
  11. package/dist/components/Content/Content.vue3.js +1 -1
  12. package/dist/components/Content/Models/ClassicLayout.vue.js +1 -1
  13. package/dist/components/Content/Models/ClassicLayout.vue2.js +32 -35
  14. package/dist/components/Content/Models/Models.vue.js +27 -31
  15. package/dist/components/Content/Models/ModernLayout.vue.js +1 -1
  16. package/dist/components/Content/Operations/TraversedEntry.vue.js +32 -35
  17. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +26 -27
  18. package/dist/components/Content/Operations/get-current-index.js +1 -1
  19. package/dist/components/Content/Schema/Schema.vue.js +1 -1
  20. package/dist/components/Content/Schema/Schema.vue2.js +68 -74
  21. package/dist/components/Content/Schema/SchemaComposition.vue.js +42 -45
  22. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +1 -1
  23. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
  24. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +45 -50
  25. package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
  26. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +41 -48
  27. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  28. package/dist/components/Content/Schema/SchemaProperty.vue2.js +142 -157
  29. package/dist/components/Content/Schema/SchemaPropertyDetail.vue.js +1 -1
  30. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +1 -1
  31. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  32. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +160 -164
  33. package/dist/components/Content/Schema/helpers/get-schema-type.js +15 -17
  34. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +74 -77
  35. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +10 -11
  36. package/dist/components/Content/Tags/ClassicLayout.vue.js +1 -1
  37. package/dist/components/Content/Tags/ClassicLayout.vue2.js +36 -39
  38. package/dist/components/Content/Tags/ModernLayout.vue.js +1 -1
  39. package/dist/components/Content/Tags/ModernLayout.vue2.js +31 -35
  40. package/dist/components/Content/Tags/TagSection.vue.js +86 -92
  41. package/dist/components/GettingStarted.vue.js +1 -1
  42. package/dist/components/LinkList/LinkList.vue.js +1 -1
  43. package/dist/components/LoadingSkeleton.vue.js +1 -1
  44. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  45. package/dist/components/MobileHeader.vue.js +3 -3
  46. package/dist/components/MobileHeader.vue2.js +13 -12
  47. package/dist/components/OperationPath.vue.js +1 -1
  48. package/dist/components/OperationsList/OperationsList.vue.js +1 -1
  49. package/dist/components/OperationsList/OperationsList.vue2.js +45 -51
  50. package/dist/components/OperationsList/OperationsListItem.vue.js +1 -1
  51. package/dist/components/ScreenReader.vue.js +1 -1
  52. package/dist/components/Section/CompactSection.vue.js +1 -1
  53. package/dist/components/Section/Section.vue.js +1 -1
  54. package/dist/components/Section/Section.vue2.js +13 -14
  55. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  56. package/dist/components/Section/SectionAccordion.vue2.js +29 -30
  57. package/dist/components/Section/SectionColumn.vue.js +1 -1
  58. package/dist/components/Section/SectionColumns.vue.js +1 -1
  59. package/dist/components/Section/SectionContainer.vue.js +1 -1
  60. package/dist/components/Section/SectionContainerAccordion.vue.js +1 -1
  61. package/dist/components/Section/SectionContent.vue.js +1 -1
  62. package/dist/components/Section/SectionHeader.vue.js +1 -1
  63. package/dist/components/Section/SectionHeaderTag.vue.js +1 -1
  64. package/dist/components/SectionFlare/SectionFlare.vue.js +1 -1
  65. package/dist/components/ShowMoreButton.vue.js +1 -1
  66. package/dist/components/ShowMoreButton.vue2.js +12 -13
  67. package/dist/features/Operation/Operation.vue.js +31 -36
  68. package/dist/features/Operation/components/Headers.vue.js +1 -1
  69. package/dist/features/Operation/components/OperationParameters.vue.js +8 -11
  70. package/dist/features/Operation/components/ParameterList.vue.js +21 -24
  71. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  72. package/dist/features/Operation/components/ParameterListItem.vue2.js +36 -37
  73. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  74. package/dist/features/Operation/components/RequestBody.vue2.js +45 -52
  75. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  76. package/dist/features/Operation/components/callbacks/Callback.vue2.js +32 -35
  77. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  78. package/dist/features/Operation/layouts/ClassicLayout.vue.js +4 -4
  79. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +114 -119
  80. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  81. package/dist/features/Operation/layouts/ModernLayout.vue.js +3 -3
  82. package/dist/features/Operation/layouts/ModernLayout.vue2.js +87 -89
  83. package/dist/features/Search/components/SearchButton.vue.js +23 -25
  84. package/dist/features/Search/components/SearchModal.vue.js +1 -1
  85. package/dist/features/Search/components/SearchModal.vue2.js +53 -54
  86. package/dist/features/api-client-modal/ApiClientModal.vue.js +31 -38
  87. package/dist/features/document-source/hooks/useDocumentFetcher.js +17 -18
  88. package/dist/features/document-source/hooks/useDocumentSource.js +16 -16
  89. package/dist/features/example-responses/ExampleResponse.vue.js +1 -1
  90. package/dist/features/example-responses/ExampleResponse.vue2.js +23 -26
  91. package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
  92. package/dist/features/example-responses/ExampleResponseTabList.vue.js +1 -1
  93. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  94. package/dist/features/example-responses/ExampleResponses.vue2.js +128 -153
  95. package/dist/features/info-object/Contact.vue.js +24 -27
  96. package/dist/features/info-object/License.vue.js +26 -29
  97. package/dist/features/multiple-documents/DocumentSelector.vue.js +22 -31
  98. package/dist/features/multiple-documents/useMultipleDocuments.js +52 -56
  99. package/dist/features/sidebar/components/Sidebar.vue.d.ts.map +1 -1
  100. package/dist/features/sidebar/components/Sidebar.vue.js +3 -3
  101. package/dist/features/sidebar/components/Sidebar.vue2.js +74 -79
  102. package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
  103. package/dist/features/sidebar/components/SidebarElement.vue2.js +52 -53
  104. package/dist/features/sidebar/components/SidebarGroup.vue.js +1 -1
  105. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +1 -1
  106. package/dist/features/specification-extension/SpecificationExtension.vue2.js +28 -31
  107. package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
  108. package/dist/features/test-request-button/TestRequestButton.vue2.js +1 -2
  109. package/dist/features/traverse-schema/helpers/traverse-description.js +13 -14
  110. package/dist/features/traverse-schema/helpers/traverse-document.js +14 -15
  111. package/dist/features/traverse-schema/helpers/traverse-paths.js +20 -23
  112. package/dist/features/traverse-schema/helpers/traverse-schemas.js +13 -15
  113. package/dist/features/traverse-schema/helpers/traverse-webhooks.js +8 -10
  114. package/dist/hooks/useFreezing.js +14 -14
  115. package/dist/hooks/useNavState.js +37 -39
  116. package/dist/index.js +2 -2
  117. package/dist/libs/openapi.js +28 -31
  118. package/dist/style.css +1 -1
  119. package/dist/v2/ApiReferenceWorkspace.vue.js +68 -75
  120. package/dist/v2/ApiReferenceWorkspace.vue3.js +1 -1
  121. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
  122. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +116 -135
  123. package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +40 -47
  124. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +45 -46
  125. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +109 -125
  126. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +1 -1
  127. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +84 -84
  128. package/dist/v2/blocks/scalar-auth-selector-block/helpers/update-scheme.js +12 -13
  129. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +1 -1
  130. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +1 -4
  131. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +1 -1
  132. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +77 -82
  133. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue.js +1 -1
  134. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue2.js +46 -49
  135. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue.js +1 -1
  136. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue.js +1 -1
  137. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue.js +1 -1
  138. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +1 -1
  139. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue2.js +74 -89
  140. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +24 -27
  141. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +1 -1
  142. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +106 -119
  143. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +11 -12
  144. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +3 -3
  145. package/dist/v2/blocks/scalar-server-selector-block/components/Selector.vue.js +11 -14
  146. package/dist/v2/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +45 -48
  147. package/dist/v2/helpers/get-document-name.js +10 -10
  148. package/dist/v2/helpers/map-configuration.js +48 -51
  149. package/dist/v2/hooks/use-legacy-store-events.js +44 -48
  150. package/dist/v2/hooks/use-workspace-store-events.js +23 -26
  151. package/package.json +22 -22
  152. package/dist/components/ApiReferenceLayout.vue3.js +0 -4
  153. package/dist/components/ApiReferenceLayout.vue4.js +0 -4
  154. package/dist/components/ApiReferenceLayout.vue5.js +0 -4
  155. package/dist/components/ApiReferenceLayout.vue6.js +0 -4
  156. package/dist/components/Badge/Badge.vue3.js +0 -4
  157. package/dist/components/ClassicHeader.vue2.js +0 -4
  158. package/dist/components/Content/Content.vue2.js +0 -4
  159. package/dist/components/Content/Models/ClassicLayout.vue3.js +0 -4
  160. package/dist/components/Content/Models/ModernLayout.vue3.js +0 -4
  161. package/dist/components/Content/Schema/Schema.vue3.js +0 -4
  162. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue3.js +0 -4
  163. package/dist/components/Content/Schema/SchemaEnumValues.vue3.js +0 -4
  164. package/dist/components/Content/Schema/SchemaHeading.vue3.js +0 -4
  165. package/dist/components/Content/Schema/SchemaProperty.vue3.js +0 -4
  166. package/dist/components/Content/Schema/SchemaPropertyDetail.vue3.js +0 -4
  167. package/dist/components/Content/Schema/SchemaPropertyExamples.vue3.js +0 -4
  168. package/dist/components/Content/Schema/SchemaPropertyHeading.vue3.js +0 -4
  169. package/dist/components/Content/Tags/ClassicLayout.vue3.js +0 -4
  170. package/dist/components/Content/Tags/ModernLayout.vue3.js +0 -4
  171. package/dist/components/GettingStarted.vue3.js +0 -4
  172. package/dist/components/LinkList/LinkList.vue3.js +0 -4
  173. package/dist/components/LoadingSkeleton.vue3.js +0 -4
  174. package/dist/components/MobileHeader.vue3.js +0 -4
  175. package/dist/components/OperationPath.vue3.js +0 -4
  176. package/dist/components/OperationsList/OperationsList.vue3.js +0 -4
  177. package/dist/components/OperationsList/OperationsListItem.vue3.js +0 -4
  178. package/dist/components/ScreenReader.vue3.js +0 -4
  179. package/dist/components/Section/CompactSection.vue3.js +0 -4
  180. package/dist/components/Section/Section.vue3.js +0 -4
  181. package/dist/components/Section/SectionAccordion.vue3.js +0 -4
  182. package/dist/components/Section/SectionColumn.vue2.js +0 -4
  183. package/dist/components/Section/SectionColumns.vue2.js +0 -4
  184. package/dist/components/Section/SectionContainer.vue3.js +0 -4
  185. package/dist/components/Section/SectionContainerAccordion.vue3.js +0 -4
  186. package/dist/components/Section/SectionContent.vue3.js +0 -4
  187. package/dist/components/Section/SectionHeader.vue3.js +0 -4
  188. package/dist/components/Section/SectionHeaderTag.vue3.js +0 -4
  189. package/dist/components/SectionFlare/SectionFlare.vue2.js +0 -4
  190. package/dist/components/ShowMoreButton.vue3.js +0 -4
  191. package/dist/features/Operation/components/Headers.vue3.js +0 -4
  192. package/dist/features/Operation/components/ParameterListItem.vue3.js +0 -4
  193. package/dist/features/Operation/components/RequestBody.vue3.js +0 -4
  194. package/dist/features/Operation/components/callbacks/Callback.vue3.js +0 -4
  195. package/dist/features/Operation/layouts/ClassicLayout.vue3.js +0 -4
  196. package/dist/features/Operation/layouts/ModernLayout.vue3.js +0 -4
  197. package/dist/features/Search/components/SearchModal.vue3.js +0 -4
  198. package/dist/features/example-responses/ExampleResponse.vue3.js +0 -4
  199. package/dist/features/example-responses/ExampleResponseTab.vue3.js +0 -4
  200. package/dist/features/example-responses/ExampleResponseTabList.vue3.js +0 -4
  201. package/dist/features/example-responses/ExampleResponses.vue3.js +0 -4
  202. package/dist/features/sidebar/components/Sidebar.vue3.js +0 -4
  203. package/dist/features/sidebar/components/SidebarElement.vue3.js +0 -4
  204. package/dist/features/sidebar/components/SidebarGroup.vue3.js +0 -4
  205. package/dist/features/sidebar/components/SidebarHttpBadge.vue3.js +0 -4
  206. package/dist/features/test-request-button/TestRequestButton.vue3.js +0 -4
  207. package/dist/v2/ApiReferenceWorkspace.vue2.js +0 -4
  208. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue3.js +0 -4
  209. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue3.js +0 -4
  210. package/dist/v2/blocks/scalar-client-selector-block/components/ClientDropdown.vue3.js +0 -4
  211. package/dist/v2/blocks/scalar-client-selector-block/components/ClientSelector.vue3.js +0 -4
  212. package/dist/v2/blocks/scalar-info-block/components/DownloadLink.vue3.js +0 -4
  213. package/dist/v2/blocks/scalar-info-block/components/InfoDescription.vue3.js +0 -4
  214. package/dist/v2/blocks/scalar-info-block/components/IntroductionCard.vue3.js +0 -4
  215. package/dist/v2/blocks/scalar-info-block/components/IntroductionCardItem.vue2.js +0 -4
  216. package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue3.js +0 -4
  217. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue3.js +0 -4
@@ -1,5 +1,5 @@
1
1
  import o from "./Badge.vue2.js";
2
- import "./Badge.vue3.js";
2
+ /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3dedb7e4"]]);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as c, openBlock as t, createElementVNode as s, renderSlot as r } from "vue";
2
- import "./ClassicHeader.vue2.js";
2
+ /* empty css */
3
3
  import o from "../_virtual/_plugin-vue_export-helper.js";
4
4
  const n = {}, d = { class: "references-classic-header-container" }, a = { class: "references-classic-header" }, i = { class: "references-classic-header-content" };
5
5
  function l(e, _) {
@@ -1,195 +1,171 @@
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
- import { ScalarErrorBoundary as p } from "@scalar/components";
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
- import g from "../../v2/blocks/scalar-info-block/components/IntroductionCardItem.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
- const _ = { class: "narrow-references-container" }, he = /* @__PURE__ */ F({
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";
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";
8
+ 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";
10
+ 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";
13
+ 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({
20
20
  __name: "Content",
21
21
  props: {
22
22
  config: {},
23
23
  store: {}
24
24
  },
25
- setup(a) {
26
- K();
27
- const f = l(
28
- () => R(a.config.hiddenClients)
29
- ), { getHeadingId: C } = M(), E = l(
30
- () => C({
31
- slug: X,
25
+ setup(s) {
26
+ j();
27
+ const u = c(
28
+ () => W(s.config.hiddenClients)
29
+ ), { getHeadingId: k } = T(), S = c(
30
+ () => k({
31
+ slug: z,
32
32
  depth: 1,
33
33
  value: "Introduction"
34
34
  })
35
- ), O = l(
36
- () => y(a.store.workspace.activeDocument)
37
- ), U = l(
38
- () => {
39
- var e;
40
- return y((e = a.store.workspace.activeDocument) == null ? void 0 : e.info);
41
- }
42
- ), { collections: A, securitySchemes: I, servers: k } = W(), {
43
- activeCollection: L,
44
- activeEnvVariables: V,
45
- activeEnvironment: $,
46
- activeWorkspace: S
47
- } = z(), s = l(() => {
48
- if (a.config.slug) {
49
- const e = A[G(a.config.slug)];
35
+ ), h = c(
36
+ () => g(s.store.workspace.activeDocument)
37
+ ), w = c(
38
+ () => g(s.store.workspace.activeDocument?.info)
39
+ ), { collections: D, securitySchemes: y, servers: v } = b(), {
40
+ activeCollection: C,
41
+ activeEnvVariables: E,
42
+ activeEnvironment: O,
43
+ activeWorkspace: p
44
+ } = N(), n = c(() => {
45
+ if (s.config.slug) {
46
+ const e = D[F(s.config.slug)];
50
47
  if (e)
51
48
  return e;
52
49
  }
53
- return L.value;
54
- }), b = l(() => {
55
- if (s.value) {
56
- if (s.value.selectedServerUid) {
57
- const e = k[s.value.selectedServerUid];
50
+ return C.value;
51
+ }), U = c(() => {
52
+ if (n.value) {
53
+ if (n.value.selectedServerUid) {
54
+ const e = v[n.value.selectedServerUid];
58
55
  if (e)
59
56
  return e;
60
57
  }
61
- return k[s.value.servers[0]];
58
+ return v[n.value.servers[0]];
62
59
  }
63
- }), N = () => a.store.exportActiveDocument("json") ?? "{}";
64
- return (e, ee) => {
65
- var h;
66
- return c(), B(j, null, [
67
- i(t(q)),
68
- T("div", _, [
69
- v(e.$slots, "start"),
70
- i(H, {
71
- showEmptyState: !e.store.workspace.activeDocument
72
- }, {
73
- "empty-state": o(() => [
74
- v(e.$slots, "empty-state")
75
- ]),
76
- default: o(() => {
77
- var w;
78
- return [
79
- e.store.workspace.activeDocument ? (c(), u(t(J), {
80
- key: 0,
81
- id: E.value,
82
- documentExtensions: O.value,
83
- externalDocs: e.store.workspace.activeDocument.externalDocs,
84
- getOriginalDocument: N,
85
- info: e.store.workspace.activeDocument.info,
86
- infoExtensions: U.value,
87
- isLoading: e.config.isLoading,
88
- layout: e.config.layout,
89
- oasVersion: (w = e.store.workspace.activeDocument) == null ? void 0 : w["x-original-oas-version"],
90
- onLoaded: e.config.onLoaded
91
- }, {
92
- selectors: o(() => [
93
- i(t(p), null, {
94
- default: o(() => {
95
- var r, n;
96
- return [
97
- (n = (r = e.store.workspace.activeDocument) == null ? void 0 : r.servers) != null && n.length ? (c(), u(t(g), {
98
- key: 0,
99
- class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
100
- }, {
101
- default: o(() => {
102
- var d, D;
103
- return [
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"]
107
- }, null, 8, ["servers", "xSelectedServer"])
108
- ];
109
- }),
110
- _: 1
111
- })) : m("", !0)
112
- ];
113
- }),
60
+ }), A = () => s.store.exportActiveDocument("json") ?? "{}";
61
+ return (e, P) => (i(), L(V, null, [
62
+ r(t(G)),
63
+ $("div", J, [
64
+ m(e.$slots, "start"),
65
+ r(B, {
66
+ showEmptyState: !e.store.workspace.activeDocument
67
+ }, {
68
+ "empty-state": o(() => [
69
+ m(e.$slots, "empty-state")
70
+ ]),
71
+ default: o(() => [
72
+ e.store.workspace.activeDocument ? (i(), a(t(H), {
73
+ key: 0,
74
+ id: S.value,
75
+ documentExtensions: h.value,
76
+ externalDocs: e.store.workspace.activeDocument.externalDocs,
77
+ getOriginalDocument: A,
78
+ info: e.store.workspace.activeDocument.info,
79
+ infoExtensions: w.value,
80
+ isLoading: e.config.isLoading,
81
+ layout: e.config.layout,
82
+ oasVersion: e.store.workspace.activeDocument?.["x-original-oas-version"],
83
+ onLoaded: e.config.onLoaded
84
+ }, {
85
+ selectors: o(() => [
86
+ r(t(d), null, {
87
+ default: o(() => [
88
+ e.store.workspace.activeDocument?.servers?.length ? (i(), a(t(f), {
89
+ key: 0,
90
+ class: "scalar-reference-intro-server scalar-client introduction-card-item text-base leading-normal [--scalar-address-bar-height:0px]"
91
+ }, {
92
+ default: o(() => [
93
+ r(t(K), {
94
+ servers: e.store.workspace.activeDocument?.servers ?? [],
95
+ xSelectedServer: e.store.workspace.activeDocument?.["x-scalar-active-server"]
96
+ }, null, 8, ["servers", "xSelectedServer"])
97
+ ]),
114
98
  _: 1
115
- }),
116
- i(t(p), null, {
99
+ })) : l("", !0)
100
+ ]),
101
+ _: 1
102
+ }),
103
+ r(t(d), null, {
104
+ default: o(() => [
105
+ n.value && t(p) && Object.keys(t(y) ?? {}).length ? (i(), a(t(f), {
106
+ key: 0,
107
+ class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
108
+ }, {
117
109
  default: o(() => [
118
- s.value && t(S) && Object.keys(t(I) ?? {}).length ? (c(), u(t(g), {
119
- key: 0,
120
- class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
121
- }, {
122
- default: o(() => {
123
- var r, n;
124
- return [
125
- i(t(Q), {
126
- collection: s.value,
127
- envVariables: t(V),
128
- environment: t($),
129
- layout: "reference",
130
- persistAuth: (r = e.config) == null ? void 0 : r.persistAuth,
131
- selectedSecuritySchemeUids: ((n = s.value) == null ? void 0 : n.selectedSecuritySchemeUids) ?? [],
132
- server: b.value,
133
- title: "Authentication",
134
- workspace: t(S)
135
- }, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
136
- ];
137
- }),
138
- _: 1
139
- })) : m("", !0)
110
+ r(t(M), {
111
+ collection: n.value,
112
+ envVariables: t(E),
113
+ environment: t(O),
114
+ layout: "reference",
115
+ persistAuth: e.config?.persistAuth,
116
+ selectedSecuritySchemeUids: n.value?.selectedSecuritySchemeUids ?? [],
117
+ server: U.value,
118
+ title: "Authentication",
119
+ workspace: t(p)
120
+ }, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
140
121
  ]),
141
122
  _: 1
142
- }),
143
- i(t(p), null, {
144
- default: o(() => {
145
- var r;
146
- return [
147
- ((r = e.config) == null ? void 0 : r.hiddenClients) !== !0 && f.value.length ? (c(), u(t(g), {
148
- key: 0,
149
- class: "introduction-card-item scalar-reference-intro-clients"
150
- }, {
151
- default: o(() => {
152
- var n, d;
153
- return [
154
- i(t(Y), {
155
- class: "introduction-card-item scalar-reference-intro-clients",
156
- clientOptions: f.value,
157
- xScalarSdkInstallation: (d = (n = e.store.workspace.activeDocument) == null ? void 0 : n.info) == null ? void 0 : d["x-scalar-sdk-installation"],
158
- xSelectedClient: e.store.workspace["x-scalar-default-client"]
159
- }, null, 8, ["clientOptions", "xScalarSdkInstallation", "xSelectedClient"])
160
- ];
161
- }),
162
- _: 1
163
- })) : m("", !0)
164
- ];
165
- }),
123
+ })) : l("", !0)
124
+ ]),
125
+ _: 1
126
+ }),
127
+ r(t(d), null, {
128
+ default: o(() => [
129
+ e.config?.hiddenClients !== !0 && u.value.length ? (i(), a(t(f), {
130
+ key: 0,
131
+ class: "introduction-card-item scalar-reference-intro-clients"
132
+ }, {
133
+ default: o(() => [
134
+ r(t(R), {
135
+ class: "introduction-card-item scalar-reference-intro-clients",
136
+ clientOptions: u.value,
137
+ xScalarSdkInstallation: e.store.workspace.activeDocument?.info?.["x-scalar-sdk-installation"],
138
+ xSelectedClient: e.store.workspace["x-scalar-default-client"]
139
+ }, null, 8, ["clientOptions", "xScalarSdkInstallation", "xSelectedClient"])
140
+ ]),
166
141
  _: 1
167
- })
142
+ })) : l("", !0)
168
143
  ]),
169
144
  _: 1
170
- }, 8, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "isLoading", "layout", "oasVersion", "onLoaded"])) : m("", !0)
171
- ];
172
- }),
173
- _: 3
174
- }, 8, ["showEmptyState"]),
175
- e.store.workspace.activeDocument ? (c(), u(t(Z), {
176
- key: 0,
177
- clientOptions: f.value,
178
- config: e.config,
179
- document: e.store.workspace.activeDocument,
180
- store: e.store
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
- config: e.config,
185
- document: e.store.workspace.activeDocument
186
- }, null, 8, ["config", "document"])) : m("", !0),
187
- v(e.$slots, "end")
188
- ])
189
- ], 64);
190
- };
145
+ })
146
+ ]),
147
+ _: 1
148
+ }, 8, ["id", "documentExtensions", "externalDocs", "info", "infoExtensions", "isLoading", "layout", "oasVersion", "onLoaded"])) : l("", !0)
149
+ ]),
150
+ _: 3
151
+ }, 8, ["showEmptyState"]),
152
+ e.store.workspace.activeDocument ? (i(), a(t(X), {
153
+ key: 0,
154
+ clientOptions: u.value,
155
+ config: e.config,
156
+ document: e.store.workspace.activeDocument,
157
+ store: e.store
158
+ }, null, 8, ["clientOptions", "config", "document", "store"])) : l("", !0),
159
+ !e.config?.hideModels && e.store.workspace.activeDocument ? (i(), a(t(q), {
160
+ key: 1,
161
+ config: e.config,
162
+ document: e.store.workspace.activeDocument
163
+ }, null, 8, ["config", "document"])) : l("", !0),
164
+ m(e.$slots, "end")
165
+ ])
166
+ ], 64));
191
167
  }
192
168
  });
193
169
  export {
194
- he as default
170
+ fe as default
195
171
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./Content.vue.js";
2
- import "./Content.vue2.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./ClassicLayout.vue2.js";
2
- import "./ClassicLayout.vue3.js";
2
+ /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-59fedb4d"]]);
5
5
  export {
@@ -1,51 +1,51 @@
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 = {
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";
9
+ import B from "../Schema/SchemaHeading.vue.js";
10
+ import H from "../../Section/SectionHeader.vue.js";
11
+ const V = {
12
12
  key: 0,
13
13
  class: "properties"
14
- }, A = { key: 1 }, P = /* @__PURE__ */ k({
14
+ }, x = { key: 1 }, O = /* @__PURE__ */ v({
15
15
  __name: "ClassicLayout",
16
16
  props: {
17
17
  models: {}
18
18
  },
19
- setup(L) {
20
- const { getModelId: s } = C();
21
- return (u, m) => u.models.length ? (r(), a(e(b), {
19
+ setup(A) {
20
+ const { getModelId: s } = y();
21
+ return (u, m) => u.models.length ? (r(), a(e(C), {
22
22
  key: 0,
23
23
  class: "reference-models"
24
24
  }, {
25
25
  title: t(() => [
26
- i(e(V), { level: 2 }, {
26
+ i(e(H), { level: 2 }, {
27
27
  default: t(() => m[0] || (m[0] = [
28
- g("Models")
28
+ S("Models")
29
29
  ])),
30
30
  _: 1,
31
31
  __: [0]
32
32
  })
33
33
  ]),
34
34
  default: t(() => [
35
- (r(!0), n(f, null, p(u.models, ({ name: l, schema: o }) => (r(), a(e(N), {
35
+ (r(!0), n(c, null, f(u.models, ({ name: l, schema: o }) => (r(), a(e(b), {
36
36
  id: e(s)({ name: l }),
37
37
  key: l,
38
38
  label: l
39
39
  }, {
40
40
  title: t(() => [
41
- i(e(q), {
41
+ i(e(N), {
42
42
  id: e(s)({ name: l }),
43
43
  class: "reference-models-anchor"
44
44
  }, {
45
45
  default: t(() => [
46
- i(e(B), { level: 3 }, {
46
+ i(e(q), { level: 3 }, {
47
47
  default: t(() => [
48
- i(e(H), {
48
+ i(e(B), {
49
49
  class: "reference-models-label",
50
50
  name: o.title ?? l,
51
51
  value: o
@@ -58,27 +58,24 @@ const x = {
58
58
  }, 1032, ["id"])
59
59
  ]),
60
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(_), {
65
- key: d,
66
- name: d,
67
- required: (c = o.required) == null ? void 0 : c.includes(d),
68
- value: e(y)(v)
69
- }, null, 8, ["name", "required", "value"]);
70
- }), 128))
71
- ])) : (r(), n("div", A, [
72
- i(e(_), { value: o }, null, 8, ["value"])
61
+ "properties" in o ? (r(), n("div", V, [
62
+ (r(!0), n(c, null, f(Object.entries(o.properties ?? {}), ([d, _]) => (r(), a(e(p), {
63
+ key: d,
64
+ 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"])
73
70
  ]))
74
71
  ]),
75
72
  _: 2
76
73
  }, 1032, ["id", "label"]))), 128))
77
74
  ]),
78
75
  _: 1
79
- })) : S("", !0);
76
+ })) : k("", !0);
80
77
  }
81
78
  });
82
79
  export {
83
- P as default
80
+ O as default
84
81
  };
@@ -1,46 +1,42 @@
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({
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";
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({
8
8
  __name: "Models",
9
9
  props: {
10
10
  document: {},
11
11
  config: {}
12
12
  },
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 }];
13
+ 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 }];
20
19
  }) : [];
21
20
  });
22
- return (e, i) => t.value && Object.keys(t.value).length > 0 ? (r(), n(a(v), {
21
+ return (e, m) => o.value && Object.keys(o.value).length > 0 ? (n(), s(r(k), {
23
22
  key: 0,
24
23
  id: "models",
25
- isLazy: !!a(c) && !a(c).startsWith("model")
24
+ isLazy: !!r(a) && !r(a).startsWith("model")
26
25
  }, {
27
- default: h(() => {
28
- var o;
29
- return [
30
- ((o = e.config) == null ? void 0 : o.layout) === "classic" ? (r(), n(_, {
31
- key: 0,
32
- models: t.value
33
- }, null, 8, ["models"])) : (r(), n(k, {
34
- key: 1,
35
- config: e.config,
36
- schemas: t.value
37
- }, null, 8, ["config", "schemas"]))
38
- ];
39
- }),
26
+ default: p(() => [
27
+ e.config?.layout === "classic" ? (n(), s(g, {
28
+ key: 0,
29
+ models: o.value
30
+ }, null, 8, ["models"])) : (n(), s(_, {
31
+ key: 1,
32
+ config: e.config,
33
+ schemas: o.value
34
+ }, null, 8, ["config", "schemas"]))
35
+ ]),
40
36
  _: 1
41
- }, 8, ["isLazy"])) : p("", !0);
37
+ }, 8, ["isLazy"])) : d("", !0);
42
38
  }
43
39
  });
44
40
  export {
45
- j as default
41
+ b as default
46
42
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
- import "./ModernLayout.vue3.js";
2
+ /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cd0edd51"]]);
5
5
  export {