@scalar/api-reference 1.37.0 → 1.38.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 (49) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/dist/browser/standalone.js +20061 -17877
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
  5. package/dist/components/Content/Tags/Tag.vue.js +22 -11
  6. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  7. package/dist/components/GettingStarted.vue.js +2 -2
  8. package/dist/components/GettingStarted.vue2.js +22 -22
  9. package/dist/esm.d.ts +2 -2
  10. package/dist/esm.d.ts.map +1 -1
  11. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  12. package/dist/features/api-client-modal/useApiClient.d.ts +72 -72
  13. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  14. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts +2 -2
  15. package/dist/features/document-source/hooks/useDocumentFetcher.d.ts.map +1 -1
  16. package/dist/features/document-source/hooks/useDocumentSource.d.ts +2 -2
  17. package/dist/features/document-source/hooks/useDocumentSource.d.ts.map +1 -1
  18. package/dist/features/document-source/hooks/useDocumentSource.js +38 -34
  19. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  20. package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
  21. package/dist/features/example-responses/ExampleResponse.vue2.js +23 -19
  22. package/dist/features/multiple-documents/DocumentSelector.vue.d.ts +2 -2
  23. package/dist/features/multiple-documents/DocumentSelector.vue.d.ts.map +1 -1
  24. package/dist/features/multiple-documents/useMultipleDocuments.d.ts +4 -4
  25. package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
  26. package/dist/features/multiple-documents/useMultipleDocuments.js +2 -2
  27. package/dist/hooks/useFreezing.d.ts.map +1 -1
  28. package/dist/hooks/useFreezing.js +18 -18
  29. package/dist/index.js +1 -1
  30. package/dist/standalone/lib/html-api.d.ts +3 -3
  31. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  32. package/dist/standalone/lib/register-globals.d.ts.map +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/types.d.ts +2 -2
  35. package/dist/types.d.ts.map +1 -1
  36. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  37. package/dist/v2/ApiReferenceWorkspace.vue.js +94 -83
  38. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  39. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
  40. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +18 -19
  41. package/dist/v2/helpers/map-configuration.d.ts +2 -2
  42. package/dist/v2/hooks/use-workspace-store-events.d.ts +2 -1
  43. package/dist/v2/hooks/use-workspace-store-events.d.ts.map +1 -1
  44. package/dist/v2/hooks/use-workspace-store-events.js +9 -9
  45. package/package.json +20 -20
  46. package/dist/blocks/constants.d.ts +0 -9
  47. package/dist/blocks/constants.d.ts.map +0 -1
  48. package/dist/blocks/helpers/getPointer.d.ts +0 -22
  49. package/dist/blocks/helpers/getPointer.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAK9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAC/C,CAAC;AA0CF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAsBhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tags/Tag.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;AAK9E,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAA;IACjB,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC5B,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAC/C,CAAC;AAoDF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAsBhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
- import { defineComponent as s, createBlock as e, openBlock as r, normalizeProps as t, mergeProps as a, withCtx as n, renderSlot as p } from "vue";
1
+ import { defineComponent as r, createBlock as a, openBlock as e, withCtx as t, renderSlot as n } from "vue";
2
2
  import l from "./ClassicLayout.vue.js";
3
3
  import u from "./ModernLayout.vue.js";
4
- const c = /* @__PURE__ */ s({
4
+ const m = /* @__PURE__ */ r({
5
5
  __name: "Tag",
6
6
  props: {
7
7
  tag: {},
@@ -10,20 +10,31 @@ const c = /* @__PURE__ */ s({
10
10
  isLoading: { type: Boolean },
11
11
  onShowMore: { type: Function }
12
12
  },
13
- setup(i) {
14
- return (o, m) => o.layout === "classic" ? (r(), e(l, t(a({ key: 0 }, o.$props)), {
15
- default: n(() => [
16
- p(o.$slots, "default")
13
+ setup(s) {
14
+ return (o, i) => o.layout === "classic" ? (e(), a(l, {
15
+ key: 0,
16
+ layout: o.layout,
17
+ tag: o.tag
18
+ }, {
19
+ default: t(() => [
20
+ n(o.$slots, "default")
17
21
  ]),
18
22
  _: 3
19
- }, 16)) : (r(), e(u, t(a({ key: 1 }, o.$props)), {
20
- default: n(() => [
21
- p(o.$slots, "default")
23
+ }, 8, ["layout", "tag"])) : (e(), a(u, {
24
+ key: 1,
25
+ isLoading: o.isLoading,
26
+ layout: o.layout,
27
+ moreThanOneTag: o.moreThanOneTag,
28
+ onShowMore: o.onShowMore,
29
+ tag: o.tag
30
+ }, {
31
+ default: t(() => [
32
+ n(o.$slots, "default")
22
33
  ]),
23
34
  _: 3
24
- }, 16));
35
+ }, 8, ["isLoading", "layout", "moreThanOneTag", "onShowMore", "tag"]));
25
36
  }
26
37
  });
27
38
  export {
28
- c as default
39
+ m as default
29
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"GettingStarted.vue.d.ts","sourceRoot":"","sources":["../../src/components/GettingStarted.vue"],"names":[],"mappings":"AA4cA,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE1D,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAA;CACf,CAAC;;;YAIwC,OAAO;eAAS,MAAM;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;AAqYhE,wBAOG"}
1
+ {"version":3,"file":"GettingStarted.vue.d.ts","sourceRoot":"","sources":["../../src/components/GettingStarted.vue"],"names":[],"mappings":"AA4cA,OAAO,EAAe,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE1D,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,OAAO,CAAA;CACf,CAAC;;;YAIwC,OAAO;eAAS,MAAM;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;AAuYhE,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 e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-bc17fac9"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-87962c91"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as b, createElementBlock as r, openBlock as o, createElementVNode as e, createStaticVNode as c, createVNode as i, unref as l, withCtx as n, createTextVNode as d, Fragment as u, renderList as w, normalizeClass as y, toDisplayString as A } from "vue";
1
+ import { defineComponent as f, createElementBlock as o, openBlock as i, createElementVNode as e, createStaticVNode as r, createVNode as c, unref as l, withCtx as n, createTextVNode as d, Fragment as w, renderList as y, normalizeClass as A, toDisplayString as C } from "vue";
2
2
  import { ScalarButton as p } from "@scalar/components";
3
- import { themeLabels as f } from "@scalar/themes";
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" }, _ = ["onClick"], P = /* @__PURE__ */ b({
3
+ import { themeLabels as v } from "@scalar/themes";
4
+ const S = { class: "start custom-scroll" }, x = { class: "start-copy" }, b = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, _ = ["onClick"], P = /* @__PURE__ */ f({
5
5
  __name: "GettingStarted",
6
6
  props: {
7
7
  theme: {}
8
8
  },
9
9
  emits: ["changeTheme", "loadSwaggerFile", "linkSwaggerFile", "updateContent"],
10
- setup(E, { emit: v }) {
11
- const g = v, m = [
10
+ setup(E, { emit: g }) {
11
+ const m = g, h = [
12
12
  "default",
13
13
  "alternate",
14
14
  "moon",
@@ -20,19 +20,19 @@ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { c
20
20
  "mars",
21
21
  "deepSpace"
22
22
  ];
23
- async function h() {
23
+ async function u() {
24
24
  const s = await fetch(
25
25
  "https://registry.scalar.com/@scalar/apis/galaxy/latest?format=yaml"
26
26
  );
27
- g("updateContent", await s.text());
27
+ m("updateContent", await s.text());
28
28
  }
29
- return (s, a) => (o(), r("div", C, [
30
- e("div", S, [
31
- a[3] || (a[3] = c('<div class="start-logo" data-v-bc17fac9><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-bc17fac9><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-bc17fac9></path></svg></div><h1 class="start-h1" data-v-bc17fac9>Swagger Editor</h1><p class="start-p" data-v-bc17fac9> 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(p), {
34
- fullWidth: "",
35
- onClick: h
29
+ return (s, a) => (i(), o("div", S, [
30
+ e("div", x, [
31
+ a[3] || (a[3] = r('<div class="start-logo" data-v-87962c91><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-87962c91><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-87962c91></path></svg></div><h1 class="start-h1" data-v-87962c91>Swagger Editor</h1><p class="start-p" data-v-87962c91> 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", b, [
33
+ c(l(p), {
34
+ class: "w-full",
35
+ onClick: u
36
36
  }, {
37
37
  default: n(() => a[1] || (a[1] = [
38
38
  d(" Show Example ")
@@ -40,8 +40,8 @@ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { c
40
40
  _: 1,
41
41
  __: [1]
42
42
  }),
43
- i(l(p), {
44
- fullWidth: "",
43
+ c(l(p), {
44
+ class: "w-full",
45
45
  variant: "outlined",
46
46
  onClick: a[0] || (a[0] = (t) => s.$emit("loadSwaggerFile"))
47
47
  }, {
@@ -54,17 +54,17 @@ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { c
54
54
  ])
55
55
  ]),
56
56
  e("div", k, [
57
- a[5] || (a[5] = c('<div class="start-section start-section-integrations" data-v-bc17fac9><div class="start-h2" data-v-bc17fac9>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-bc17fac9><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-bc17fac9><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-bc17fac9></path></svg><span data-v-bc17fac9>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-bc17fac9><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-bc17fac9><g data-v-bc17fac9><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-bc17fac9></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-bc17fac9></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-bc17fac9></path></g></svg><span data-v-bc17fac9>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-bc17fac9><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-bc17fac9><g fill="currentColor" fill-rule="nonzero" data-v-bc17fac9><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-bc17fac9></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-bc17fac9></polygon></g></svg><span data-v-bc17fac9>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-bc17fac9><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-bc17fac9><g fill="none" fill-rule="evenodd" data-v-bc17fac9><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-bc17fac9></circle><g stroke="currentColor" data-v-bc17fac9><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-bc17fac9></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-bc17fac9></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-bc17fac9></ellipse></g></g></svg><span data-v-bc17fac9>React</span></a></div>', 1)),
57
+ a[5] || (a[5] = r('<div class="start-section start-section-integrations" data-v-87962c91><div class="start-h2" data-v-87962c91>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-87962c91><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-87962c91><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-87962c91></path></svg><span data-v-87962c91>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-87962c91><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-87962c91><g data-v-87962c91><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-87962c91></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-87962c91></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-87962c91></path></g></svg><span data-v-87962c91>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-87962c91><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-87962c91><g fill="currentColor" fill-rule="nonzero" data-v-87962c91><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-87962c91></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-87962c91></polygon></g></svg><span data-v-87962c91>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-87962c91><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-87962c91><g fill="none" fill-rule="evenodd" data-v-87962c91><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-87962c91></circle><g stroke="currentColor" data-v-87962c91><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-87962c91></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-87962c91></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-87962c91></ellipse></g></g></svg><span data-v-87962c91>React</span></a></div>', 1)),
58
58
  e("div", Z, [
59
59
  a[4] || (a[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
60
- (o(), r(u, null, w(m, (t) => e("div", {
60
+ (i(), o(w, null, y(h, (t) => e("div", {
61
61
  key: t,
62
- class: y(["start-item", { "start-item-active": t === s.theme }]),
63
- onClick: (F) => s.$emit("changeTheme", { id: t, label: l(f)[t] })
64
- }, A(l(f)[t]), 11, _)), 64))
62
+ class: A(["start-item", { "start-item-active": t === s.theme }]),
63
+ onClick: (F) => s.$emit("changeTheme", { id: t, label: l(v)[t] })
64
+ }, C(l(v)[t]), 11, _)), 64))
65
65
  ])
66
66
  ]),
67
- a[6] || (a[6] = c('<p class="start-h1" data-v-bc17fac9>Features</p><ul class="start-ul" data-v-bc17fac9><li data-v-bc17fac9><p class="start-h3" data-v-bc17fac9>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-bc17fac9><p class="start-h3" data-v-bc17fac9>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-bc17fac9><p class="start-h3" data-v-bc17fac9>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-bc17fac9><p class="start-h3" data-v-bc17fac9>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-bc17fac9><p class="start-h3" data-v-bc17fac9>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-bc17fac9><p class="start-h3" data-v-bc17fac9>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
67
+ a[6] || (a[6] = r('<p class="start-h1" data-v-87962c91>Features</p><ul class="start-ul" data-v-87962c91><li data-v-87962c91><p class="start-h3" data-v-87962c91>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-87962c91><p class="start-h3" data-v-87962c91>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-87962c91><p class="start-h3" data-v-87962c91>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-87962c91><p class="start-h3" data-v-87962c91>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-87962c91><p class="start-h3" data-v-87962c91>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-87962c91><p class="start-h3" data-v-87962c91>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
68
68
  ]));
69
69
  }
70
70
  });
package/dist/esm.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ApiReferenceConfiguration, SpecConfiguration } from '@scalar/types/api-reference';
1
+ import type { ApiReferenceConfiguration, SourceConfiguration } from '@scalar/types/api-reference';
2
2
  /**
3
3
  * Initialize Scalar References
4
4
  *
@@ -16,7 +16,7 @@ initialConfig: Partial<ApiReferenceConfiguration> | Partial<ApiReferenceConfigur
16
16
  mountOnInitialize?: boolean): {
17
17
  /** Update the configuration for a mounted reference */
18
18
  updateConfig(newConfig: Partial<ApiReferenceConfiguration>, mergeConfigs?: boolean): void;
19
- updateSpec(spec: SpecConfiguration): void;
19
+ updateSpec(spec: SourceConfiguration): void;
20
20
  /** Mount the references to a given element */
21
21
  mount: (mountingEl?: HTMLElement | null) => void;
22
22
  /** Unmount the app from an element */
package/dist/esm.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"esm.d.ts","sourceRoot":"","sources":["../src/esm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAO/F;;;;GAIG;AACH,wBAAgB,sBAAsB;AACpC,yCAAyC;AACzC,EAAE,EAAE,WAAW,GAAG,IAAI;AACtB,iDAAiD;AACjD,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC,EAAE;AACxF;;;GAGG;AACH,iBAAiB,UAAO;IA2BtB,uDAAuD;4BAC/B,OAAO,CAAC,yBAAyB,CAAC;qBAOzC,iBAAiB;IAOlC,8CAA8C;;IAE9C,sCAAsC;;EAGzC"}
1
+ {"version":3,"file":"esm.d.ts","sourceRoot":"","sources":["../src/esm.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAMjG;;;;GAIG;AACH,wBAAgB,sBAAsB;AACpC,yCAAyC;AACzC,EAAE,EAAE,WAAW,GAAG,IAAI;AACtB,iDAAiD;AACjD,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC,EAAE;AACxF;;;GAGG;AACH,iBAAiB,UAAO;IA2BtB,uDAAuD;4BAC/B,OAAO,CAAC,yBAAyB,CAAC;qBAOzC,mBAAmB;IAOpC,8CAA8C;;IAE9C,sCAAsC;;EAGzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/api-client-modal/ApiClientModal.vue"],"names":[],"mappings":"AA+JA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,6BAA6B,CAAA;AAUpC,KAAK,WAAW,GAAG;IAEjB,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,GAC7D,IAAI,CAAC,yBAAyB,EAAE,iBAAiB,CAAC,CAAA;IACpD,oBAAoB,EAAE,WAAW,CAAC,QAAQ,CAAA;CAC3C,CAAC;;AAgKF,wBAMG"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/api-client-modal/ApiClientModal.vue"],"names":[],"mappings":"AA+JA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EACV,sBAAsB,EAEtB,yBAAyB,EAC1B,MAAM,6BAA6B,CAAA;AAUpC,KAAK,WAAW,GAAG;IAEjB,aAAa,EAAE,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,GAC7D,IAAI,CAAC,yBAAyB,EAAE,iBAAiB,CAAC,CAAA;IACpD,oBAAoB,EAAE,WAAW,CAAC,QAAQ,CAAA;CAC3C,CAAC;;AAgKF,wBAMG"}