@scalar/api-reference 1.28.7 → 1.28.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/browser/standalone.js +13967 -13923
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts +2 -2
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/GettingStarted.vue.js +1 -1
  7. package/dist/components/GettingStarted.vue2.js +25 -25
  8. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  9. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  10. package/dist/components/Sidebar/Sidebar.vue2.js +89 -76
  11. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  12. package/dist/components/Sidebar/SidebarElement.vue2.js +1 -1
  13. package/dist/components/SingleApiReference.vue.d.ts +1 -1
  14. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  15. package/dist/features/ApiClientModal/useApiClient.d.ts +1334 -990
  16. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  17. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +46 -1
  18. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  19. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  20. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +83 -74
  21. package/dist/helpers/freeze-element.d.ts +11 -0
  22. package/dist/helpers/freeze-element.d.ts.map +1 -0
  23. package/dist/helpers/freeze-element.js +20 -0
  24. package/dist/helpers/get-request.d.ts +4 -4
  25. package/dist/helpers/get-request.d.ts.map +1 -1
  26. package/dist/hooks/useMultipleDocuments.d.ts +26 -23
  27. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  28. package/dist/hooks/useMultipleDocuments.js +66 -50
  29. package/dist/hooks/useReactiveSpec.d.ts +220 -3
  30. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  31. package/dist/hooks/useReactiveSpec.js +30 -28
  32. package/dist/index.js +1 -1
  33. package/dist/standalone/lib/html-api.d.ts +5 -5
  34. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/types.d.ts +2 -2
  37. package/dist/types.d.ts.map +1 -1
  38. package/package.json +10 -10
@@ -1,10 +1,10 @@
1
- import type { ApiReferenceConfiguration, ApiReferenceConfigurationWithSources } from '@scalar/types/api-reference';
1
+ import type { AnyApiReferenceConfiguration } from '@scalar/types/api-reference';
2
2
  type __VLS_Props = {
3
3
  /**
4
4
  * Configuration for the API reference.
5
5
  * Can be a single configuration or an array of configurations for multiple documents.
6
6
  */
7
- configuration?: Partial<ApiReferenceConfiguration> | Partial<ApiReferenceConfiguration>[] | Partial<ApiReferenceConfigurationWithSources>;
7
+ configuration?: AnyApiReferenceConfiguration;
8
8
  };
9
9
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
10
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EACV,yBAAyB,EACzB,oCAAoC,EACrC,MAAM,6BAA6B,CAAA;AAUpC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EACV,OAAO,CAAC,yBAAyB,CAAC,GAClC,OAAO,CAAC,yBAAyB,CAAC,EAAE,GACpC,OAAO,CAAC,oCAAoC,CAAC,CAAA;CAClD,CAAC;;AA4FF,wBAOG"}
1
+ {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAU/E,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;;AA4FF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./GettingStarted.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-386e82f2"]]);
4
+ const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0f473adb"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as u, openBlock as o, createElementBlock as i, createElementVNode as e, createStaticVNode as r, createVNode as n, unref as l, withCtx as d, createTextVNode as p, Fragment as w, renderList as y, normalizeClass as C, toDisplayString as S } from "vue";
1
+ import { defineComponent as b, openBlock as o, createElementBlock as d, createElementVNode as e, createStaticVNode as r, createVNode as i, unref as l, withCtx as n, createTextVNode as p, Fragment as u, renderList as w, normalizeClass as y, toDisplayString as A } from "vue";
2
2
  import { ScalarButton as c } from "@scalar/components";
3
3
  import { themeLabels as f } from "@scalar/themes";
4
- const A = { class: "start custom-scroll" }, x = { class: "start-copy" }, k = { class: "start-cta" }, Z = { class: "start-row" }, b = { class: "start-section start-section-colors" }, F = ["onClick"], P = /* @__PURE__ */ u({
4
+ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, E = ["onClick"], P = /* @__PURE__ */ b({
5
5
  __name: "GettingStarted",
6
6
  props: {
7
7
  theme: {}
8
8
  },
9
9
  emits: ["changeTheme", "loadSwaggerFile", "linkSwaggerFile", "updateContent"],
10
- setup(B, { emit: v }) {
11
- const g = v, h = [
10
+ setup(F, { emit: v }) {
11
+ const g = v, m = [
12
12
  "default",
13
13
  "alternate",
14
14
  "moon",
@@ -20,49 +20,49 @@ const A = { class: "start custom-scroll" }, x = { class: "start-copy" }, k = { c
20
20
  "mars",
21
21
  "deepSpace"
22
22
  ];
23
- async function m() {
23
+ async function h() {
24
24
  const s = await fetch(
25
25
  "https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml"
26
26
  );
27
27
  g("updateContent", await s.text());
28
28
  }
29
- return (s, t) => (o(), i("div", A, [
30
- e("div", x, [
31
- t[3] || (t[3] = r('<div class="start-logo" data-v-386e82f2><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-386e82f2></path></svg></div><h1 class="start-h1" data-v-386e82f2>Swagger Editor</h1><p class="start-p" data-v-386e82f2> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
32
- e("div", k, [
33
- n(l(c), {
29
+ return (s, a) => (o(), d("div", C, [
30
+ e("div", S, [
31
+ a[3] || (a[3] = r('<div class="start-logo" data-v-0f473adb><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-0f473adb></path></svg></div><h1 class="start-h1" data-v-0f473adb>Swagger Editor</h1><p class="start-p" data-v-0f473adb> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
32
+ e("div", x, [
33
+ i(l(c), {
34
34
  fullWidth: "",
35
- onClick: m
35
+ onClick: h
36
36
  }, {
37
- default: d(() => t[1] || (t[1] = [
37
+ default: n(() => a[1] || (a[1] = [
38
38
  p(" Show Example ")
39
39
  ])),
40
40
  _: 1
41
41
  }),
42
- n(l(c), {
42
+ i(l(c), {
43
43
  fullWidth: "",
44
44
  variant: "outlined",
45
- onClick: t[0] || (t[0] = (a) => s.$emit("loadSwaggerFile"))
45
+ onClick: a[0] || (a[0] = (t) => s.$emit("loadSwaggerFile"))
46
46
  }, {
47
- default: d(() => t[2] || (t[2] = [
47
+ default: n(() => a[2] || (a[2] = [
48
48
  p(" Upload File ")
49
49
  ])),
50
50
  _: 1
51
51
  })
52
52
  ])
53
53
  ]),
54
- e("div", Z, [
55
- t[5] || (t[5] = r('<div class="start-section start-section-integrations" data-v-386e82f2><div class="start-h2" data-v-386e82f2>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-386e82f2><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-386e82f2></path></svg><span data-v-386e82f2>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-386e82f2><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><g data-v-386e82f2><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-386e82f2></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-386e82f2></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-386e82f2></path></g></svg><span data-v-386e82f2>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-386e82f2><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><g fill="currentColor" fill-rule="nonzero" data-v-386e82f2><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-386e82f2></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-386e82f2></polygon></g></svg><span data-v-386e82f2>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-386e82f2><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><g fill="none" fill-rule="evenodd" data-v-386e82f2><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-386e82f2></circle><g stroke="currentColor" data-v-386e82f2><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-386e82f2></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-386e82f2></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-386e82f2></ellipse></g></g></svg><span data-v-386e82f2>React</span></a></div>', 1)),
56
- e("div", b, [
57
- t[4] || (t[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
58
- (o(), i(w, null, y(h, (a) => e("div", {
59
- key: a,
60
- class: C(["start-item", { "start-item-active": a === s.theme }]),
61
- onClick: (_) => s.$emit("changeTheme", { id: a, label: l(f)[a] })
62
- }, S(l(f)[a]), 11, F)), 64))
54
+ e("div", k, [
55
+ a[5] || (a[5] = r('<div class="start-section start-section-integrations" data-v-0f473adb><div class="start-h2" data-v-0f473adb>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-0f473adb><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-0f473adb></path></svg><span data-v-0f473adb>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-0f473adb><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g data-v-0f473adb><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-0f473adb></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0f473adb></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0f473adb></path></g></svg><span data-v-0f473adb>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-0f473adb><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g fill="currentColor" fill-rule="nonzero" data-v-0f473adb><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-0f473adb></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-0f473adb></polygon></g></svg><span data-v-0f473adb>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-0f473adb><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g fill="none" fill-rule="evenodd" data-v-0f473adb><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-0f473adb></circle><g stroke="currentColor" data-v-0f473adb><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-0f473adb></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-0f473adb></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-0f473adb></ellipse></g></g></svg><span data-v-0f473adb>React</span></a></div>', 1)),
56
+ e("div", Z, [
57
+ a[4] || (a[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
58
+ (o(), d(u, null, w(m, (t) => e("div", {
59
+ key: t,
60
+ class: y(["start-item", { "start-item-active": t === s.theme }]),
61
+ onClick: (B) => s.$emit("changeTheme", { id: t, label: l(f)[t] })
62
+ }, A(l(f)[t]), 11, E)), 64))
63
63
  ])
64
64
  ]),
65
- t[6] || (t[6] = r('<p class="start-h1" data-v-386e82f2>Features</p><ul class="start-ul" data-v-386e82f2><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
65
+ a[6] || (a[6] = r('<p class="start-h1" data-v-0f473adb>Features</p><ul class="start-ul" data-v-0f473adb><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
66
66
  ]));
67
67
  }
68
68
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAwOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AAMxE,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;CACjB,GAAG,YAAY,CAAC;AAoEnB,iBAAS,cAAc;WA4NT,OAAO,IAA6B;;iCAVb,GAAG;+BACJ,GAAG;;;;;;EActC;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAmQA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAIhD,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AAMxE,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;CACjB,GAAG,YAAY,CAAC;AA+FnB,iBAAS,cAAc;WA4NT,OAAO,IAA6B;;iCAVb,GAAG;+BACJ,GAAG;;;;;;EActC;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Sidebar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4f86b04c"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1c7b654c"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as B, ref as E, watch as F, onMounted as N, openBlock as r, createElementBlock as i, renderSlot as V, createElementVNode as w, createVNode as I, withCtx as b, Fragment as d, renderList as v, unref as a, toDisplayString as L, createBlock as u, createCommentVNode as h } from "vue";
2
- import y from "./SidebarElement.vue.js";
3
- import T from "./SidebarGroup.vue.js";
4
- import { useNavState as G } from "../../hooks/useNavState.js";
5
- import { useSidebar as D } from "../../hooks/useSidebar.js";
1
+ import { defineComponent as F, ref as E, watch as I, onMounted as N, onUnmounted as L, openBlock as r, createElementBlock as d, renderSlot as w, createElementVNode as V, createVNode as G, withCtx as h, Fragment as o, renderList as y, unref as n, toDisplayString as M, createBlock as f, createCommentVNode as v } from "vue";
2
+ import S from "./SidebarElement.vue.js";
3
+ import g from "./SidebarGroup.vue.js";
4
+ import { useNavState as D } from "../../hooks/useNavState.js";
5
+ import { useSidebar as H } from "../../hooks/useSidebar.js";
6
6
  import { sleep as C } from "../../helpers/sleep.js";
7
- const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-title" }, j = -160, Q = /* @__PURE__ */ B({
7
+ const R = { class: "sidebar" }, U = ["aria-label"], j = { class: "sidebar-group-title" }, q = -160, W = /* @__PURE__ */ F({
8
8
  __name: "Sidebar",
9
9
  props: {
10
10
  parsedSpec: {},
@@ -12,49 +12,62 @@ const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-
12
12
  operationsSorter: { type: [String, Function] }
13
13
  },
14
14
  setup(A) {
15
- const S = A, { hash: c, isIntersectionEnabled: $ } = G(), { items: O, toggleCollapsedSidebarItem: g, collapsedSidebarItems: _ } = D(
15
+ const m = A, { hash: p, isIntersectionEnabled: $ } = D(), { items: O, toggleCollapsedSidebarItem: T, collapsedSidebarItems: _ } = H(
16
16
  {
17
- parsedSpec: S.parsedSpec,
18
- tagsSorter: S.tagsSorter,
19
- operationsSorter: S.operationsSorter
17
+ parsedSpec: m.parsedSpec,
18
+ tagsSorter: m.tagsSorter,
19
+ operationsSorter: m.operationsSorter
20
20
  }
21
- ), m = E(null), p = E(!0);
22
- F(c, (o) => {
23
- !$.value || p.value || typeof window > "u" || k(o);
21
+ ), b = E(null), u = E(!0);
22
+ I(p, (l) => {
23
+ !$.value || u.value || typeof window > "u" || k(l);
24
24
  });
25
- const k = (o) => {
26
- var e, t, l, s;
27
- const n = document.getElementById(`sidebar-${o}`);
28
- if (!n || !m.value)
25
+ const k = (l) => {
26
+ var e, t, s, a;
27
+ const i = document.getElementById(`sidebar-${l}`);
28
+ if (!i || !b.value)
29
29
  return;
30
- let f = j;
31
- n.getAttribute("data-sidebar-type") === "heading" ? f += n.offsetTop + ((e = n.getElementsByClassName("sidebar-heading")) == null ? void 0 : e[0]).offsetHeight : f += n.offsetTop + (((t = n.parentElement) == null ? void 0 : t.offsetTop) ?? 0) + (((s = (l = n.parentElement) == null ? void 0 : l.parentElement) == null ? void 0 : s.offsetTop) ?? 0), m.value.scrollTo({ top: f, behavior: "smooth" });
30
+ let c = q;
31
+ i.getAttribute("data-sidebar-type") === "heading" ? c += i.offsetTop + ((e = i.getElementsByClassName("sidebar-heading")) == null ? void 0 : e[0]).offsetHeight : c += i.offsetTop + (((t = i.parentElement) == null ? void 0 : t.offsetTop) ?? 0) + (((a = (s = i.parentElement) == null ? void 0 : s.parentElement) == null ? void 0 : a.offsetTop) ?? 0), b.value.scrollTo({ top: c, behavior: "smooth" });
32
+ }, B = (l) => {
33
+ if (!b.value)
34
+ return;
35
+ const i = new MutationObserver((c, e) => {
36
+ document.getElementById(`sidebar-${l}`) && (k(l), u.value = !1, e.disconnect());
37
+ });
38
+ return i.observe(b.value, {
39
+ childList: !0,
40
+ subtree: !0
41
+ }), i;
32
42
  };
33
43
  return N(() => {
34
- setTimeout(() => k(c.value), 500), p.value = !1;
35
- }), (o, n) => {
36
- var f;
37
- return r(), i("div", H, [
38
- V(o.$slots, "sidebar-start", {}, void 0, !0),
39
- w("nav", {
44
+ const l = B(p.value);
45
+ L(() => {
46
+ l == null || l.disconnect();
47
+ });
48
+ }), (l, i) => {
49
+ var c;
50
+ return r(), d("div", R, [
51
+ w(l.$slots, "sidebar-start", {}, void 0, !0),
52
+ V("nav", {
40
53
  ref_key: "scrollerEl",
41
- ref: m,
42
- "aria-label": `Table of contents for ${(f = o.parsedSpec.info) == null ? void 0 : f.title}`,
54
+ ref: b,
55
+ "aria-label": `Table of contents for ${(c = l.parsedSpec.info) == null ? void 0 : c.title}`,
43
56
  class: "sidebar-pages custom-scroll custom-scroll-self-contain-overflow"
44
57
  }, [
45
- I(T, { level: 0 }, {
46
- default: b(() => [
47
- (r(!0), i(d, null, v(a(O).entries, (e) => (r(), i(d, {
58
+ G(g, { level: 0 }, {
59
+ default: h(() => [
60
+ (r(!0), d(o, null, y(n(O).entries, (e) => (r(), d(o, {
48
61
  key: e.id
49
62
  }, [
50
- e.isGroup ? (r(), i(d, { key: 0 }, [
51
- w("li", R, L(e.displayTitle ?? e.title), 1),
52
- (r(!0), i(d, null, v(e.children, (t) => (r(), u(y, {
63
+ e.isGroup ? (r(), d(o, { key: 0 }, [
64
+ V("li", j, M(e.displayTitle ?? e.title), 1),
65
+ (r(!0), d(o, null, y(e.children, (t) => (r(), f(S, {
53
66
  key: t.id,
54
67
  id: `sidebar-${t.id}`,
55
68
  "data-sidebar-type": "heading",
56
69
  hasChildren: t.children && t.children.length > 0,
57
- isActive: a(c) === t.id,
70
+ isActive: n(p) === t.id,
58
71
  item: {
59
72
  id: t.id,
60
73
  title: t.displayTitle ?? t.title,
@@ -62,49 +75,49 @@ const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-
62
75
  httpVerb: t.httpVerb,
63
76
  deprecated: t.deprecated ?? !1
64
77
  },
65
- open: a(_)[t.id] ?? !1,
78
+ open: n(_)[t.id] ?? !1,
66
79
  onToggleOpen: async () => {
67
- p.value = !0, a(g)(t.id), await a(C)(100), p.value = !1;
80
+ u.value = !0, n(T)(t.id), await n(C)(100), u.value = !1;
68
81
  }
69
82
  }, {
70
- default: b(() => {
71
- var l;
83
+ default: h(() => {
84
+ var s;
72
85
  return [
73
- t.children && ((l = t.children) == null ? void 0 : l.length) > 0 ? (r(), u(T, {
86
+ t.children && ((s = t.children) == null ? void 0 : s.length) > 0 ? (r(), f(g, {
74
87
  key: 0,
75
88
  level: 1
76
89
  }, {
77
- default: b(() => [
78
- (r(!0), i(d, null, v(t.children, (s) => (r(), i(d, {
79
- key: s.id
90
+ default: h(() => [
91
+ (r(!0), d(o, null, y(t.children, (a) => (r(), d(o, {
92
+ key: a.id
80
93
  }, [
81
- e.show ? (r(), u(y, {
94
+ e.show ? (r(), f(S, {
82
95
  key: 0,
83
- id: `sidebar-${s.id}`,
84
- isActive: a(c) === s.id,
96
+ id: `sidebar-${a.id}`,
97
+ isActive: n(p) === a.id,
85
98
  item: {
86
- id: s.id,
87
- title: s.displayTitle ?? s.title,
88
- select: s.select,
89
- httpVerb: s.httpVerb,
90
- deprecated: s.deprecated ?? !1
99
+ id: a.id,
100
+ title: a.displayTitle ?? a.title,
101
+ select: a.select,
102
+ httpVerb: a.httpVerb,
103
+ deprecated: a.deprecated ?? !1
91
104
  }
92
- }, null, 8, ["id", "isActive", "item"])) : h("", !0)
105
+ }, null, 8, ["id", "isActive", "item"])) : v("", !0)
93
106
  ], 64))), 128))
94
107
  ]),
95
108
  _: 2
96
- }, 1024)) : h("", !0)
109
+ }, 1024)) : v("", !0)
97
110
  ];
98
111
  }),
99
112
  _: 2
100
113
  }, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"]))), 128))
101
- ], 64)) : (r(), i(d, { key: 1 }, [
102
- e.show ? (r(), u(y, {
114
+ ], 64)) : (r(), d(o, { key: 1 }, [
115
+ e.show ? (r(), f(S, {
103
116
  key: 0,
104
117
  id: `sidebar-${e.id}`,
105
118
  "data-sidebar-type": "heading",
106
119
  hasChildren: e.children && e.children.length > 0,
107
- isActive: a(c) === e.id,
120
+ isActive: n(p) === e.id,
108
121
  item: {
109
122
  id: e.id,
110
123
  title: e.displayTitle ?? e.title,
@@ -112,53 +125,53 @@ const H = { class: "sidebar" }, M = ["aria-label"], R = { class: "sidebar-group-
112
125
  httpVerb: e.httpVerb,
113
126
  deprecated: e.deprecated ?? !1
114
127
  },
115
- open: a(_)[e.id] ?? !1,
128
+ open: n(_)[e.id] ?? !1,
116
129
  onToggleOpen: async () => {
117
- p.value = !0, a(g)(e.id), await a(C)(100), p.value = !1;
130
+ u.value = !0, n(T)(e.id), await n(C)(100), u.value = !1;
118
131
  }
119
132
  }, {
120
- default: b(() => {
133
+ default: h(() => {
121
134
  var t;
122
135
  return [
123
- e.children && ((t = e.children) == null ? void 0 : t.length) > 0 ? (r(), u(T, {
136
+ e.children && ((t = e.children) == null ? void 0 : t.length) > 0 ? (r(), f(g, {
124
137
  key: 0,
125
138
  level: 1
126
139
  }, {
127
- default: b(() => [
128
- (r(!0), i(d, null, v(e.children, (l) => (r(), i(d, {
129
- key: l.id
140
+ default: h(() => [
141
+ (r(!0), d(o, null, y(e.children, (s) => (r(), d(o, {
142
+ key: s.id
130
143
  }, [
131
- e.show ? (r(), u(y, {
144
+ e.show ? (r(), f(S, {
132
145
  key: 0,
133
- id: `sidebar-${l.id}`,
134
- isActive: a(c) === l.id,
146
+ id: `sidebar-${s.id}`,
147
+ isActive: n(p) === s.id,
135
148
  item: {
136
- id: l.id,
137
- title: l.displayTitle ?? l.title,
138
- select: l.select,
139
- httpVerb: l.httpVerb,
140
- deprecated: l.deprecated ?? !1
149
+ id: s.id,
150
+ title: s.displayTitle ?? s.title,
151
+ select: s.select,
152
+ httpVerb: s.httpVerb,
153
+ deprecated: s.deprecated ?? !1
141
154
  }
142
- }, null, 8, ["id", "isActive", "item"])) : h("", !0)
155
+ }, null, 8, ["id", "isActive", "item"])) : v("", !0)
143
156
  ], 64))), 128))
144
157
  ]),
145
158
  _: 2
146
- }, 1024)) : h("", !0)
159
+ }, 1024)) : v("", !0)
147
160
  ];
148
161
  }),
149
162
  _: 2
150
- }, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"])) : h("", !0)
163
+ }, 1032, ["id", "hasChildren", "isActive", "item", "open", "onToggleOpen"])) : v("", !0)
151
164
  ], 64))
152
165
  ], 64))), 128))
153
166
  ]),
154
167
  _: 1
155
168
  })
156
- ], 8, M),
157
- V(o.$slots, "sidebar-end", {}, void 0, !0)
169
+ ], 8, U),
170
+ w(l.$slots, "sidebar-end", {}, void 0, !0)
158
171
  ]);
159
172
  };
160
173
  }
161
174
  });
162
175
  export {
163
- Q as default
176
+ W as default
164
177
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SidebarElement.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-eb72afb2"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8f90da18"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -28,7 +28,7 @@ const D = ["id"], L = {
28
28
  setup(k, { emit: y }) {
29
29
  const i = k, p = y, { getFullHash: u, isIntersectionEnabled: r, replaceUrlState: w } = I(), l = U(), f = async () => {
30
30
  var e, t;
31
- i.hasChildren && p("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), i.open && (r.value = !1, await C(100), r.value = !0);
31
+ r.value = !1, i.hasChildren && p("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), await C(100), r.value = !0;
32
32
  }, S = () => {
33
33
  if (l.value.pathRouting)
34
34
  return R(l.value.pathRouting.basePath, i.item.id);
@@ -1,6 +1,6 @@
1
1
  import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
2
  type __VLS_Props = {
3
- configuration: ApiReferenceConfiguration;
3
+ configuration: Partial<ApiReferenceConfiguration>;
4
4
  };
5
5
  declare function __VLS_template(): {
6
6
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"SingleApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/SingleApiReference.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAW5E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,yBAAyB,CAAA;CACzC,CAAC;AAyCF,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;wBAVrB,GAAG;wBACH,GAAG;qCACU,GAAG;;;;EAa5C;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,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":"SingleApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/SingleApiReference.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAW5E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CAClD,CAAC;AAyCF,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;wBAVrB,GAAG;wBACH,GAAG;qCACU,GAAG;;;;EAa5C;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,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"}