@scalar/api-reference 1.31.7 → 1.31.9

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 (183) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/browser/standalone.js +18613 -18470
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.js +10 -30
  6. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  8. package/dist/components/ApiReferenceLayout.vue2.js +240 -222
  9. package/dist/components/Content/Content.vue.d.ts +2 -0
  10. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Content.vue.js +2 -2
  12. package/dist/components/Content/Content.vue2.js +84 -74
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts +1 -3
  14. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  16. package/dist/components/Content/Introduction/Introduction.vue2.js +93 -83
  17. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Lazy/Loading.vue.js +84 -86
  19. package/dist/components/Content/Models/Models.vue.js +1 -1
  20. package/dist/components/Content/Models/Models.vue2.js +4 -4
  21. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  23. package/dist/components/Content/Schema/Schema.vue2.js +53 -53
  24. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +1 -1
  26. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  28. package/dist/components/Content/Schema/SchemaProperty.vue2.js +117 -112
  29. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  31. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +161 -191
  32. package/dist/components/Content/Schema/helpers/schema-name.d.ts +13 -0
  33. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/helpers/schema-name.js +59 -13
  35. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  36. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  37. package/dist/components/Content/Tag/OperationsList.vue2.js +22 -25
  38. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -3
  39. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  41. package/dist/components/Content/Tag/OperationsListItem.vue2.js +46 -47
  42. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/Tag.vue.js +45 -47
  44. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -0
  45. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Tag/TagList.vue.js +40 -41
  47. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  49. package/dist/components/Content/Tag/TagSection.vue2.js +21 -21
  50. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +16 -1
  51. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  52. package/dist/components/HttpMethod/HttpMethod.vue.js +12 -11
  53. package/dist/components/MobileHeader.vue.d.ts +1 -8
  54. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  55. package/dist/components/MobileHeader.vue.js +1 -1
  56. package/dist/components/MobileHeader.vue2.js +19 -19
  57. package/dist/components/Section/Section.vue.js +2 -2
  58. package/dist/components/Section/Section.vue2.js +1 -1
  59. package/dist/components/ShowMoreButton.vue.js +2 -2
  60. package/dist/components/ShowMoreButton.vue2.js +1 -1
  61. package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -4
  62. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  63. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  64. package/dist/components/Sidebar/Sidebar.vue2.js +113 -159
  65. package/dist/components/Sidebar/SidebarElement.vue.d.ts +2 -11
  66. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  67. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  68. package/dist/components/Sidebar/SidebarElement.vue2.js +85 -81
  69. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts +16 -1
  70. package/dist/components/Sidebar/SidebarHttpBadge.vue.d.ts.map +1 -1
  71. package/dist/components/Sidebar/SidebarHttpBadge.vue.js +2 -2
  72. package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +11 -5
  73. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  74. package/dist/features/ApiClientModal/ApiClientModal.vue.js +54 -42
  75. package/dist/features/ApiClientModal/useApiClient.d.ts +74 -72
  76. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  77. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +0 -2
  78. package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -1
  79. package/dist/features/DocumentSource/hooks/useDocumentSource.js +40 -67
  80. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  81. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +5 -5
  82. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  83. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  84. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +200 -179
  85. package/dist/features/Operation/Operation.vue.d.ts +0 -1
  86. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/Operation.vue.js +31 -34
  88. package/dist/features/Operation/components/OperationParameters.vue.d.ts +3 -2
  89. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  90. package/dist/features/Operation/components/OperationParameters.vue.js +62 -64
  91. package/dist/features/Operation/components/OperationResponses.vue.d.ts +1 -2
  92. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  93. package/dist/features/Operation/components/OperationResponses.vue.js +2 -2
  94. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  95. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  96. package/dist/features/Operation/components/callbacks/Callback.vue2.js +31 -38
  97. package/dist/features/Operation/hooks/useResponses.d.ts +3 -3
  98. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  99. package/dist/features/Operation/hooks/useResponses.js +12 -13
  100. package/dist/features/Operation/index.d.ts +0 -1
  101. package/dist/features/Operation/index.d.ts.map +1 -1
  102. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +4 -6
  103. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  105. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +85 -72
  106. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -4
  107. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  109. package/dist/features/Operation/layouts/ModernLayout.vue2.js +114 -98
  110. package/dist/features/Search/SearchModal.vue.js +2 -2
  111. package/dist/features/Search/SearchModal.vue2.js +1 -1
  112. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  113. package/dist/features/Search/useSearchIndex.js +61 -64
  114. package/dist/features/sidebar/helpers/create-sidebar.d.ts +4 -2
  115. package/dist/features/sidebar/helpers/create-sidebar.d.ts.map +1 -1
  116. package/dist/features/sidebar/helpers/create-sidebar.js +33 -0
  117. package/dist/features/sidebar/hooks/useSidebar.d.ts +2 -3
  118. package/dist/features/sidebar/hooks/useSidebar.d.ts.map +1 -1
  119. package/dist/features/sidebar/hooks/useSidebar.js +18 -0
  120. package/dist/features/sidebar/index.d.ts +2 -1
  121. package/dist/features/sidebar/index.d.ts.map +1 -1
  122. package/dist/features/traverse-schema/helpers/get-tag.d.ts +4 -2
  123. package/dist/features/traverse-schema/helpers/get-tag.d.ts.map +1 -1
  124. package/dist/features/traverse-schema/helpers/get-tag.js +7 -0
  125. package/dist/features/traverse-schema/helpers/traverse-description.js +33 -0
  126. package/dist/features/traverse-schema/helpers/traverse-document.d.ts.map +1 -1
  127. package/dist/features/traverse-schema/helpers/traverse-document.js +34 -0
  128. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts +5 -3
  129. package/dist/features/traverse-schema/helpers/traverse-paths.d.ts.map +1 -1
  130. package/dist/features/traverse-schema/helpers/traverse-paths.js +32 -0
  131. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts +2 -2
  132. package/dist/features/traverse-schema/helpers/traverse-schemas.d.ts.map +1 -1
  133. package/dist/features/traverse-schema/helpers/traverse-schemas.js +23 -0
  134. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts +2 -2
  135. package/dist/features/traverse-schema/helpers/traverse-tags.d.ts.map +1 -1
  136. package/dist/features/traverse-schema/helpers/traverse-tags.js +43 -0
  137. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts +2 -2
  138. package/dist/features/traverse-schema/helpers/traverse-webhooks.d.ts.map +1 -1
  139. package/dist/features/traverse-schema/helpers/traverse-webhooks.js +26 -0
  140. package/dist/features/traverse-schema/index.d.ts +3 -3
  141. package/dist/features/traverse-schema/index.d.ts.map +1 -1
  142. package/dist/features/traverse-schema/types.d.ts +8 -5
  143. package/dist/features/traverse-schema/types.d.ts.map +1 -1
  144. package/dist/helpers/parse.d.ts +2 -1
  145. package/dist/helpers/parse.d.ts.map +1 -1
  146. package/dist/helpers/parse.js +72 -88
  147. package/dist/hooks/useMultipleDocuments.d.ts +6 -6
  148. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  149. package/dist/hooks/useNavState.d.ts +1 -1
  150. package/dist/hooks/useNavState.d.ts.map +1 -1
  151. package/dist/hooks/useNavState.js +14 -9
  152. package/dist/hooks/useOperation.d.ts +7 -7
  153. package/dist/hooks/useOperation.d.ts.map +1 -1
  154. package/dist/hooks/useOperation.js +13 -12
  155. package/dist/index.d.ts +0 -1
  156. package/dist/index.d.ts.map +1 -1
  157. package/dist/index.js +23 -25
  158. package/dist/legacy/fixtures/index.d.ts +1 -1
  159. package/dist/libs/openapi.d.ts +3 -4
  160. package/dist/libs/openapi.d.ts.map +1 -1
  161. package/dist/libs/openapi.js +8 -9
  162. package/dist/style.css +1 -1
  163. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +4 -18
  164. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  165. package/dist/v2/ApiReferenceWorkspace.vue.js +68 -45
  166. package/package.json +17 -17
  167. package/dist/components/Content/Webhooks/index.d.ts +0 -2
  168. package/dist/components/Content/Webhooks/index.d.ts.map +0 -1
  169. package/dist/features/Operation/Webhooks.vue.d.ts +0 -7
  170. package/dist/features/Operation/Webhooks.vue.d.ts.map +0 -1
  171. package/dist/features/Operation/Webhooks.vue.js +0 -7
  172. package/dist/features/Operation/Webhooks.vue2.js +0 -121
  173. package/dist/features/Operation/components/Webhook.vue.d.ts +0 -7
  174. package/dist/features/Operation/components/Webhook.vue.d.ts.map +0 -1
  175. package/dist/features/Operation/components/Webhook.vue.js +0 -7
  176. package/dist/features/Operation/components/Webhook.vue2.js +0 -29
  177. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts +0 -8
  178. package/dist/features/traverse-schema/helpers/operation-id-params.d.ts.map +0 -1
  179. package/dist/features/traverse-schema/helpers/operation-id-params.js +0 -8
  180. package/dist/hooks/useSidebar.d.ts +0 -53
  181. package/dist/hooks/useSidebar.d.ts.map +0 -1
  182. package/dist/hooks/useSidebar.js +0 -248
  183. package/dist/legacy/fixtures/httpRequestMethods.js +0 -14
@@ -1,103 +1,101 @@
1
- import { defineComponent as F, computed as m, createElementBlock as i, openBlock as t, Fragment as u, createStaticVNode as G, createElementVNode as A, renderSlot as f, createBlock as a, createCommentVNode as l, unref as r, withCtx as V, createVNode as v, normalizeClass as I, renderList as O } from "vue";
1
+ import { defineComponent as F, computed as f, createElementBlock as i, openBlock as t, Fragment as v, createStaticVNode as G, createElementVNode as E, renderSlot as y, createBlock as a, createCommentVNode as c, unref as r, withCtx as U, createVNode as m, normalizeClass as I, renderList as O } from "vue";
2
2
  import { useWorkspace as R, useActiveEntities as D } from "@scalar/api-client/store";
3
3
  import { RequestAuth as H } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
4
  import { ScalarErrorBoundary as J } from "@scalar/components";
5
5
  import { getSlugUid as K } from "@scalar/oas-utils/transforms";
6
6
  import { useConfig as P } from "../../hooks/useConfig.js";
7
- import { useSidebar as Q } from "../../hooks/useSidebar.js";
8
- import { getModels as S, hasModels as T } from "../../libs/openapi.js";
9
- import X from "./Lazy/Loading.vue.js";
7
+ import { getModels as p, hasModels as Q } from "../../libs/openapi.js";
8
+ import T from "./Lazy/Loading.vue.js";
10
9
  /* empty css */
11
- import Y from "./Introduction/Introduction.vue.js";
12
- import Z from "../../features/BaseUrl/BaseUrl.vue.js";
13
- import _ from "./ClientLibraries/ClientLibraries.vue.js";
14
- import E from "./Tag/TagList.vue.js";
15
- import x from "../../features/Operation/Webhooks.vue.js";
16
- import ee from "./Models/ModelsAccordion.vue.js";
17
- import re from "./Models/Models.vue.js";
18
- const se = { class: "narrow-references-container" }, te = {
10
+ import X from "./Introduction/Introduction.vue.js";
11
+ import Y from "../../features/BaseUrl/BaseUrl.vue.js";
12
+ import Z from "./ClientLibraries/ClientLibraries.vue.js";
13
+ import S from "./Tag/TagList.vue.js";
14
+ import _ from "./Models/ModelsAccordion.vue.js";
15
+ import x from "./Models/Models.vue.js";
16
+ const ee = { class: "narrow-references-container" }, re = {
19
17
  key: 0,
20
18
  class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm leading-normal [--scalar-address-bar-height:0px]"
21
- }, ae = {
19
+ }, se = {
22
20
  key: 1,
23
21
  class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
24
- }, Ce = /* @__PURE__ */ F({
22
+ }, he = /* @__PURE__ */ F({
25
23
  __name: "Content",
26
24
  props: {
25
+ document: {},
27
26
  parsedSpec: {},
28
27
  layout: { default: "modern" }
29
28
  },
30
- setup(U) {
31
- const $ = U, p = P(), { hideModels: M } = Q(), { collections: B, securitySchemes: N, servers: y } = R(), {
29
+ setup($) {
30
+ const M = $, u = P(), { collections: B, securitySchemes: N, servers: h } = R(), {
32
31
  activeCollection: W,
33
32
  activeEnvVariables: L,
34
33
  activeEnvironment: j,
35
- activeWorkspace: h
36
- } = D(), s = m(() => {
37
- if (p.value.slug) {
38
- const e = B[K(p.value.slug)];
34
+ activeWorkspace: g
35
+ } = D(), s = f(() => {
36
+ if (u.value.slug) {
37
+ const e = B[K(u.value.slug)];
39
38
  if (e)
40
39
  return e;
41
40
  }
42
41
  return W.value;
43
- }), c = m(() => {
42
+ }), o = f(() => {
44
43
  if (s.value) {
45
44
  if (s.value.selectedServerUid) {
46
- const e = y[s.value.selectedServerUid];
45
+ const e = h[s.value.selectedServerUid];
47
46
  if (e)
48
47
  return e;
49
48
  }
50
- return y[s.value.servers[0]];
49
+ return h[s.value.servers[0]];
51
50
  }
52
- }), q = m(
53
- () => $.layout === "classic" ? "after" : "aside"
51
+ }), q = f(
52
+ () => M.layout === "classic" ? "after" : "aside"
54
53
  );
55
54
  return (e, k) => {
56
- var g, b, C, w;
57
- return t(), i(u, null, [
58
- k[0] || (k[0] = G('<div class="section-flare" data-v-42df8515><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div><div class="section-flare-item" data-v-42df8515></div></div>', 1)),
59
- A("div", se, [
60
- f(e.$slots, "start", {}, void 0, !0),
61
- s.value ? (t(), a(r(X), {
55
+ var b, C, w, A, V;
56
+ return t(), i(v, null, [
57
+ k[0] || (k[0] = G('<div class="section-flare" data-v-54b62036><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div></div>', 1)),
58
+ E("div", ee, [
59
+ y(e.$slots, "start", {}, void 0, !0),
60
+ s.value ? (t(), a(r(T), {
62
61
  key: 0,
63
62
  collection: s.value,
64
63
  layout: e.layout,
65
64
  parsedSpec: e.parsedSpec,
66
- server: c.value
67
- }, null, 8, ["collection", "layout", "parsedSpec", "server"])) : l("", !0),
68
- (b = (g = e.parsedSpec) == null ? void 0 : g.info) != null && b.title || (w = (C = e.parsedSpec) == null ? void 0 : C.info) != null && w.description ? (t(), a(r(Y), {
65
+ server: o.value
66
+ }, null, 8, ["collection", "layout", "parsedSpec", "server"])) : c("", !0),
67
+ (C = (b = e.document) == null ? void 0 : b.info) != null && C.title || (A = (w = e.document) == null ? void 0 : w.info) != null && A.description ? (t(), a(r(X), {
69
68
  key: 1,
70
- info: e.parsedSpec.info,
71
- parsedSpec: e.parsedSpec
69
+ document: e.document
72
70
  }, {
73
- [q.value]: V(() => [
74
- v(r(J), null, {
75
- default: V(() => {
76
- var n, o, d;
71
+ [q.value]: U(() => [
72
+ m(r(J), null, {
73
+ default: U(() => {
74
+ var n, l, d;
77
75
  return [
78
- A("div", {
76
+ E("div", {
79
77
  class: I(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
80
78
  }, [
81
- (o = (n = s.value) == null ? void 0 : n.servers) != null && o.length ? (t(), i("div", te, [
82
- v(r(Z), {
79
+ (l = (n = s.value) == null ? void 0 : n.servers) != null && l.length ? (t(), i("div", re, [
80
+ m(r(Y), {
83
81
  collection: s.value,
84
- server: c.value
82
+ server: o.value
85
83
  }, null, 8, ["collection", "server"])
86
- ])) : l("", !0),
87
- s.value && r(h) && Object.keys(r(N) ?? {}).length ? (t(), i("div", ae, [
88
- v(r(H), {
84
+ ])) : c("", !0),
85
+ s.value && r(g) && Object.keys(r(N) ?? {}).length ? (t(), i("div", se, [
86
+ m(r(H), {
89
87
  collection: s.value,
90
88
  envVariables: r(L),
91
89
  environment: r(j),
92
90
  layout: "reference",
93
- persistAuth: r(p).persistAuth,
91
+ persistAuth: r(u).persistAuth,
94
92
  selectedSecuritySchemeUids: ((d = s.value) == null ? void 0 : d.selectedSecuritySchemeUids) ?? [],
95
- server: c.value,
93
+ server: o.value,
96
94
  title: "Authentication",
97
- workspace: r(h)
95
+ workspace: r(g)
98
96
  }, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
99
- ])) : l("", !0),
100
- v(r(_), { class: "introduction-card-item scalar-reference-intro-clients" })
97
+ ])) : c("", !0),
98
+ m(r(Z), { class: "introduction-card-item scalar-reference-intro-clients" })
101
99
  ], 2)
102
100
  ];
103
101
  }),
@@ -105,47 +103,59 @@ const se = { class: "narrow-references-container" }, te = {
105
103
  })
106
104
  ]),
107
105
  _: 2
108
- }, 1032, ["info", "parsedSpec"])) : f(e.$slots, "empty-state", { key: 2 }, void 0, !0),
109
- e.parsedSpec.tags && s.value ? (t(), i(u, { key: 3 }, [
110
- e.parsedSpec["x-tagGroups"] ? (t(!0), i(u, { key: 0 }, O(e.parsedSpec["x-tagGroups"], (n) => (t(), a(r(E), {
106
+ }, 1032, ["document"])) : y(e.$slots, "empty-state", { key: 2 }, void 0, !0),
107
+ e.parsedSpec.tags && s.value ? (t(), i(v, { key: 3 }, [
108
+ e.parsedSpec["x-tagGroups"] ? (t(!0), i(v, { key: 0 }, O(e.parsedSpec["x-tagGroups"], (n) => (t(), a(r(S), {
111
109
  key: n.name,
112
110
  collection: s.value,
113
111
  layout: e.layout,
114
- server: c.value,
112
+ server: o.value,
115
113
  spec: e.parsedSpec,
116
- tags: n.tags.map((o) => {
114
+ tags: n.tags.map((l) => {
117
115
  var d;
118
- return (d = e.parsedSpec.tags) == null ? void 0 : d.find((z) => z.name === o);
119
- }).filter((o) => !!o)
120
- }, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (t(), a(r(E), {
116
+ return (d = e.parsedSpec.tags) == null ? void 0 : d.find((z) => z.name === l);
117
+ }).filter((l) => !!l)
118
+ }, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (t(), a(r(S), {
121
119
  key: 1,
122
120
  collection: s.value,
123
121
  layout: e.layout,
124
- schemas: r(S)(e.parsedSpec),
125
- server: c.value,
122
+ schemas: r(p)(e.parsedSpec),
123
+ server: o.value,
126
124
  spec: e.parsedSpec,
127
125
  tags: e.parsedSpec.tags
128
126
  }, null, 8, ["collection", "layout", "schemas", "server", "spec", "tags"]))
129
- ], 64)) : l("", !0),
130
- e.parsedSpec.webhooks ? (t(), a(r(x), {
127
+ ], 64)) : c("", !0),
128
+ (V = e.parsedSpec.webhooks) != null && V.length && s.value ? (t(), a(r(S), {
131
129
  key: 4,
132
- webhooks: e.parsedSpec.webhooks
133
- }, null, 8, ["webhooks"])) : l("", !0),
134
- r(T)(e.parsedSpec) && !r(M) ? (t(), i(u, { key: 5 }, [
135
- e.layout === "classic" ? (t(), a(r(ee), {
130
+ id: "webhooks",
131
+ collection: s.value,
132
+ layout: e.layout,
133
+ schemas: r(p)(e.parsedSpec),
134
+ server: o.value,
135
+ spec: e.parsedSpec,
136
+ tags: [
137
+ {
138
+ name: "Webhooks",
139
+ description: "",
140
+ operations: e.parsedSpec.webhooks
141
+ }
142
+ ]
143
+ }, null, 8, ["collection", "layout", "schemas", "server", "spec", "tags"])) : c("", !0),
144
+ r(Q)(e.parsedSpec) && !r(u).hideModels ? (t(), i(v, { key: 5 }, [
145
+ e.layout === "classic" ? (t(), a(r(_), {
136
146
  key: 0,
137
- schemas: r(S)(e.parsedSpec)
138
- }, null, 8, ["schemas"])) : (t(), a(r(re), {
147
+ schemas: r(p)(e.parsedSpec)
148
+ }, null, 8, ["schemas"])) : (t(), a(r(x), {
139
149
  key: 1,
140
- schemas: r(S)(e.parsedSpec)
150
+ schemas: r(p)(e.parsedSpec)
141
151
  }, null, 8, ["schemas"]))
142
- ], 64)) : l("", !0),
143
- f(e.$slots, "end", {}, void 0, !0)
152
+ ], 64)) : c("", !0),
153
+ y(e.$slots, "end", {}, void 0, !0)
144
154
  ])
145
155
  ], 64);
146
156
  };
147
157
  }
148
158
  });
149
159
  export {
150
- Ce as default
160
+ he as default
151
161
  };
@@ -1,8 +1,6 @@
1
1
  import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
- import type { Spec } from '@scalar/types/legacy';
3
2
  type __VLS_Props = {
4
- info: Partial<OpenAPIV3_1.InfoObject>;
5
- parsedSpec: Spec;
3
+ document: OpenAPIV3_1.Document;
6
4
  };
7
5
  declare function __VLS_template(): {
8
6
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAwBhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAA;IACrC,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;AAgCF,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AA2GA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAwBxD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;CAC/B,CAAC;AAiCF,iBAAS,cAAc;WA+KT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Introduction.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d1b2118d"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fa96ab44"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,108 +1,118 @@
1
- import { defineComponent as y, inject as I, computed as L, onMounted as O, createBlock as l, openBlock as a, unref as e, withCtx as t, createVNode as i, renderSlot as g, createElementVNode as S, createCommentVNode as s, createTextVNode as d, toDisplayString as f } from "vue";
2
- import { useConfig as V } from "../../../hooks/useConfig.js";
3
- import { useNavState as $ } from "../../../hooks/useNavState.js";
4
- import { DEFAULT_INTRODUCTION_SLUG as D } from "../../../hooks/useSidebar.js";
5
- import T from "../../../features/DownloadLink/DownloadLink.vue.js";
6
- import B from "./Description.vue.js";
7
- import { OPENAPI_VERSION_SYMBOL as E } from "../../../features/DownloadLink/openapi-version-symbol.js";
8
- import A from "../../Section/SectionContainer.vue.js";
9
- import H from "../../Section/Section.vue.js";
10
- import U from "../../Section/SectionContent.vue.js";
11
- import _ from "../../Badge/Badge.vue.js";
12
- import w from "../../Section/SectionHeader.vue.js";
13
- import M from "../../Section/SectionHeaderTag.vue.js";
14
- import P from "../../Section/SectionColumns.vue.js";
15
- import C from "../../Section/SectionColumn.vue.js";
16
- import N from "../../SpecificationExtension/SpecificationExtension.vue.js";
17
- const R = { class: "flex gap-1" }, b = { class: "sticky-cards" }, io = /* @__PURE__ */ y({
1
+ import { defineComponent as $, inject as D, computed as T, onMounted as _, createBlock as u, openBlock as l, unref as e, withCtx as t, createVNode as n, renderSlot as k, createElementVNode as y, createCommentVNode as m, createTextVNode as a, toDisplayString as f } from "vue";
2
+ import B from "../../../features/DownloadLink/DownloadLink.vue.js";
3
+ import { useConfig as E } from "../../../hooks/useConfig.js";
4
+ import { useNavState as A } from "../../../hooks/useNavState.js";
5
+ import H from "./Description.vue.js";
6
+ import { OPENAPI_VERSION_SYMBOL as U } from "../../../features/DownloadLink/openapi-version-symbol.js";
7
+ import w from "../../Section/SectionContainer.vue.js";
8
+ import M from "../../Section/Section.vue.js";
9
+ import { DEFAULT_INTRODUCTION_SLUG as P } from "../../../features/traverse-schema/helpers/traverse-description.js";
10
+ import R from "../../Section/SectionContent.vue.js";
11
+ import I from "../../Badge/Badge.vue.js";
12
+ import b from "../../Section/SectionHeader.vue.js";
13
+ import j from "../../Section/SectionHeaderTag.vue.js";
14
+ import F from "../../Section/SectionColumns.vue.js";
15
+ import L from "../../Section/SectionColumn.vue.js";
16
+ import O from "../../SpecificationExtension/SpecificationExtension.vue.js";
17
+ const G = { class: "flex gap-1" }, Y = { class: "sticky-cards" }, lo = /* @__PURE__ */ $({
18
18
  __name: "Introduction",
19
19
  props: {
20
- info: {},
21
- parsedSpec: {}
20
+ document: {}
22
21
  },
23
- setup(h) {
24
- const n = h, { getHeadingId: k } = $(), u = I(E), m = L(() => {
22
+ setup(i) {
23
+ const { getHeadingId: V } = A(), c = D(U), s = T(() => {
25
24
  var o, r;
26
- return typeof ((o = n.info) == null ? void 0 : o.version) == "string" ? n.info.version.toString().match(/^\d/) ? `v${n.info.version}` : n.info.version : typeof ((r = n.info) == null ? void 0 : r.version) == "number" ? `v${n.info.version}` : void 0;
27
- }), p = V();
28
- return O(() => {
25
+ return typeof ((o = i.document.info) == null ? void 0 : o.version) == "string" ? i.document.info.version.toString().match(/^\d/) ? `v${i.document.info.version}` : i.document.info.version : typeof ((r = i.document.info) == null ? void 0 : r.version) == "number" ? `v${i.document.info.version}` : void 0;
26
+ }), v = E();
27
+ return _(() => {
29
28
  var o, r;
30
- return (r = (o = p.value).onLoaded) == null ? void 0 : r.call(o);
31
- }), (o, r) => (a(), l(e(A), null, {
29
+ return (r = (o = v.value).onLoaded) == null ? void 0 : r.call(o);
30
+ }), (o, r) => (l(), u(e(w), null, {
32
31
  default: t(() => [
33
- i(e(H), {
32
+ n(e(M), {
34
33
  class: "introduction-section gap-12",
35
- id: e(k)({
36
- slug: e(D),
34
+ id: e(V)({
35
+ slug: e(P),
37
36
  depth: 1,
38
37
  value: "Introduction"
39
38
  })
40
39
  }, {
41
40
  default: t(() => {
42
- var c, v;
41
+ var p, g, S, C;
43
42
  return [
44
- i(e(U), {
45
- loading: e(p).isLoading ?? (!((c = o.info) != null && c.description) && !((v = o.info) != null && v.title))
43
+ n(e(R), {
44
+ loading: e(v).isLoading ?? (!((g = (p = o.document) == null ? void 0 : p.info) != null && g.description) && !((C = (S = o.document) == null ? void 0 : S.info) != null && C.title))
46
45
  }, {
47
- default: t(() => [
48
- S("div", R, [
49
- m.value ? (a(), l(e(_), { key: 0 }, {
50
- default: t(() => [
51
- d(f(m.value), 1)
52
- ]),
53
- _: 1
54
- })) : s("", !0),
55
- e(u) ? (a(), l(e(_), { key: 1 }, {
56
- default: t(() => [
57
- d("OAS " + f(e(u)), 1)
58
- ]),
59
- _: 1
60
- })) : s("", !0)
61
- ]),
62
- i(e(w), {
63
- loading: !o.info.title,
64
- tight: ""
65
- }, {
66
- default: t(() => [
67
- i(e(M), { level: 1 }, {
46
+ default: t(() => {
47
+ var N;
48
+ return [
49
+ y("div", G, [
50
+ s.value ? (l(), u(e(I), { key: 0 }, {
68
51
  default: t(() => [
69
- d(f(o.info.title), 1)
52
+ a(f(s.value), 1)
70
53
  ]),
71
54
  _: 1
72
- })
73
- ]),
74
- _: 1
75
- }, 8, ["loading"]),
76
- i(e(P), null, {
77
- default: t(() => [
78
- i(e(C), null, {
55
+ })) : m("", !0),
56
+ e(c) ? (l(), u(e(I), { key: 1 }, {
79
57
  default: t(() => [
80
- i(T, {
81
- title: o.info.title
82
- }, null, 8, ["title"]),
83
- i(B, {
84
- value: o.info.description
85
- }, null, 8, ["value"])
58
+ a("OAS " + f(e(c)), 1)
86
59
  ]),
87
60
  _: 1
88
- }),
89
- o.$slots.aside ? (a(), l(e(C), { key: 0 }, {
90
- default: t(() => [
91
- S("div", b, [
92
- g(o.$slots, "aside", {}, void 0, !0)
93
- ])
94
- ]),
95
- _: 3
96
- })) : s("", !0)
61
+ })) : m("", !0)
97
62
  ]),
98
- _: 3
99
- }),
100
- i(e(N), { value: o.parsedSpec }, null, 8, ["value"]),
101
- i(e(N), { value: o.info }, null, 8, ["value"])
102
- ]),
63
+ n(e(b), {
64
+ loading: !((N = o.document.info) != null && N.title),
65
+ tight: ""
66
+ }, {
67
+ default: t(() => [
68
+ n(e(j), { level: 1 }, {
69
+ default: t(() => {
70
+ var d;
71
+ return [
72
+ a(f((d = o.document.info) == null ? void 0 : d.title), 1)
73
+ ];
74
+ }),
75
+ _: 1
76
+ })
77
+ ]),
78
+ _: 1
79
+ }, 8, ["loading"]),
80
+ n(e(F), null, {
81
+ default: t(() => [
82
+ n(e(L), null, {
83
+ default: t(() => {
84
+ var d, h;
85
+ return [
86
+ n(B, {
87
+ title: (d = o.document.info) == null ? void 0 : d.title
88
+ }, null, 8, ["title"]),
89
+ n(H, {
90
+ value: (h = o.document.info) == null ? void 0 : h.description
91
+ }, null, 8, ["value"])
92
+ ];
93
+ }),
94
+ _: 1
95
+ }),
96
+ o.$slots.aside ? (l(), u(e(L), { key: 0 }, {
97
+ default: t(() => [
98
+ y("div", Y, [
99
+ k(o.$slots, "aside", {}, void 0, !0)
100
+ ])
101
+ ]),
102
+ _: 3
103
+ })) : m("", !0)
104
+ ]),
105
+ _: 3
106
+ }),
107
+ n(e(O), { value: o.document }, null, 8, ["value"]),
108
+ n(e(O), {
109
+ value: o.document.info
110
+ }, null, 8, ["value"])
111
+ ];
112
+ }),
103
113
  _: 3
104
114
  }, 8, ["loading"]),
105
- g(o.$slots, "after", {}, void 0, !0)
115
+ k(o.$slots, "after", {}, void 0, !0)
106
116
  ];
107
117
  }),
108
118
  _: 3
@@ -113,5 +123,5 @@ const R = { class: "flex gap-1" }, b = { class: "sticky-cards" }, io = /* @__PUR
113
123
  }
114
124
  });
115
125
  export {
116
- io as default
126
+ lo as default
117
127
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AA8QA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;gBAuCb,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;gBAHJ,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;YADP,QAAQ,GAAG,SAAS;;AAlBjC,wBA4UK"}
1
+ {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AA2QA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;gBAuCb,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;gBAHJ,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;YADP,QAAQ,GAAG,SAAS;;AAlBjC,wBAyUK"}