@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,62 +1,59 @@
1
- import { defineComponent as T, computed as N, createElementBlock as t, createCommentVNode as l, unref as e, openBlock as d, normalizeClass as O, withModifiers as g, createElementVNode as c, createVNode as y, withCtx as D, createTextVNode as b } from "vue";
2
- import V from "github-slugger";
3
- import v from "../../../../components/Badge/Badge.vue.js";
4
- import { useConfig as j } from "../../../../hooks/useConfig.js";
5
- import { downloadDocument as B } from "../../../../libs/download.js";
6
- const $ = /* @__PURE__ */ T({
1
+ import { defineComponent as D, computed as b, createElementBlock as t, createCommentVNode as l, unref as e, openBlock as d, normalizeClass as v, withModifiers as i, createElementVNode as m, createVNode as s, withCtx as p, createTextVNode as w } from "vue";
2
+ import k from "github-slugger";
3
+ import f from "../../../../components/Badge/Badge.vue.js";
4
+ import { useConfig as x } from "../../../../hooks/useConfig.js";
5
+ import { downloadDocument as C } from "../../../../libs/download.js";
6
+ const B = /* @__PURE__ */ D({
7
7
  __name: "DownloadLink",
8
8
  props: {
9
9
  title: {},
10
10
  getOriginalDocument: { type: Function }
11
11
  },
12
12
  setup(r) {
13
- const n = j(), k = new V(), x = N(() => k.slug(r.title ?? "")), u = (a) => {
14
- B(r.getOriginalDocument(), x.value, a);
13
+ const n = x(), g = new k(), c = b(() => g.slug(r.title ?? "")), u = (a) => {
14
+ C(r.getOriginalDocument(), c.value, a);
15
15
  };
16
- return (a, o) => {
17
- var i, m, s, p, w, f;
18
- return ((i = e(n)) == null ? void 0 : i.documentDownloadType) !== "none" ? (d(), t("div", {
16
+ return (a, o) => e(n)?.documentDownloadType !== "none" ? (d(), t("div", {
17
+ key: 0,
18
+ class: v(["download-container group", {
19
+ "download-both": e(n)?.documentDownloadType === "both"
20
+ }])
21
+ }, [
22
+ e(n)?.documentDownloadType === "json" || e(n)?.documentDownloadType === "both" ? (d(), t("button", {
19
23
  key: 0,
20
- class: O(["download-container group", {
21
- "download-both": ((m = e(n)) == null ? void 0 : m.documentDownloadType) === "both"
22
- }])
24
+ class: "download-button",
25
+ type: "button",
26
+ variant: "ghost",
27
+ onClick: o[0] || (o[0] = i((y) => u("json"), ["prevent"]))
23
28
  }, [
24
- ((s = e(n)) == null ? void 0 : s.documentDownloadType) === "json" || ((p = e(n)) == null ? void 0 : p.documentDownloadType) === "both" ? (d(), t("button", {
25
- key: 0,
26
- class: "download-button",
27
- type: "button",
28
- variant: "ghost",
29
- onClick: o[0] || (o[0] = g((C) => u("json"), ["prevent"]))
30
- }, [
31
- o[3] || (o[3] = c("span", null, " Download OpenAPI Document ", -1)),
32
- y(v, { class: "extension hidden group-hover:flex" }, {
33
- default: D(() => o[2] || (o[2] = [
34
- b("json")
35
- ])),
36
- _: 1,
37
- __: [2]
38
- })
39
- ])) : l("", !0),
40
- ((w = e(n)) == null ? void 0 : w.documentDownloadType) === "yaml" || ((f = e(n)) == null ? void 0 : f.documentDownloadType) === "both" ? (d(), t("button", {
41
- key: 1,
42
- class: "download-button",
43
- type: "button",
44
- variant: "ghost",
45
- onClick: o[1] || (o[1] = g((C) => u("yaml"), ["prevent"]))
46
- }, [
47
- o[5] || (o[5] = c("span", null, " Download OpenAPI Document ", -1)),
48
- y(v, { class: "extension hidden group-hover:flex" }, {
49
- default: D(() => o[4] || (o[4] = [
50
- b("yaml")
51
- ])),
52
- _: 1,
53
- __: [4]
54
- })
55
- ])) : l("", !0)
56
- ], 2)) : l("", !0);
57
- };
29
+ o[3] || (o[3] = m("span", null, " Download OpenAPI Document ", -1)),
30
+ s(f, { class: "extension hidden group-hover:flex" }, {
31
+ default: p(() => o[2] || (o[2] = [
32
+ w("json")
33
+ ])),
34
+ _: 1,
35
+ __: [2]
36
+ })
37
+ ])) : l("", !0),
38
+ e(n)?.documentDownloadType === "yaml" || e(n)?.documentDownloadType === "both" ? (d(), t("button", {
39
+ key: 1,
40
+ class: "download-button",
41
+ type: "button",
42
+ variant: "ghost",
43
+ onClick: o[1] || (o[1] = i((y) => u("yaml"), ["prevent"]))
44
+ }, [
45
+ o[5] || (o[5] = m("span", null, " Download OpenAPI Document ", -1)),
46
+ s(f, { class: "extension hidden group-hover:flex" }, {
47
+ default: p(() => o[4] || (o[4] = [
48
+ w("yaml")
49
+ ])),
50
+ _: 1,
51
+ __: [4]
52
+ })
53
+ ])) : l("", !0)
54
+ ], 2)) : l("", !0);
58
55
  }
59
56
  });
60
57
  export {
61
- $ as default
58
+ B as default
62
59
  };
@@ -1,5 +1,5 @@
1
1
  import o from "./InfoDescription.vue2.js";
2
- import "./InfoDescription.vue3.js";
2
+ /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7d7f7b21"]]);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import o from "./IntroductionCard.vue2.js";
2
- import "./IntroductionCard.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-b19be652"]]);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as o, renderSlot as r } from "vue";
2
- import "./IntroductionCardItem.vue2.js";
2
+ /* empty css */
3
3
  import n from "../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const c = {}, d = { class: "introduction-card-item" };
5
5
  function s(t, a) {
@@ -1,5 +1,5 @@
1
1
  import o from "./IntroductionLayout.vue2.js";
2
- import "./IntroductionLayout.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-1405b00e"]]);
5
5
  export {
@@ -1,18 +1,18 @@
1
- import { defineComponent as D, onMounted as S, createBlock as m, openBlock as u, unref as n, withCtx as i, createVNode as e, renderSlot as c, createElementVNode as p, createTextVNode as V, toDisplayString as y, createCommentVNode as C } from "vue";
2
- import $ from "./DownloadLink.vue.js";
3
- import k from "./InfoDescription.vue.js";
4
- import L from "./InfoLinks.vue.js";
5
- import h from "./InfoVersion.vue.js";
6
- import E from "./OpenApiVersion.vue.js";
7
- import N from "../../../../components/Section/SectionContainer.vue.js";
8
- import O from "../../../../components/Section/Section.vue.js";
9
- import B from "../../../../components/Section/SectionContent.vue.js";
10
- import w from "../../../../components/Section/SectionHeader.vue.js";
11
- import F from "../../../../components/Section/SectionHeaderTag.vue.js";
12
- import H from "../../../../components/Section/SectionColumns.vue.js";
13
- import g from "../../../../components/Section/SectionColumn.vue.js";
14
- import v from "../../../../features/specification-extension/SpecificationExtension.vue2.js";
15
- const I = { class: "flex gap-1.5" }, T = { class: "sticky-cards" }, Y = /* @__PURE__ */ D({
1
+ import { defineComponent as m, onMounted as u, createBlock as t, openBlock as r, unref as n, withCtx as i, createVNode as e, renderSlot as l, createElementVNode as a, createTextVNode as c, toDisplayString as p, createCommentVNode as g } from "vue";
2
+ import v from "./DownloadLink.vue.js";
3
+ import D from "./InfoDescription.vue.js";
4
+ import S from "./InfoLinks.vue.js";
5
+ import V from "./InfoVersion.vue.js";
6
+ import _ from "./OpenApiVersion.vue.js";
7
+ import y from "../../../../components/Section/SectionContainer.vue.js";
8
+ import C from "../../../../components/Section/Section.vue.js";
9
+ import $ from "../../../../components/Section/SectionContent.vue.js";
10
+ import k from "../../../../components/Section/SectionHeader.vue.js";
11
+ import L from "../../../../components/Section/SectionHeaderTag.vue.js";
12
+ import h from "../../../../components/Section/SectionColumns.vue.js";
13
+ import s from "../../../../components/Section/SectionColumn.vue.js";
14
+ import d from "../../../../features/specification-extension/SpecificationExtension.vue2.js";
15
+ const E = { class: "flex gap-1.5" }, N = { class: "sticky-cards" }, K = /* @__PURE__ */ m({
16
16
  __name: "IntroductionLayout",
17
17
  props: {
18
18
  oasVersion: {},
@@ -25,91 +25,76 @@ const I = { class: "flex gap-1.5" }, T = { class: "sticky-cards" }, Y = /* @__PU
25
25
  onLoaded: { type: Function },
26
26
  id: {}
27
27
  },
28
- setup(l) {
29
- return S(() => {
30
- var o;
31
- return (o = l.onLoaded) == null ? void 0 : o.call(l);
32
- }), (o, z) => (u(), m(n(N), null, {
28
+ setup(f) {
29
+ return u(() => f.onLoaded?.()), (o, O) => (r(), t(n(y), null, {
33
30
  default: i(() => [
34
- e(n(O), {
31
+ e(n(C), {
35
32
  id: o.id,
36
33
  class: "introduction-section z-1 gap-12"
37
34
  }, {
38
- default: i(() => {
39
- var r, a;
40
- return [
41
- e(n(B), {
42
- loading: o.isLoading ?? (!((r = o.info) != null && r.description) && !((a = o.info) != null && a.title))
43
- }, {
44
- default: i(() => {
45
- var s, d;
46
- return [
47
- p("div", I, [
48
- e(h, {
49
- version: (s = o.info) == null ? void 0 : s.version
50
- }, null, 8, ["version"]),
51
- e(E, { oasVersion: o.oasVersion }, null, 8, ["oasVersion"])
52
- ]),
53
- e(n(w), {
54
- loading: !((d = o.info) != null && d.title),
55
- tight: ""
56
- }, {
57
- links: i(() => [
58
- e(L, {
59
- externalDocs: o.externalDocs,
60
- info: o.info
61
- }, null, 8, ["externalDocs", "info"])
35
+ default: i(() => [
36
+ e(n($), {
37
+ loading: o.isLoading ?? (!o.info?.description && !o.info?.title)
38
+ }, {
39
+ default: i(() => [
40
+ a("div", E, [
41
+ e(V, {
42
+ version: o.info?.version
43
+ }, null, 8, ["version"]),
44
+ e(_, { oasVersion: o.oasVersion }, null, 8, ["oasVersion"])
45
+ ]),
46
+ e(n(k), {
47
+ loading: !o.info?.title,
48
+ tight: ""
49
+ }, {
50
+ links: i(() => [
51
+ e(S, {
52
+ externalDocs: o.externalDocs,
53
+ info: o.info
54
+ }, null, 8, ["externalDocs", "info"])
55
+ ]),
56
+ default: i(() => [
57
+ e(n(L), { level: 1 }, {
58
+ default: i(() => [
59
+ c(p(o.info?.title), 1)
62
60
  ]),
61
+ _: 1
62
+ })
63
+ ]),
64
+ _: 1
65
+ }, 8, ["loading"]),
66
+ e(n(h), null, {
67
+ default: i(() => [
68
+ e(n(s), null, {
63
69
  default: i(() => [
64
- e(n(F), { level: 1 }, {
65
- default: i(() => {
66
- var t;
67
- return [
68
- V(y((t = o.info) == null ? void 0 : t.title), 1)
69
- ];
70
- }),
71
- _: 1
72
- })
70
+ e(v, {
71
+ getOriginalDocument: o.getOriginalDocument,
72
+ title: o.info?.title
73
+ }, null, 8, ["getOriginalDocument", "title"]),
74
+ e(D, {
75
+ description: o.info?.description
76
+ }, null, 8, ["description"])
73
77
  ]),
74
78
  _: 1
75
- }, 8, ["loading"]),
76
- e(n(H), null, {
79
+ }),
80
+ o.$slots.aside ? (r(), t(n(s), { key: 0 }, {
77
81
  default: i(() => [
78
- e(n(g), null, {
79
- default: i(() => {
80
- var t, f;
81
- return [
82
- e($, {
83
- getOriginalDocument: o.getOriginalDocument,
84
- title: (t = o.info) == null ? void 0 : t.title
85
- }, null, 8, ["getOriginalDocument", "title"]),
86
- e(k, {
87
- description: (f = o.info) == null ? void 0 : f.description
88
- }, null, 8, ["description"])
89
- ];
90
- }),
91
- _: 1
92
- }),
93
- o.$slots.aside ? (u(), m(n(g), { key: 0 }, {
94
- default: i(() => [
95
- p("div", T, [
96
- c(o.$slots, "aside", {}, void 0, !0)
97
- ])
98
- ]),
99
- _: 3
100
- })) : C("", !0)
82
+ a("div", N, [
83
+ l(o.$slots, "aside", {}, void 0, !0)
84
+ ])
101
85
  ]),
102
86
  _: 3
103
- }),
104
- e(n(v), { value: o.documentExtensions }, null, 8, ["value"]),
105
- e(n(v), { value: o.infoExtensions }, null, 8, ["value"])
106
- ];
87
+ })) : g("", !0)
88
+ ]),
89
+ _: 3
107
90
  }),
108
- _: 3
109
- }, 8, ["loading"]),
110
- c(o.$slots, "after", {}, void 0, !0)
111
- ];
112
- }),
91
+ e(n(d), { value: o.documentExtensions }, null, 8, ["value"]),
92
+ e(n(d), { value: o.infoExtensions }, null, 8, ["value"])
93
+ ]),
94
+ _: 3
95
+ }, 8, ["loading"]),
96
+ l(o.$slots, "after", {}, void 0, !0)
97
+ ]),
113
98
  _: 3
114
99
  }, 8, ["id"])
115
100
  ]),
@@ -118,5 +103,5 @@ const I = { class: "flex gap-1.5" }, T = { class: "sticky-cards" }, Y = /* @__PU
118
103
  }
119
104
  });
120
105
  export {
121
- Y as default
106
+ K as default
122
107
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as u, mergeModels as c, useModel as p, computed as i, createBlock as f, openBlock as x, unref as o, withCtx as m, createVNode as d, createElementVNode as w, toDisplayString as V } from "vue";
2
- import { ScalarListbox as b, ScalarButton as g } from "@scalar/components";
3
- import { ScalarIconCaretDown as h } from "@scalar/icons";
4
- const v = { class: "min-w-0 flex-1 truncate" }, k = /* @__PURE__ */ u({
1
+ import { defineComponent as u, mergeModels as c, useModel as p, computed as n, createBlock as f, openBlock as x, unref as l, withCtx as r, createVNode as i, createElementVNode as v, toDisplayString as w } from "vue";
2
+ import { ScalarListbox as V, ScalarButton as b } from "@scalar/components";
3
+ import { ScalarIconCaretDown as g } from "@scalar/icons";
4
+ const h = { class: "min-w-0 flex-1 truncate" }, k = /* @__PURE__ */ u({
5
5
  __name: "ExamplePicker",
6
6
  props: /* @__PURE__ */ c({
7
7
  examples: { default: () => ({}) }
@@ -12,40 +12,37 @@ const v = { class: "min-w-0 flex-1 truncate" }, k = /* @__PURE__ */ u({
12
12
  modelModifiers: {}
13
13
  }),
14
14
  emits: ["update:modelValue"],
15
- setup(s) {
16
- const n = p(s, "modelValue"), r = i(
17
- () => Object.entries(s.examples).map(([e, t]) => ({
15
+ setup(o) {
16
+ const s = p(o, "modelValue"), m = n(
17
+ () => Object.entries(o.examples).map(([e, t]) => ({
18
18
  id: e,
19
- label: (t == null ? void 0 : t.summary) ?? e
19
+ label: t?.summary ?? e
20
20
  }))
21
- ), l = i({
22
- get: () => r.value.find(({ id: e }) => e === n.value),
23
- set: (e) => n.value = (e == null ? void 0 : e.id) ?? ""
21
+ ), a = n({
22
+ get: () => m.value.find(({ id: e }) => e === s.value),
23
+ set: (e) => s.value = e?.id ?? ""
24
24
  });
25
- return (e, t) => (x(), f(o(b), {
26
- modelValue: l.value,
27
- "onUpdate:modelValue": t[0] || (t[0] = (a) => l.value = a),
25
+ return (e, t) => (x(), f(l(V), {
26
+ modelValue: a.value,
27
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => a.value = d),
28
28
  class: "w-fit min-w-32",
29
- options: r.value,
29
+ options: m.value,
30
30
  placement: "bottom-start"
31
31
  }, {
32
- default: m(() => [
33
- d(o(g), {
32
+ default: r(() => [
33
+ i(l(b), {
34
34
  class: "text-c-2 hover:text-c-1 flex h-full w-fit min-w-0 gap-1.5 px-1.5 py-0.75 text-base font-normal",
35
35
  "data-testid": "example-picker",
36
36
  fullWidth: "",
37
37
  variant: "ghost"
38
38
  }, {
39
- default: m(() => {
40
- var a;
41
- return [
42
- w("div", v, V(((a = l.value) == null ? void 0 : a.label) ?? "Select an example"), 1),
43
- d(o(h), {
44
- class: "ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100",
45
- weight: "bold"
46
- })
47
- ];
48
- }),
39
+ default: r(() => [
40
+ v("div", h, w(a.value?.label ?? "Select an example"), 1),
41
+ i(l(g), {
42
+ class: "ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100",
43
+ weight: "bold"
44
+ })
45
+ ]),
49
46
  _: 1
50
47
  })
51
48
  ]),
@@ -1,5 +1,5 @@
1
1
  import o from "./RequestExample.vue2.js";
2
- import "./RequestExample.vue3.js";
2
+ /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d7424c4"]]);
5
5
  export {