@scalar/api-reference 1.35.4 → 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 +36 -0
  2. package/dist/browser/standalone.js +18154 -18461
  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 +30 -34
  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 +19 -19
  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,138 +1,135 @@
1
- import { objectKeys as y } from "@scalar/helpers/object/object-keys";
2
- import { getResolvedRef as s } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
- import { isArraySchema as m } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
4
- const a = (e, f) => {
5
- var i;
6
- if (!((i = e == null ? void 0 : e.allOf) != null && i.length) || !Array.isArray(e.allOf))
1
+ import { objectKeys as m } from "@scalar/helpers/object/object-keys";
2
+ import { getResolvedRef as p } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { isArraySchema as O } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
4
+ const l = (e, f) => {
5
+ if (!e?.allOf?.length || !Array.isArray(e.allOf))
7
6
  return f || {};
8
- const t = {}, { allOf: n, ...r } = e;
7
+ const s = {}, { allOf: r, ...i } = e;
9
8
  for (const o of e.allOf) {
10
9
  if (!o || typeof o != "object")
11
10
  continue;
12
- const p = s(o);
13
- if (p.allOf) {
14
- const l = a(p);
15
- O(t, l);
11
+ const t = p(o);
12
+ if (t.allOf) {
13
+ const n = l(t);
14
+ c(s, n);
16
15
  continue;
17
16
  }
18
- O(t, p);
17
+ c(s, t);
19
18
  }
20
- if (Object.keys(r).length > 0 && O(t, r, !0), f && typeof f == "object")
19
+ if (Object.keys(i).length > 0 && c(s, i, !0), f && typeof f == "object")
21
20
  if (f.allOf) {
22
- const o = a(f);
23
- O(t, o, !0);
21
+ const o = l(f);
22
+ c(s, o, !0);
24
23
  } else
25
- O(t, f, !0);
26
- return t;
27
- }, O = (e, f, t = !1) => {
28
- var r;
29
- const n = y(f);
30
- if (n.length !== 0)
31
- for (const i of n) {
32
- const o = s(f[i]);
24
+ c(s, f, !0);
25
+ return s;
26
+ }, c = (e, f, s = !1) => {
27
+ const r = m(f);
28
+ if (r.length !== 0)
29
+ for (const i of r) {
30
+ const o = p(f[i]);
33
31
  if (o !== void 0)
34
32
  if (i === "required")
35
- Array.isArray(o) && o.length > 0 && ((r = e.required) != null && r.length ? e.required = [.../* @__PURE__ */ new Set([...e.required, ...o])] : e.required = o.slice());
33
+ Array.isArray(o) && o.length > 0 && (e.required?.length ? e.required = [.../* @__PURE__ */ new Set([...e.required, ...o])] : e.required = o.slice());
36
34
  else if (i === "properties")
37
- o && typeof o == "object" && (e.properties || (e.properties = {}), c(e.properties, o));
35
+ o && typeof o == "object" && (e.properties || (e.properties = {}), a(e.properties, o));
38
36
  else if (i === "items") {
39
- const p = s(o);
40
- if (p)
41
- if (m(f))
42
- if (e.items || (e.items = {}), p.allOf) {
43
- const l = a(p);
44
- Object.assign(e.items, l);
37
+ const t = p(o);
38
+ if (t)
39
+ if (O(f))
40
+ if (e.items || (e.items = {}), t.allOf) {
41
+ const n = l(t);
42
+ Object.assign(e.items, n);
45
43
  } else
46
- d(s(e.items), p);
47
- else if (p.allOf) {
48
- const l = a(p);
49
- "properties" in l && ("properties" in e || (e.properties = {}), "properties" in e && c(e.properties, l.properties));
50
- } else "items" in e || (e.items = p);
44
+ y(p(e.items), t);
45
+ else if (t.allOf) {
46
+ const n = l(t);
47
+ "properties" in n && ("properties" in e || (e.properties = {}), "properties" in e && a(e.properties, n.properties));
48
+ } else "items" in e || (e.items = t);
51
49
  } else if (i === "enum")
52
50
  Array.isArray(o) && o.length > 0 && (e.enum = [.../* @__PURE__ */ new Set([...e.enum || [], ...o])]);
53
51
  else if (i === "oneOf" || i === "anyOf") {
54
52
  if (Array.isArray(o)) {
55
53
  "properties" in e || (e.properties = {});
56
- for (const p of o) {
57
- const l = s(p);
58
- l.properties && "properties" in e && c(e.properties, l.properties);
54
+ for (const t of o) {
55
+ const n = p(t);
56
+ n.properties && "properties" in e && a(e.properties, n.properties);
59
57
  }
60
58
  }
61
59
  } else {
62
60
  if (i === "allOf")
63
61
  continue;
64
- (t || e[i] === void 0) && (e[i] = o);
62
+ (s || e[i] === void 0) && (e[i] = o);
65
63
  }
66
64
  }
67
- }, c = (e, f) => {
68
- var n;
69
- const t = Object.keys(f ?? {});
70
- if (!(!f || !e || t.length === 0))
71
- for (const r of t) {
72
- const i = s(f[r]);
65
+ }, a = (e, f) => {
66
+ const s = Object.keys(f ?? {});
67
+ if (!(!f || !e || s.length === 0))
68
+ for (const r of s) {
69
+ const i = p(f[r]);
73
70
  if (!i || typeof i != "object") {
74
71
  e[r] = i;
75
72
  continue;
76
73
  }
77
74
  if (!e[r]) {
78
- i.allOf ? e[r] = a(i) : "type" in i && i.type === "array" && ((n = s(i.items)) != null && n.allOf) ? e[r] = {
75
+ i.allOf ? e[r] = l(i) : "type" in i && i.type === "array" && p(i.items)?.allOf ? e[r] = {
79
76
  ...i,
80
- items: a(s(i.items))
77
+ items: l(p(i.items))
81
78
  } : e[r] = f[r];
82
79
  continue;
83
80
  }
84
- const o = s(e[r]);
81
+ const o = p(e[r]);
85
82
  if (i.allOf)
86
- e[r] = a({ allOf: [o, ...i.allOf] });
87
- else if (m(i) && m(o) && i.items) {
88
- const p = s(o.items);
83
+ e[r] = l({ allOf: [o, ...i.allOf] });
84
+ else if (O(i) && O(o) && i.items) {
85
+ const t = p(o.items);
89
86
  e[r] = {
90
87
  ...o,
91
88
  type: "array",
92
- items: p ? h(p, s(i.items)) : s(i.items)
89
+ items: t ? h(t, p(i.items)) : p(i.items)
93
90
  };
94
91
  } else if ("properties" in o && "properties" in i) {
95
- const p = { ...o, ...i };
96
- p.properties = { ...o.properties }, c(p.properties, i.properties), e[r] = p;
92
+ const t = { ...o, ...i };
93
+ t.properties = { ...o.properties }, a(t.properties, i.properties), e[r] = t;
97
94
  } else
98
95
  e[r] = { ...i, ...o };
99
96
  }
100
- }, d = (e, f) => {
97
+ }, y = (e, f) => {
101
98
  if (f.allOf || e.allOf) {
102
- const t = [];
99
+ const s = [];
103
100
  if (e.allOf)
104
- for (const r of e.allOf)
105
- t.push(s(r));
101
+ for (const i of e.allOf)
102
+ s.push(p(i));
106
103
  else
107
- t.push(e);
104
+ s.push(e);
108
105
  if (f.allOf)
109
- for (const r of f.allOf)
110
- t.push(s(r));
106
+ for (const i of f.allOf)
107
+ s.push(p(i));
111
108
  else
112
- t.push(f);
113
- const n = a({ allOf: t });
114
- Object.assign(e, n);
109
+ s.push(f);
110
+ const r = l({ allOf: s });
111
+ Object.assign(e, r);
115
112
  return;
116
113
  }
117
- Object.assign(e, f), "properties" in e && "properties" in f && c(e.properties, f.properties);
114
+ Object.assign(e, f), "properties" in e && "properties" in f && a(e.properties, f.properties);
118
115
  }, h = (e, f) => {
119
116
  if (e.allOf || f.allOf) {
120
- const n = [];
117
+ const r = [];
121
118
  if (e.allOf)
122
- for (const r of e.allOf)
123
- n.push(s(r));
119
+ for (const i of e.allOf)
120
+ r.push(p(i));
124
121
  else
125
- n.push(e);
122
+ r.push(e);
126
123
  if (f.allOf)
127
- for (const r of f.allOf)
128
- n.push(s(r));
124
+ for (const i of f.allOf)
125
+ r.push(p(i));
129
126
  else
130
- n.push(f);
131
- return a({ allOf: n });
127
+ r.push(f);
128
+ return l({ allOf: r });
132
129
  }
133
- const t = { ...e, ...f };
134
- return "properties" in e && "properties" in f && (t.properties = { ...e.properties }, c(t.properties, f.properties)), t;
130
+ const s = { ...e, ...f };
131
+ return "properties" in e && "properties" in f && (s.properties = { ...e.properties }, a(s.properties, f.properties)), s;
135
132
  };
136
133
  export {
137
- a as mergeAllOfSchemas
134
+ l as mergeAllOfSchemas
138
135
  };
@@ -1,32 +1,31 @@
1
1
  import { getResolvedRef as h } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
- import { compositions as b } from "./schema-composition.js";
3
- function P(t) {
2
+ import { compositions as d } from "./schema-composition.js";
3
+ function N(t) {
4
4
  if (!t || typeof t != "object")
5
5
  return t;
6
- const r = b.find((e) => e in t && e !== "not");
6
+ const r = d.find((e) => e in t && e !== "not");
7
7
  if (!r)
8
8
  return { ...t };
9
9
  const i = t[r];
10
10
  if (!Array.isArray(i))
11
11
  return { ...t };
12
- const { [r]: S, nullable: m, ...n } = t, a = Object.keys(n).length > 0, { filteredSchemas: o, hasNullSchema: p } = i.reduce(
12
+ const { [r]: b, nullable: u, ...n } = t, m = Object.keys(n).length > 0, { filteredSchemas: o, hasNullSchema: a } = i.reduce(
13
13
  (e, l) => {
14
14
  const s = h(l);
15
15
  return "type" in s && s.type === "null" ? e.hasNullSchema = !0 : e.filteredSchemas.push(s), e;
16
16
  },
17
17
  { filteredSchemas: [], hasNullSchema: !1 }
18
- ), c = p || m === !0;
18
+ ), c = a || u === !0;
19
19
  if (o.length === 1) {
20
20
  const e = { ...n, ...o[0] };
21
21
  return c && (e.nullable = !0), e;
22
22
  }
23
- if ((r === "oneOf" || r === "anyOf") && (a || o.some((e) => e.allOf))) {
23
+ if ((r === "oneOf" || r === "anyOf") && (m || o.some((e) => e.allOf))) {
24
24
  const e = o.map((s) => {
25
- var u;
26
25
  const f = h(s);
27
- if (((u = f.allOf) == null ? void 0 : u.length) === 1) {
28
- const { allOf: g, ...d } = f;
29
- return { ...n, ...d, ...h(g[0]) };
26
+ if (f.allOf?.length === 1) {
27
+ const { allOf: p, ...g } = f;
28
+ return { ...n, ...g, ...h(p[0]) };
30
29
  }
31
30
  return { ...n, ...f };
32
31
  }), l = { [r]: e };
@@ -39,5 +38,5 @@ function P(t) {
39
38
  return { ...t };
40
39
  }
41
40
  export {
42
- P as optimizeValueForDisplay
41
+ N as optimizeValueForDisplay
43
42
  };
@@ -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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-56f55c2b"]]);
5
5
  export {
@@ -1,51 +1,48 @@
1
- import { defineComponent as i, createBlock as n, openBlock as l, unref as e, withCtx as t, renderSlot as s, createVNode as o, createTextVNode as c, toDisplayString as d } from "vue";
2
- import { ScalarMarkdown as m } from "@scalar/components";
3
- import p from "../../Section/SectionContainerAccordion.vue.js";
4
- import f from "../../Section/SectionHeader.vue.js";
5
- import u from "../../Anchor/Anchor.vue.js";
6
- import g from "../../Section/SectionHeaderTag.vue.js";
7
- const B = /* @__PURE__ */ i({
1
+ import { defineComponent as r, createBlock as i, openBlock as n, unref as e, withCtx as t, renderSlot as l, createVNode as o, createTextVNode as s, toDisplayString as c } from "vue";
2
+ import { ScalarMarkdown as d } from "@scalar/components";
3
+ import m from "../../Section/SectionContainerAccordion.vue.js";
4
+ import p from "../../Section/SectionHeader.vue.js";
5
+ import f from "../../Anchor/Anchor.vue.js";
6
+ import u from "../../Section/SectionHeaderTag.vue.js";
7
+ const y = /* @__PURE__ */ r({
8
8
  __name: "ClassicLayout",
9
9
  props: {
10
10
  tag: {}
11
11
  },
12
- setup(_) {
13
- return (a, S) => (l(), n(e(p), { class: "tag-section" }, {
14
- title: t(() => {
15
- var r;
16
- return [
17
- o(e(f), { class: "tag-name" }, {
18
- default: t(() => [
19
- o(e(u), {
20
- id: a.tag.id
21
- }, {
22
- default: t(() => [
23
- o(e(g), { level: 2 }, {
24
- default: t(() => [
25
- c(d(a.tag.title), 1)
26
- ]),
27
- _: 1
28
- })
29
- ]),
30
- _: 1
31
- }, 8, ["id"])
32
- ]),
33
- _: 1
34
- }),
35
- o(e(m), {
36
- class: "tag-description",
37
- value: (r = a.tag.tag) == null ? void 0 : r.description,
38
- withImages: ""
39
- }, null, 8, ["value"])
40
- ];
41
- }),
12
+ setup(g) {
13
+ return (a, _) => (n(), i(e(m), { class: "tag-section" }, {
14
+ title: t(() => [
15
+ o(e(p), { class: "tag-name" }, {
16
+ default: t(() => [
17
+ o(e(f), {
18
+ id: a.tag.id
19
+ }, {
20
+ default: t(() => [
21
+ o(e(u), { level: 2 }, {
22
+ default: t(() => [
23
+ s(c(a.tag.title), 1)
24
+ ]),
25
+ _: 1
26
+ })
27
+ ]),
28
+ _: 1
29
+ }, 8, ["id"])
30
+ ]),
31
+ _: 1
32
+ }),
33
+ o(e(d), {
34
+ class: "tag-description",
35
+ value: a.tag.tag?.description,
36
+ withImages: ""
37
+ }, null, 8, ["value"])
38
+ ]),
42
39
  default: t(() => [
43
- s(a.$slots, "default", {}, void 0, !0)
40
+ l(a.$slots, "default", {}, void 0, !0)
44
41
  ]),
45
42
  _: 3
46
43
  }));
47
44
  }
48
45
  });
49
46
  export {
50
- B as default
47
+ y as default
51
48
  };
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-91405c72"]]);
5
5
  export {
@@ -1,63 +1,59 @@
1
- import { defineComponent as y, ref as m, useId as C, computed as T, createBlock as l, openBlock as o, unref as t, withCtx as u, createVNode as k, createElementBlock as b, createCommentVNode as s, renderSlot as S, nextTick as B } from "vue";
2
- import v from "../../ShowMoreButton.vue.js";
3
- import { useNavState as I } from "../../../hooks/useNavState.js";
4
- import O from "./TagSection.vue.js";
5
- import { useSidebar as $ } from "../../../features/sidebar/hooks/useSidebar.js";
6
- import w from "../../Section/SectionContainer.vue.js";
7
- import R from "../../Lazy/Lazy.vue2.js";
8
- const E = /* @__PURE__ */ y({
1
+ import { defineComponent as h, ref as f, useId as y, computed as C, createBlock as i, openBlock as a, unref as t, withCtx as m, createVNode as T, createElementBlock as k, createCommentVNode as l, renderSlot as b, nextTick as S } from "vue";
2
+ import B from "../../ShowMoreButton.vue.js";
3
+ import { useNavState as v } from "../../../hooks/useNavState.js";
4
+ import I from "./TagSection.vue.js";
5
+ import { useSidebar as O } from "../../../features/sidebar/hooks/useSidebar.js";
6
+ import $ from "../../Section/SectionContainer.vue.js";
7
+ import w from "../../Lazy/Lazy.vue2.js";
8
+ const E = /* @__PURE__ */ h({
9
9
  __name: "ModernLayout",
10
10
  props: {
11
11
  tag: {},
12
12
  moreThanOneTag: { type: Boolean }
13
13
  },
14
- setup(n) {
15
- const c = m(), d = m(), f = C(), { collapsedSidebarItems: g } = $(), { hash: r } = I(), p = T(
16
- () => {
17
- var e, a;
18
- return n.moreThanOneTag || ((e = n.tag) == null ? void 0 : e.title) !== "default" || ((a = n.tag) == null ? void 0 : a.tag.description) !== "";
19
- }
14
+ setup(o) {
15
+ const u = f(), s = f(), d = y(), { collapsedSidebarItems: c } = O(), { hash: n } = v(), g = C(
16
+ () => o.moreThanOneTag || o.tag?.title !== "default" || o.tag?.tag.description !== ""
20
17
  );
21
- async function h() {
22
- var e, a;
23
- await B(), (a = (e = d.value) == null ? void 0 : e.querySelector("button")) == null || a.focus();
18
+ async function p() {
19
+ await S(), s.value?.querySelector("button")?.focus();
24
20
  }
25
- const i = (e) => !g[e];
26
- return (e, a) => (o(), l(t(w), {
21
+ const r = (e) => !c[e];
22
+ return (e, R) => (a(), i(t($), {
27
23
  ref_key: "sectionContainerRef",
28
- ref: c,
29
- "aria-labelledby": t(f),
24
+ ref: u,
25
+ "aria-labelledby": t(d),
30
26
  class: "tag-section-container",
31
27
  role: "region"
32
28
  }, {
33
- default: u(() => [
34
- k(t(R), {
29
+ default: m(() => [
30
+ T(t(w), {
35
31
  id: `modern-tag-${e.tag.id}`,
36
- isLazy: !!t(r) && t(r) !== e.tag.id && t(r).startsWith(e.tag.id)
32
+ isLazy: !!t(n) && t(n) !== e.tag.id && t(n).startsWith(e.tag.id)
37
33
  }, {
38
- default: u(() => [
39
- p.value ? (o(), l(O, {
34
+ default: m(() => [
35
+ g.value ? (a(), i(I, {
40
36
  key: 0,
41
- headerId: t(f),
42
- isCollapsed: i(e.tag.id),
37
+ headerId: t(d),
38
+ isCollapsed: r(e.tag.id),
43
39
  tag: e.tag
44
- }, null, 8, ["headerId", "isCollapsed", "tag"])) : s("", !0),
45
- i(e.tag.id) && e.moreThanOneTag ? (o(), l(v, {
40
+ }, null, 8, ["headerId", "isCollapsed", "tag"])) : l("", !0),
41
+ r(e.tag.id) && e.moreThanOneTag ? (a(), i(B, {
46
42
  key: 1,
47
43
  id: e.tag.id,
48
44
  "aria-label": `Show all ${e.tag.title} endpoints`,
49
- onClick: h
50
- }, null, 8, ["id", "aria-label"])) : s("", !0)
45
+ onClick: p
46
+ }, null, 8, ["id", "aria-label"])) : l("", !0)
51
47
  ]),
52
48
  _: 1
53
49
  }, 8, ["id", "isLazy"]),
54
- i(e.tag.id) && e.moreThanOneTag ? s("", !0) : (o(), b("div", {
50
+ r(e.tag.id) && e.moreThanOneTag ? l("", !0) : (a(), k("div", {
55
51
  key: 0,
56
52
  ref_key: "contentsRef",
57
- ref: d,
53
+ ref: s,
58
54
  class: "contents"
59
55
  }, [
60
- S(e.$slots, "default", {}, void 0, !0)
56
+ b(e.$slots, "default", {}, void 0, !0)
61
57
  ], 512))
62
58
  ]),
63
59
  _: 3