@scalar/api-reference 1.28.33 → 1.29.1

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 (227) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/browser/standalone.js +12818 -13331
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  5. package/dist/components/Anchor/Anchor.vue.js +2 -2
  6. package/dist/components/Anchor/Anchor.vue2.js +24 -22
  7. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  10. package/dist/components/ApiReferenceLayout.vue2.js +50 -50
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  13. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
  14. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +1 -1
  15. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -1
  16. package/dist/components/Content/Content.vue.js +2 -2
  17. package/dist/components/Content/Content.vue2.js +31 -32
  18. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  19. package/dist/components/Content/Introduction/Introduction.vue2.js +21 -21
  20. package/dist/components/Content/Lazy/Loading.vue.js +22 -22
  21. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/Models.vue.js +2 -2
  23. package/dist/components/Content/Models/Models.vue2.js +17 -17
  24. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
  26. package/dist/components/Content/Models/ModelsAccordion.vue2.js +14 -14
  27. package/dist/components/Content/Schema/Schema.preview.d.ts +98 -15
  28. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  29. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  31. package/dist/components/Content/Schema/Schema.vue2.js +2 -1
  32. package/dist/components/Content/Schema/{SchemaDiscriminator.vue.d.ts → SchemaComposition.vue.d.ts} +3 -2
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -0
  34. package/dist/components/Content/Schema/SchemaComposition.vue.js +187 -0
  35. package/dist/components/Content/Schema/SchemaComposition.vue2.js +4 -0
  36. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
  37. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  39. package/dist/components/Content/Schema/SchemaProperty.vue2.js +31 -30
  40. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +0 -1
  41. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +3 -3
  43. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +8 -9
  44. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  45. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  46. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +165 -146
  47. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +1 -1
  48. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  49. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +50 -40
  50. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts +3 -2
  51. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
  52. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +13 -13
  53. package/dist/components/Content/Schema/helpers/schema-composition.d.ts +12 -0
  54. package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -0
  55. package/dist/components/Content/Schema/helpers/schema-composition.js +8 -0
  56. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +4 -0
  57. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +1 -0
  58. package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
  59. package/dist/components/Content/Tag/OperationsListItem.vue2.js +1 -1
  60. package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
  61. package/dist/components/Content/Tag/TagAccordion.vue2.js +10 -10
  62. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  63. package/dist/components/Content/Tag/TagList.vue.js +8 -8
  64. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  65. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  66. package/dist/components/Content/Tag/TagSection.vue2.js +8 -8
  67. package/dist/components/GettingStarted.vue.d.ts +2 -2
  68. package/dist/components/Layouts/Layouts.vue.d.ts +3 -0
  69. package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
  70. package/dist/components/Layouts/Layouts.vue.js +14 -23
  71. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  72. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  73. package/dist/components/Layouts/ModernLayout.vue2.js +51 -45
  74. package/dist/components/MobileHeader.vue.js +3 -3
  75. package/dist/components/Section/CompactSection.vue.js +2 -2
  76. package/dist/components/Section/CompactSection.vue2.js +4 -4
  77. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  78. package/dist/components/Section/Section.vue.js +1 -1
  79. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  80. package/dist/components/ShowMoreButton.vue.js +2 -2
  81. package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -1
  82. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  83. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  84. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  85. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  86. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  87. package/dist/components/Sidebar/SidebarElement.vue2.js +6 -6
  88. package/dist/components/SingleApiReference.vue.d.ts +1 -0
  89. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  90. package/dist/components/SingleApiReference.vue.js +25 -22
  91. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +1 -1
  92. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  93. package/dist/features/ApiClientModal/ApiClientModal.vue.js +3 -3
  94. package/dist/features/ApiClientModal/index.d.ts +1 -1
  95. package/dist/features/ApiClientModal/index.d.ts.map +1 -1
  96. package/dist/features/ApiClientModal/useApiClient.d.ts +186 -146
  97. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  98. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  99. package/dist/features/BaseUrl/BaseUrl.vue.js +11 -10
  100. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  101. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  102. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  103. package/dist/features/DownloadLink/DownloadLink.vue2.js +17 -17
  104. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  105. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  106. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
  107. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/Webhooks.vue.js +2 -2
  109. package/dist/features/Operation/Webhooks.vue2.js +13 -13
  110. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  111. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  112. package/dist/features/Operation/components/ParameterListItem.vue2.js +18 -18
  113. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  114. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  115. package/dist/features/Operation/components/RequestBody.vue2.js +38 -32
  116. package/dist/features/Operation/hooks/useResponses.d.ts +1 -0
  117. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  118. package/dist/features/Operation/hooks/useResponses.js +13 -12
  119. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  120. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  121. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +1 -1
  122. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  123. package/dist/features/Operation/layouts/ModernLayout.vue2.js +1 -1
  124. package/dist/features/Search/SearchButton.vue.js +2 -2
  125. package/dist/features/Search/SearchButton.vue2.js +1 -1
  126. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  127. package/dist/features/Search/SearchModal.vue.js +2 -2
  128. package/dist/features/Search/SearchModal.vue2.js +1 -1
  129. package/dist/features/Search/useSearchIndex.d.ts +1 -1
  130. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  131. package/dist/features/Search/useSearchIndex.js +20 -21
  132. package/dist/helpers/{isMacOs.d.ts → is-mac-os.d.ts} +1 -1
  133. package/dist/helpers/is-mac-os.d.ts.map +1 -0
  134. package/dist/helpers/parse.d.ts.map +1 -1
  135. package/dist/helpers/parse.js +1 -1
  136. package/dist/helpers/{scrollToId.d.ts → scroll-to-id.d.ts} +1 -1
  137. package/dist/helpers/scroll-to-id.d.ts.map +1 -0
  138. package/dist/helpers/sleep.d.ts +0 -2
  139. package/dist/helpers/sleep.d.ts.map +1 -1
  140. package/dist/hooks/useNavState.d.ts.map +1 -1
  141. package/dist/hooks/useNavState.js +28 -28
  142. package/dist/hooks/useReactiveSpec.js +1 -1
  143. package/dist/hooks/useSidebar.d.ts.map +1 -1
  144. package/dist/hooks/useSidebar.js +45 -49
  145. package/dist/index.d.ts +3 -3
  146. package/dist/index.d.ts.map +1 -1
  147. package/dist/index.js +44 -43
  148. package/dist/legacy/fixtures/index.d.ts +1 -1
  149. package/dist/legacy/fixtures/index.d.ts.map +1 -1
  150. package/dist/legacy/helpers/index.d.ts +1 -1
  151. package/dist/legacy/helpers/index.d.ts.map +1 -1
  152. package/dist/libs/download.d.ts +9 -0
  153. package/dist/libs/download.d.ts.map +1 -0
  154. package/dist/libs/download.js +19 -0
  155. package/dist/{helpers/getLowestHeadingLevel.d.ts → libs/markdown.d.ts} +5 -1
  156. package/dist/libs/markdown.d.ts.map +1 -0
  157. package/dist/libs/markdown.js +18 -0
  158. package/dist/libs/openapi.d.ts +56 -0
  159. package/dist/libs/openapi.d.ts.map +1 -0
  160. package/dist/libs/openapi.js +102 -0
  161. package/dist/style.css +1 -1
  162. package/dist/types.d.ts +1 -45
  163. package/dist/types.d.ts.map +1 -1
  164. package/package.json +22 -27
  165. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
  166. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -7
  167. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -167
  168. package/dist/esm.js +0 -34
  169. package/dist/helpers/createEmptySpecification.d.ts +0 -8
  170. package/dist/helpers/createEmptySpecification.d.ts.map +0 -1
  171. package/dist/helpers/createEmptySpecification.js +0 -27
  172. package/dist/helpers/deepMerge.d.ts +0 -5
  173. package/dist/helpers/deepMerge.d.ts.map +0 -1
  174. package/dist/helpers/deepMerge.js +0 -8
  175. package/dist/helpers/generateParameters.d.ts +0 -6
  176. package/dist/helpers/generateParameters.d.ts.map +0 -1
  177. package/dist/helpers/get-request.d.ts +0 -59
  178. package/dist/helpers/get-request.d.ts.map +0 -1
  179. package/dist/helpers/getHeadingsFromMarkdown.d.ts +0 -6
  180. package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +0 -1
  181. package/dist/helpers/getHeadingsFromMarkdown.js +0 -13
  182. package/dist/helpers/getLowestHeadingLevel.d.ts.map +0 -1
  183. package/dist/helpers/getLowestHeadingLevel.js +0 -7
  184. package/dist/helpers/getModels.d.ts +0 -7
  185. package/dist/helpers/getModels.d.ts.map +0 -1
  186. package/dist/helpers/getModels.js +0 -22
  187. package/dist/helpers/getVariableNames.d.ts +0 -5
  188. package/dist/helpers/getVariableNames.d.ts.map +0 -1
  189. package/dist/helpers/hasModels.d.ts +0 -3
  190. package/dist/helpers/hasModels.d.ts.map +0 -1
  191. package/dist/helpers/hasModels.js +0 -5
  192. package/dist/helpers/hasSecuritySchemes.d.ts +0 -3
  193. package/dist/helpers/hasSecuritySchemes.d.ts.map +0 -1
  194. package/dist/helpers/hasWebhooks.d.ts +0 -3
  195. package/dist/helpers/hasWebhooks.d.ts.map +0 -1
  196. package/dist/helpers/hasWebhooks.js +0 -4
  197. package/dist/helpers/index.d.ts +0 -17
  198. package/dist/helpers/index.d.ts.map +0 -1
  199. package/dist/helpers/isMacOs.d.ts.map +0 -1
  200. package/dist/helpers/mapFromObject.d.ts +0 -8
  201. package/dist/helpers/mapFromObject.d.ts.map +0 -1
  202. package/dist/helpers/mergeAllObjects.d.ts +0 -5
  203. package/dist/helpers/mergeAllObjects.d.ts.map +0 -1
  204. package/dist/helpers/scrollToId.d.ts.map +0 -1
  205. package/dist/helpers/specDownloads.d.ts +0 -7
  206. package/dist/helpers/specDownloads.d.ts.map +0 -1
  207. package/dist/helpers/specDownloads.js +0 -19
  208. package/dist/helpers/specHelpers.d.ts +0 -16
  209. package/dist/helpers/specHelpers.d.ts.map +0 -1
  210. package/dist/helpers/specHelpers.js +0 -36
  211. package/dist/helpers/waitFor.d.ts +0 -5
  212. package/dist/helpers/waitFor.d.ts.map +0 -1
  213. package/dist/hooks/index.d.ts +0 -5
  214. package/dist/hooks/index.d.ts.map +0 -1
  215. package/dist/legacy/helpers/encodeStringAsBase64.d.ts +0 -5
  216. package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +0 -1
  217. package/dist/legacy/index.d.ts +0 -5
  218. package/dist/legacy/index.d.ts.map +0 -1
  219. package/dist/legacy/types.d.ts +0 -94
  220. package/dist/legacy/types.d.ts.map +0 -1
  221. package/dist/libs/operation.d.ts +0 -15
  222. package/dist/libs/operation.d.ts.map +0 -1
  223. package/dist/libs/operation.js +0 -16
  224. package/dist/stores/index.d.ts +0 -2
  225. package/dist/stores/index.d.ts.map +0 -1
  226. /package/dist/helpers/{isMacOs.js → is-mac-os.js} +0 -0
  227. /package/dist/helpers/{scrollToId.js → scroll-to-id.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Anchor/Anchor.vue"],"names":[],"mappings":"AAyFA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;CACX,CAAC;AAgBF,iBAAS,cAAc;WAgET,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,8SAOnB,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":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Anchor/Anchor.vue"],"names":[],"mappings":"AA2FA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;CACX,CAAC;AAmBF,iBAAS,cAAc;WA8DT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,8SAOnB,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 "./Anchor.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-498e73bd"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-2f3e206c"]]);
5
5
  export {
6
- _ as default
6
+ m as default
7
7
  };
@@ -1,41 +1,43 @@
1
- import { defineComponent as a, useId as l, createElementBlock as p, openBlock as u, createElementVNode as t, unref as s, renderSlot as c, withModifiers as m, createVNode as f, withCtx as b, createTextVNode as _ } from "vue";
1
+ import { defineComponent as l, useId as p, createElementBlock as c, openBlock as u, createElementVNode as o, unref as s, renderSlot as m, withModifiers as f, createVNode as b, withCtx as _, createTextVNode as h } from "vue";
2
2
  import { useClipboard as y } from "@scalar/use-hooks/useClipboard";
3
- import C from "../ScreenReader.vue.js";
4
- import { useNavState as h } from "../../hooks/useNavState.js";
5
- const k = { class: "label" }, N = ["id"], v = { class: "anchor" }, I = ["aria-describedby"], E = /* @__PURE__ */ a({
3
+ import { useNavState as C } from "../../hooks/useNavState.js";
4
+ import k from "../ScreenReader.vue.js";
5
+ const N = { class: "label" }, x = ["id"], S = { class: "anchor" }, V = ["aria-describedby"], I = /* @__PURE__ */ l({
6
6
  __name: "Anchor",
7
7
  props: {
8
8
  id: {}
9
9
  },
10
- setup(S) {
11
- const n = l(), { copyToClipboard: r } = y(), { getHashedUrl: d } = h(), i = (o) => d(o);
12
- return (o, e) => (u(), p("span", k, [
13
- t("span", {
14
- id: s(n),
10
+ setup(n) {
11
+ const t = p(), { copyToClipboard: r } = y(), { getHashedUrl: a } = C(), d = () => {
12
+ r(a(n.id));
13
+ };
14
+ return (i, e) => (u(), c("span", N, [
15
+ o("span", {
16
+ id: s(t),
15
17
  class: "contents"
16
18
  }, [
17
- c(o.$slots, "default", {}, void 0, !0)
18
- ], 8, N),
19
- t("span", v, [
20
- e[3] || (e[3] = t("span", null, "​", -1)),
21
- t("button", {
22
- "aria-describedby": s(n),
19
+ m(i.$slots, "default", {}, void 0, !0)
20
+ ], 8, x),
21
+ o("span", S, [
22
+ e[2] || (e[2] = o("span", null, "​", -1)),
23
+ o("button", {
24
+ "aria-describedby": s(t),
23
25
  class: "anchor-copy",
24
26
  type: "button",
25
- onClick: e[0] || (e[0] = m((V) => s(r)(i(o.id)), ["stop"]))
27
+ onClick: f(d, ["stop"])
26
28
  }, [
27
- e[2] || (e[2] = t("span", { "aria-hidden": "true" }, "#", -1)),
28
- f(C, null, {
29
- default: b(() => e[1] || (e[1] = [
30
- _("Copy link")
29
+ e[1] || (e[1] = o("span", { "aria-hidden": "true" }, "#", -1)),
30
+ b(k, null, {
31
+ default: _(() => e[0] || (e[0] = [
32
+ h("Copy link")
31
33
  ])),
32
34
  _: 1
33
35
  })
34
- ], 8, I)
36
+ ], 8, V)
35
37
  ])
36
38
  ]));
37
39
  }
38
40
  });
39
41
  export {
40
- E as default
42
+ I as default
41
43
  };
@@ -31,18 +31,18 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
31
31
  id: ThemeId;
32
32
  label: string;
33
33
  }) => any;
34
- updateContent: (value: string) => any;
35
34
  loadSwaggerFile: () => any;
36
35
  linkSwaggerFile: () => any;
36
+ updateContent: (value: string) => any;
37
37
  toggleDarkMode: () => any;
38
38
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
39
39
  onChangeTheme?: ((args_0: {
40
40
  id: ThemeId;
41
41
  label: string;
42
42
  }) => any) | undefined;
43
- onUpdateContent?: ((value: string) => any) | undefined;
44
43
  onLoadSwaggerFile?: (() => any) | undefined;
45
44
  onLinkSwaggerFile?: (() => any) | undefined;
45
+ onUpdateContent?: ((value: string) => any) | undefined;
46
46
  onToggleDarkMode?: (() => any) | undefined;
47
47
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
48
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAgoBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA8BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAuRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBAlfZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAuf/D;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAriBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA4iB9D,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":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAkoBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AAgCvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAuRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBAlfZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAuf/D;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAriBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA4iB9D,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"}
@@ -2,7 +2,7 @@ import o from "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../_virtual/_plugin-vue_export-helper.js";
5
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-51b3ff26"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-20e6362d"]]);
6
6
  export {
7
- m as default
7
+ a as default
8
8
  };
@@ -1,25 +1,25 @@
1
- import { defineComponent as ie, computed as h, ref as R, onBeforeMount as B, onMounted as le, onUnmounted as de, watch as $, onServerPrefetch as ue, useSSRContext as ce, useId as pe, provide as b, createElementBlock as y, openBlock as C, Fragment as N, createElementVNode as d, createVNode as m, unref as i, normalizeStyle as fe, normalizeClass as me, createCommentVNode as E, withDirectives as ve, renderSlot as u, normalizeProps as c, guardReactiveProps as p, withCtx as v, vShow as Se, createSlots as ge } from "vue";
1
+ import { defineComponent as ie, computed as h, ref as E, onBeforeMount as F, onMounted as le, onUnmounted as de, watch as R, onServerPrefetch as ue, useSSRContext as ce, useId as pe, provide as b, createElementBlock as y, openBlock as C, Fragment as D, createElementVNode as d, createVNode as m, unref as i, normalizeStyle as fe, normalizeClass as me, createCommentVNode as $, withDirectives as ve, renderSlot as u, normalizeProps as c, guardReactiveProps as p, withCtx as v, vShow as Se, createSlots as ge } from "vue";
2
2
  import { provideUseId as he } from "@headlessui/vue";
3
3
  import { LAYOUT_SYMBOL as be } from "@scalar/api-client/hooks";
4
4
  import { createWorkspaceStore as we, WORKSPACE_SYMBOL as ye, createActiveEntitiesStore as Ce, ACTIVE_ENTITIES_SYMBOL as Te } from "@scalar/api-client/store";
5
- import { addScalarClassesToHeadless as Re, ScalarErrorBoundary as $e } from "@scalar/components";
6
- import { defaultStateFactory as _ } from "@scalar/oas-utils/helpers";
7
- import { hasObtrusiveScrollbars as Ee, getThemeStyles as Oe } from "@scalar/themes";
5
+ import { addScalarClassesToHeadless as Ee, ScalarErrorBoundary as Re } from "@scalar/components";
6
+ import { defaultStateFactory as N } from "@scalar/oas-utils/helpers";
7
+ import { hasObtrusiveScrollbars as $e, getThemeStyles as Oe } from "@scalar/themes";
8
8
  import { apiReferenceConfigurationSchema as Ie } from "@scalar/types/api-reference";
9
9
  import { useToasts as Le, ScalarToasts as Me } from "@scalar/use-toasts";
10
- import { useMediaQuery as Pe, useResizeObserver as ke, useDebounceFn as Fe } from "@vueuse/core";
11
- import Ae from "./GettingStarted.vue.js";
12
- import { CONFIGURATION_SYMBOL as Be } from "../hooks/useConfig.js";
13
- import { useHttpClientStore as Ne } from "../stores/useHttpClientStore.js";
14
- import { downloadSpecBus as D, downloadSpecFile as _e } from "../helpers/specDownloads.js";
15
- import { PLUGIN_MANAGER_SYMBOL as De } from "../plugins/hooks/usePluginManager.js";
16
- import { createPluginManager as He } from "../plugins/plugin-manager.js";
17
- import Ue from "./Sidebar/Sidebar.vue.js";
18
- import Ye from "./Content/Content.vue.js";
19
- import ze from "../features/ApiClientModal/ApiClientModal.vue.js";
20
- import { useSidebar as Ge } from "../hooks/useSidebar.js";
21
- import { useNavState as Ve } from "../hooks/useNavState.js";
22
- import { sleep as We } from "../helpers/sleep.js";
10
+ import { useMediaQuery as Pe, useResizeObserver as ke, useDebounceFn as Ae } from "@vueuse/core";
11
+ import Be from "./GettingStarted.vue.js";
12
+ import { sleep as Fe } from "../helpers/sleep.js";
13
+ import { CONFIGURATION_SYMBOL as De } from "../hooks/useConfig.js";
14
+ import { useNavState as Ne } from "../hooks/useNavState.js";
15
+ import { useSidebar as _e } from "../hooks/useSidebar.js";
16
+ import { downloadEventBus as _, downloadDocument as He } from "../libs/download.js";
17
+ import { useHttpClientStore as Ue } from "../stores/useHttpClientStore.js";
18
+ import { PLUGIN_MANAGER_SYMBOL as Ye } from "../plugins/hooks/usePluginManager.js";
19
+ import { createPluginManager as ze } from "../plugins/plugin-manager.js";
20
+ import Ge from "./Sidebar/Sidebar.vue.js";
21
+ import Ve from "./Content/Content.vue.js";
22
+ import We from "../features/ApiClientModal/ApiClientModal.vue.js";
23
23
  const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label"], qe = { class: "references-navigation-list" }, Je = { class: "references-editor" }, Xe = { class: "references-editor-textarea" }, Ze = ["aria-label"], xe = {
24
24
  key: 0,
25
25
  class: "references-footer"
@@ -37,11 +37,11 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
37
37
  () => Ie.parse(f.configuration)
38
38
  ), { initializeToasts: U, toast: Y } = Le();
39
39
  U((e) => Y(e));
40
- const z = Pe("(min-width: 1150px)"), G = R("100dvh"), S = R(null);
40
+ const z = Pe("(min-width: 1150px)"), G = E("100dvh"), S = E(null);
41
41
  ke(S, (e) => {
42
42
  G.value = e[0].contentRect.height + "px";
43
43
  });
44
- const V = h(Ee), {
44
+ const V = h($e), {
45
45
  breadcrumb: W,
46
46
  collapsedSidebarItems: w,
47
47
  isSidebarOpen: j,
@@ -50,7 +50,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
50
50
  defaultOpenAllTags: Q,
51
51
  setParsedSpec: q,
52
52
  scrollToOperation: J
53
- } = Ge(), {
53
+ } = _e(), {
54
54
  getReferenceId: X,
55
55
  getPathRoutingId: I,
56
56
  getSectionId: Z,
@@ -59,22 +59,22 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
59
59
  isIntersectionEnabled: L,
60
60
  updateHash: M,
61
61
  replaceUrlState: te
62
- } = Ve(t);
62
+ } = Ne(t);
63
63
  if (t.value.redirect && typeof window < "u") {
64
64
  const e = t.value.redirect(
65
65
  (t.value.pathRouting ? window.location.pathname : "") + window.location.hash
66
66
  );
67
67
  e && history.replaceState({}, "", e);
68
68
  }
69
- B(() => M());
69
+ F(() => M());
70
70
  const P = async (e) => {
71
71
  var a;
72
- L.value = !1, M(), e ? J(e) : (a = S.value) == null || a.scrollTo(0, 0), await We(100), L.value = !0;
73
- }, k = R(0);
74
- B(() => Re()), le(() => {
72
+ L.value = !1, M(), e ? J(e) : (a = S.value) == null || a.scrollTo(0, 0), await Fe(100), L.value = !0;
73
+ }, k = E(0);
74
+ F(() => Ee()), le(() => {
75
75
  var o, s, r;
76
- history.scrollRestoration = "manual", D.on(({ specTitle: n }) => {
77
- _e(f.rawSpec, n);
76
+ history.scrollRestoration = "manual", _.on(({ filename: n }) => {
77
+ He(f.rawSpec, n);
78
78
  });
79
79
  const e = (s = (o = S.value) == null ? void 0 : o.parentElement) == null ? void 0 : s.getBoundingClientRect(), a = (r = S.value) == null ? void 0 : r.getBoundingClientRect();
80
80
  if (e && a) {
@@ -87,7 +87,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
87
87
  });
88
88
  const ae = h(
89
89
  () => z.value || !t.value.isEditable
90
- ), F = Fe((e) => {
90
+ ), A = Ae((e) => {
91
91
  if ((e.target.scrollTop ?? 0) < 50) {
92
92
  const o = t.value.pathRouting ? t.value.pathRouting.basePath : window.location.pathname;
93
93
  te("", o + window.location.search);
@@ -97,11 +97,11 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
97
97
  spec: f.parsedSpec
98
98
  }));
99
99
  de(() => {
100
- D.reset();
101
- }), $(() => f.parsedSpec, q, { deep: !0 }), ue(() => {
100
+ _.reset();
101
+ }), R(() => f.parsedSpec, q, { deep: !0 }), ue(() => {
102
102
  var a, o;
103
103
  const e = ce();
104
- if (e && (e.payload || (e.payload = { data: _() }), (a = e.payload).data || (a.data = _()), t.value.pathRouting)) {
104
+ if (e && (e.payload || (e.payload = { data: N() }), (a = e.payload).data || (a.data = N()), t.value.pathRouting)) {
105
105
  const s = I(e.url);
106
106
  ee.value = s, e.payload.data.hash = s;
107
107
  for (const r in w)
@@ -119,7 +119,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
119
119
  useLocalStorage: !1,
120
120
  ...t.value
121
121
  });
122
- $(
122
+ R(
123
123
  () => f.rawSpec,
124
124
  (e) => {
125
125
  var a;
@@ -133,15 +133,15 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
133
133
  { immediate: !0 }
134
134
  ), b(ye, T);
135
135
  const oe = Ce(T);
136
- b(Te, oe), b(be, "modal"), b(Be, t), b(
137
- De,
138
- He({
136
+ b(Te, oe), b(be, "modal"), b(De, t), b(
137
+ Ye,
138
+ ze({
139
139
  // TODO: Get plugins from the configuration
140
140
  plugins: t.value.plugins
141
141
  })
142
142
  );
143
- function A(e, a) {
144
- $(
143
+ function B(e, a) {
144
+ R(
145
145
  () => t.value[e],
146
146
  (o) => {
147
147
  typeof o < "u" && a(o);
@@ -149,8 +149,8 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
149
149
  { immediate: !0 }
150
150
  );
151
151
  }
152
- const { setExcludedClients: re, setDefaultHttpClient: se } = Ne();
153
- A("defaultHttpClient", se), A("hiddenClients", re), K.value = t.value.hideModels ?? !1, Q.value = t.value.defaultOpenAllTags ?? !1;
152
+ const { setExcludedClients: re, setDefaultHttpClient: se } = Ue();
153
+ B("defaultHttpClient", se), B("hiddenClients", re), K.value = t.value.hideModels ?? !1, Q.value = t.value.defaultOpenAllTags ?? !1;
154
154
  const ne = h(
155
155
  () => `<style>
156
156
  ${Oe(t.value.theme, {
@@ -159,7 +159,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
159
159
  );
160
160
  return (e, a) => {
161
161
  var o, s, r;
162
- return C(), y(N, null, [
162
+ return C(), y(D, null, [
163
163
  d("div", { innerHTML: ne.value }, null, 8, je),
164
164
  d("div", {
165
165
  ref_key: "documentEl",
@@ -178,7 +178,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
178
178
  "--scalar-y-offset": `var(--scalar-custom-header-height, ${k.value}px)`
179
179
  }),
180
180
  onScrollPassive: a[4] || (a[4] = //@ts-ignore
181
- (...n) => i(F) && i(F)(...n))
181
+ (...n) => i(A) && i(A)(...n))
182
182
  }, [
183
183
  d("div", Ke, [
184
184
  u(e.$slots, "header", c(p(l.value)), void 0, !0)
@@ -189,9 +189,9 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
189
189
  class: "references-navigation t-doc__sidebar"
190
190
  }, [
191
191
  d("div", qe, [
192
- m(i($e), null, {
192
+ m(i(Re), null, {
193
193
  default: v(() => [
194
- m(i(Ue), {
194
+ m(i(Ge), {
195
195
  operationsSorter: t.value.operationsSorter,
196
196
  parsedSpec: e.parsedSpec,
197
197
  tagsSorter: t.value.tagsSorter
@@ -208,7 +208,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
208
208
  _: 3
209
209
  })
210
210
  ])
211
- ], 8, Qe)) : E("", !0),
211
+ ], 8, Qe)) : $("", !0),
212
212
  ve(d("div", Je, [
213
213
  d("div", Xe, [
214
214
  u(e.$slots, "editor", c(p(l.value)), void 0, !0)
@@ -216,12 +216,12 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
216
216
  ], 512), [
217
217
  [Se, t.value.isEditable]
218
218
  ]),
219
- ae.value ? (C(), y(N, { key: 1 }, [
219
+ ae.value ? (C(), y(D, { key: 1 }, [
220
220
  d("main", {
221
221
  "aria-label": `Open API Documentation for ${(s = e.parsedSpec.info) == null ? void 0 : s.title}`,
222
222
  class: "references-rendered"
223
223
  }, [
224
- m(i(Ye), {
224
+ m(i(Ve), {
225
225
  layout: t.value.layout,
226
226
  parsedSpec: e.parsedSpec
227
227
  }, ge({
@@ -238,7 +238,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
238
238
  fn: v(() => {
239
239
  var n;
240
240
  return [
241
- m(Ae, {
241
+ m(Be, {
242
242
  theme: ((n = t.value) == null ? void 0 : n.theme) || "default",
243
243
  onChangeTheme: a[0] || (a[0] = (g) => e.$emit("changeTheme", g)),
244
244
  onLinkSwaggerFile: a[1] || (a[1] = (g) => e.$emit("linkSwaggerFile")),
@@ -253,9 +253,9 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
253
253
  ], 8, Ze),
254
254
  e.$slots.footer ? (C(), y("div", xe, [
255
255
  u(e.$slots, "footer", c(p(l.value)), void 0, !0)
256
- ])) : E("", !0)
257
- ], 64)) : E("", !0),
258
- m(i(ze), {
256
+ ])) : $("", !0)
257
+ ], 64)) : $("", !0),
258
+ m(i(We), {
259
259
  configuration: t.value,
260
260
  parsedSpec: e.parsedSpec
261
261
  }, null, 8, ["configuration", "parsedSpec"])
@@ -1 +1 @@
1
- {"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";AAwbA,wBAKG"}
1
+ {"version":3,"file":"ClientLibraries.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientLibraries.vue"],"names":[],"mappings":";AA0bA,wBAKG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientLibraries.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b6a2d2e5"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-02957b63"]]);
5
5
  export {
6
- i as default
6
+ e as default
7
7
  };
@@ -2,9 +2,9 @@ import { defineComponent as B, ref as N, useId as h, watch as V, computed as F,
2
2
  import { TabGroup as j, TabList as D, TabPanels as G, TabPanel as M } from "@headlessui/vue";
3
3
  import { useWorkspace as O } from "@scalar/api-client/store";
4
4
  import { ScalarMarkdown as W, ScalarCodeBlock as q } from "@scalar/components";
5
- import z from "./ClientSelector.vue.js";
6
- import { useFeaturedHttpClients as J } from "./useFeaturedHttpClients.js";
7
- import { useHttpClientStore as Q } from "../../../stores/useHttpClientStore.js";
5
+ import { useHttpClientStore as z } from "../../../stores/useHttpClientStore.js";
6
+ import J from "./ClientSelector.vue.js";
7
+ import { useFeaturedHttpClients as Q } from "./useFeaturedHttpClients.js";
8
8
  const R = { key: 0 }, U = ["id"], Y = {
9
9
  key: 0,
10
10
  class: "selected-client card-footer -outline-offset-2",
@@ -26,7 +26,7 @@ const R = { key: 0 }, U = ["id"], Y = {
26
26
  getTargetTitle: L,
27
27
  httpClient: r,
28
28
  setHttpClient: w
29
- } = Q(), { featuredClients: d, isFeatured: I } = J(), K = O(), b = N(0), v = h(), g = h();
29
+ } = z(), { featuredClients: d, isFeatured: I } = Q(), K = O(), b = N(0), v = h(), g = h();
30
30
  V(
31
31
  r,
32
32
  (a) => {
@@ -70,7 +70,7 @@ const R = { key: 0 }, U = ["id"], Y = {
70
70
  class: "client-libraries-list"
71
71
  }, {
72
72
  default: m(() => [
73
- i(z, {
73
+ i(J, {
74
74
  featured: e(d),
75
75
  morePanel: e(g)
76
76
  }, null, 8, ["featured", "morePanel"])
@@ -1,4 +1,4 @@
1
- import { type HttpClientState } from '../../../stores';
1
+ import { type HttpClientState } from '../../../stores/useHttpClientStore.js';
2
2
  import type { ClientId, Target } from '@scalar/snippetz';
3
3
  export type FeaturedClient = {
4
4
  targetKey: Target['key'];
@@ -1 +1 @@
1
- {"version":3,"file":"useFeaturedHttpClients.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/useFeaturedHttpClients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,UAAU,CAAA;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAExD,MAAM,MAAM,cAAc,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;CAAE,CAAA;AAE7F;;GAEG;AACH,wBAAgB,sBAAsB;IAwClC,gCAAgC;;IAEhC,mCAAmC;yBANT,eAAe;EAS5C"}
1
+ {"version":3,"file":"useFeaturedHttpClients.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/useFeaturedHttpClients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,6BAA6B,CAAA;AACtF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAExD,MAAM,MAAM,cAAc,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;CAAE,CAAA;AAE7F;;GAEG;AACH,wBAAgB,sBAAsB;IAwClC,gCAAgC;;IAEhC,mCAAmC;yBANT,eAAe;EAS5C"}
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a04c6b2"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-31544942"]]);
6
6
  export {
7
- _ as default
7
+ a as default
8
8
  };
@@ -1,35 +1,34 @@
1
- import { defineComponent as F, computed as m, createElementBlock as i, openBlock as a, Fragment as u, createStaticVNode as G, createElementVNode as A, renderSlot as f, createBlock as t, 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 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";
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 Q from "./Lazy/Loading.vue.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";
8
10
  /* empty css */
9
- import T from "./Introduction/Introduction.vue.js";
10
- import X from "../../features/BaseUrl/BaseUrl.vue.js";
11
- import Y from "./ClientLibraries/ClientLibraries.vue.js";
11
+ import Y from "./Introduction/Introduction.vue.js";
12
+ import Z from "../../features/BaseUrl/BaseUrl.vue.js";
13
+ import _ from "./ClientLibraries/ClientLibraries.vue.js";
12
14
  import E from "./Tag/TagList.vue.js";
13
- import Z from "../../features/Operation/Webhooks.vue.js";
14
- import _ from "./Models/ModelsAccordion.vue.js";
15
- import x from "./Models/Models.vue.js";
16
- import { useSidebar as ee } from "../../hooks/useSidebar.js";
17
- import { getModels as S } from "../../helpers/getModels.js";
18
- import { hasModels as re } from "../../helpers/hasModels.js";
19
- const se = { class: "narrow-references-container" }, ae = {
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 = {
20
19
  key: 0,
21
20
  class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm [--scalar-address-bar-height:0px]"
22
- }, te = {
21
+ }, ae = {
23
22
  key: 1,
24
23
  class: "scalar-reference-intro-auth scalar-client introduction-card-item"
25
- }, we = /* @__PURE__ */ F({
24
+ }, Ce = /* @__PURE__ */ F({
26
25
  __name: "Content",
27
26
  props: {
28
27
  parsedSpec: {},
29
28
  layout: { default: "modern" }
30
29
  },
31
30
  setup(U) {
32
- const $ = U, p = P(), { hideModels: M } = ee(), { collections: B, securitySchemes: N, servers: y } = R(), {
31
+ const $ = U, p = P(), { hideModels: M } = Q(), { collections: B, securitySchemes: N, servers: y } = R(), {
33
32
  activeCollection: W,
34
33
  activeEnvVariables: L,
35
34
  activeEnvironment: j,
@@ -54,19 +53,19 @@ const se = { class: "narrow-references-container" }, ae = {
54
53
  () => $.layout === "classic" ? "after" : "aside"
55
54
  );
56
55
  return (e, k) => {
57
- var b, g, C, w;
58
- return a(), i(u, null, [
59
- k[0] || (k[0] = G('<div class="section-flare" data-v-1a04c6b2><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div><div class="section-flare-item" data-v-1a04c6b2></div></div>', 1)),
56
+ var g, b, C, w;
57
+ return t(), i(u, null, [
58
+ k[0] || (k[0] = G('<div class="section-flare" data-v-31544942><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div><div class="section-flare-item" data-v-31544942></div></div>', 1)),
60
59
  A("div", se, [
61
60
  f(e.$slots, "start", {}, void 0, !0),
62
- s.value ? (a(), t(r(Q), {
61
+ s.value ? (t(), a(r(X), {
63
62
  key: 0,
64
63
  collection: s.value,
65
64
  layout: e.layout,
66
65
  parsedSpec: e.parsedSpec,
67
66
  server: c.value
68
67
  }, null, 8, ["collection", "layout", "parsedSpec", "server"])) : l("", !0),
69
- (g = (b = e.parsedSpec) == null ? void 0 : b.info) != null && g.title || (w = (C = e.parsedSpec) == null ? void 0 : C.info) != null && w.description ? (a(), t(r(T), {
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), {
70
69
  key: 1,
71
70
  info: e.parsedSpec.info,
72
71
  parsedSpec: e.parsedSpec
@@ -79,13 +78,13 @@ const se = { class: "narrow-references-container" }, ae = {
79
78
  A("div", {
80
79
  class: I(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
81
80
  }, [
82
- (o = (n = s.value) == null ? void 0 : n.servers) != null && o.length ? (a(), i("div", ae, [
83
- v(r(X), {
81
+ (o = (n = s.value) == null ? void 0 : n.servers) != null && o.length ? (t(), i("div", te, [
82
+ v(r(Z), {
84
83
  collection: s.value,
85
84
  server: c.value
86
85
  }, null, 8, ["collection", "server"])
87
86
  ])) : l("", !0),
88
- s.value && r(h) && Object.keys(r(N) ?? {}).length ? (a(), i("div", te, [
87
+ s.value && r(h) && Object.keys(r(N) ?? {}).length ? (t(), i("div", ae, [
89
88
  v(r(H), {
90
89
  collection: s.value,
91
90
  envVariables: r(L),
@@ -98,7 +97,7 @@ const se = { class: "narrow-references-container" }, ae = {
98
97
  workspace: r(h)
99
98
  }, null, 8, ["collection", "envVariables", "environment", "persistAuth", "selectedSecuritySchemeUids", "server", "workspace"])
100
99
  ])) : l("", !0),
101
- v(r(Y), { class: "introduction-card-item scalar-reference-intro-clients" })
100
+ v(r(_), { class: "introduction-card-item scalar-reference-intro-clients" })
102
101
  ], 2)
103
102
  ];
104
103
  }),
@@ -107,8 +106,8 @@ const se = { class: "narrow-references-container" }, ae = {
107
106
  ]),
108
107
  _: 2
109
108
  }, 1032, ["info", "parsedSpec"])) : f(e.$slots, "empty-state", { key: 2 }, void 0, !0),
110
- e.parsedSpec.tags && s.value ? (a(), i(u, { key: 3 }, [
111
- e.parsedSpec["x-tagGroups"] ? (a(!0), i(u, { key: 0 }, O(e.parsedSpec["x-tagGroups"], (n) => (a(), t(r(E), {
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), {
112
111
  key: n.name,
113
112
  collection: s.value,
114
113
  layout: e.layout,
@@ -118,7 +117,7 @@ const se = { class: "narrow-references-container" }, ae = {
118
117
  var d;
119
118
  return (d = e.parsedSpec.tags) == null ? void 0 : d.find((z) => z.name === o);
120
119
  }).filter((o) => !!o)
121
- }, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (a(), t(r(E), {
120
+ }, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (t(), a(r(E), {
122
121
  key: 1,
123
122
  collection: s.value,
124
123
  layout: e.layout,
@@ -128,15 +127,15 @@ const se = { class: "narrow-references-container" }, ae = {
128
127
  tags: e.parsedSpec.tags
129
128
  }, null, 8, ["collection", "layout", "schemas", "server", "spec", "tags"]))
130
129
  ], 64)) : l("", !0),
131
- e.parsedSpec.webhooks ? (a(), t(r(Z), {
130
+ e.parsedSpec.webhooks ? (t(), a(r(x), {
132
131
  key: 4,
133
132
  webhooks: e.parsedSpec.webhooks
134
133
  }, null, 8, ["webhooks"])) : l("", !0),
135
- r(re)(e.parsedSpec) && !r(M) ? (a(), i(u, { key: 5 }, [
136
- e.layout === "classic" ? (a(), t(r(_), {
134
+ r(T)(e.parsedSpec) && !r(M) ? (t(), i(u, { key: 5 }, [
135
+ e.layout === "classic" ? (t(), a(r(ee), {
137
136
  key: 0,
138
137
  schemas: r(S)(e.parsedSpec)
139
- }, null, 8, ["schemas"])) : (a(), t(r(x), {
138
+ }, null, 8, ["schemas"])) : (t(), a(r(re), {
140
139
  key: 1,
141
140
  schemas: r(S)(e.parsedSpec)
142
141
  }, null, 8, ["schemas"]))
@@ -148,5 +147,5 @@ const se = { class: "narrow-references-container" }, ae = {
148
147
  }
149
148
  });
150
149
  export {
151
- we as default
150
+ Ce as default
152
151
  };
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fdd1ed54"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-35f3c001"]]);
5
5
  export {
6
6
  m as default
7
7
  };