@scalar/api-reference 1.25.34 → 1.25.35

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 (48) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/browser/standalone.js +6706 -6670
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +3 -3
  6. package/dist/components/ApiReferenceLayout.vue2.js +137 -133
  7. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
  9. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  10. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  11. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +61 -46
  12. package/dist/components/Content/Content.vue.js +1 -1
  13. package/dist/components/Content/Content.vue2.js +19 -19
  14. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
  15. package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
  16. package/dist/features/BaseUrl/ServerForm.vue2.js +39 -32
  17. package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
  18. package/dist/features/BaseUrl/ServerUrl.vue.js +2 -3
  19. package/dist/features/BaseUrl/ServerUrl.vue2.js +13 -15
  20. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +2 -0
  21. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  22. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
  23. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +37 -36
  24. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +4 -0
  25. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -1
  26. package/dist/features/BaseUrl/ServerVariablesForm.vue.js +1 -1
  27. package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +37 -31
  28. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +2 -0
  29. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
  30. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +3 -3
  31. package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +39 -35
  32. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +2 -0
  33. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
  34. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +4 -4
  35. package/dist/features/BaseUrl/ServerVariablesTextbox.vue2.js +11 -9
  36. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  37. package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
  38. package/dist/features/DownloadLink/DownloadLink.vue2.js +12 -11
  39. package/dist/index.js +1 -1
  40. package/dist/legacy/components/CardFormTextInput.vue.d.ts +2 -0
  41. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
  42. package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
  43. package/dist/legacy/components/CardFormTextInput.vue2.js +39 -23
  44. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  45. package/dist/legacy/components/SecuritySchemeSelector.vue.js +2 -2
  46. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +67 -45
  47. package/dist/style.css +1 -1
  48. package/package.json +7 -7
@@ -1,46 +1,50 @@
1
- import { defineComponent as p, computed as i, openBlock as v, createElementBlock as f, createVNode as t, unref as a, withCtx as r, createElementVNode as _, toDisplayString as h } from "vue";
2
- import { ScalarListbox as S, ScalarButton as V, ScalarIcon as g } from "@scalar/components";
3
- const b = { class: "w-full" }, B = /* @__PURE__ */ p({
1
+ import { defineComponent as v, computed as r, openBlock as f, createBlock as S, unref as t, withCtx as c, createVNode as i, createElementVNode as d, createTextVNode as h, toDisplayString as V, pushScopeId as _, popScopeId as g } from "vue";
2
+ import { ScalarListbox as b, ScalarButton as x, ScalarIcon as I } from "@scalar/components";
3
+ const w = (o) => (_("data-v-1eae5319"), o = o(), g(), o), B = /* @__PURE__ */ w(() => /* @__PURE__ */ d("span", { class: "sr-only" }, "Selected:", -1)), k = /* @__PURE__ */ v({
4
4
  __name: "ServerVariablesSelect",
5
5
  props: {
6
6
  enum: {},
7
- value: {}
7
+ value: {},
8
+ controls: {}
8
9
  },
9
10
  emits: ["change"],
10
- setup(u, { emit: c }) {
11
- const l = u, d = c, o = i(
12
- () => l.enum.map((e) => ({ id: e, label: e }))
13
- ), n = i({
14
- get: () => o.value.find((e) => e.id === l.value),
15
- set: (e) => d("change", (e == null ? void 0 : e.id) ?? "")
11
+ setup(o, { emit: u }) {
12
+ const a = o, p = u, l = r(
13
+ () => a.enum.map((e) => ({ id: e, label: e }))
14
+ ), n = r({
15
+ get: () => l.value.find((e) => e.id === a.value),
16
+ set: (e) => p("change", (e == null ? void 0 : e.id) ?? "")
16
17
  });
17
- return (e, s) => (v(), f("div", b, [
18
- t(a(S), {
19
- modelValue: n.value,
20
- "onUpdate:modelValue": s[0] || (s[0] = (m) => n.value = m),
21
- options: o.value
22
- }, {
23
- default: r(() => [
24
- t(a(V), {
25
- class: "variable-select",
26
- fullWidth: "",
27
- variant: "ghost"
28
- }, {
29
- default: r(() => [
30
- _("span", null, h(e.value), 1),
31
- t(a(g), {
32
- icon: "ChevronDown",
33
- size: "xs"
34
- })
18
+ return (e, s) => (f(), S(t(b), {
19
+ modelValue: n.value,
20
+ "onUpdate:modelValue": s[0] || (s[0] = (m) => n.value = m),
21
+ fullWidth: "",
22
+ options: l.value
23
+ }, {
24
+ default: c(() => [
25
+ i(t(x), {
26
+ "aria-controls": e.controls,
27
+ class: "variable-select",
28
+ fullWidth: "",
29
+ variant: "ghost"
30
+ }, {
31
+ default: c(() => [
32
+ d("span", null, [
33
+ B,
34
+ h(" " + V(e.value), 1)
35
35
  ]),
36
- _: 1
37
- })
38
- ]),
39
- _: 1
40
- }, 8, ["modelValue", "options"])
41
- ]));
36
+ i(t(I), {
37
+ icon: "ChevronDown",
38
+ size: "xs"
39
+ })
40
+ ]),
41
+ _: 1
42
+ }, 8, ["aria-controls"])
43
+ ]),
44
+ _: 1
45
+ }, 8, ["modelValue", "options"]));
42
46
  }
43
47
  });
44
48
  export {
45
- B as default
49
+ k as default
46
50
  };
@@ -1,9 +1,11 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
2
  value: string;
3
+ controls?: string;
3
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
5
  change: (v: string) => void;
5
6
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
7
  value: string;
8
+ controls?: string;
7
9
  }>>> & {
8
10
  onChange?: ((v: string) => any) | undefined;
9
11
  }, {}, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"ServerVariablesTextbox.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerVariablesTextbox.vue"],"names":[],"mappings":";WAiDS,MAAM;;;;WAAN,MAAM;;;;AAwDf,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ServerVariablesTextbox.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerVariablesTextbox.vue"],"names":[],"mappings":";WAmDS,MAAM;eACF,MAAM;;;;WADV,MAAM;eACF,MAAM;;;;AAwDnB,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
- import o from "./ServerVariablesTextbox.vue2.js";
1
+ import e from "./ServerVariablesTextbox.vue2.js";
2
2
  /* empty css */
3
- import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-fbcac0a4"]]);
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(e, [["__scopeId", "data-v-0edbbce4"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -1,24 +1,26 @@
1
- import { defineComponent as p, computed as r, withDirectives as u, openBlock as m, createElementBlock as i, vModelText as v } from "vue";
2
- const x = /* @__PURE__ */ p({
1
+ import { defineComponent as c, computed as p, withDirectives as i, openBlock as u, createElementBlock as m, vModelText as d } from "vue";
2
+ const v = ["aria-controls"], x = /* @__PURE__ */ c({
3
3
  __name: "ServerVariablesTextbox",
4
4
  props: {
5
- value: {}
5
+ value: {},
6
+ controls: {}
6
7
  },
7
8
  emits: ["change"],
8
9
  setup(l, { emit: a }) {
9
- const n = l, s = a, e = r({
10
+ const n = l, s = a, t = p({
10
11
  get: () => n.value,
11
- set: (t) => s("change", t)
12
+ set: (e) => s("change", e)
12
13
  });
13
- return (t, o) => u((m(), i("input", {
14
- "onUpdate:modelValue": o[0] || (o[0] = (c) => e.value = c),
14
+ return (e, o) => i((u(), m("input", {
15
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => t.value = r),
16
+ "aria-controls": e.controls,
15
17
  autocomplete: "off",
16
18
  class: "variable-textbox",
17
19
  placeholder: "value",
18
20
  spellcheck: "false",
19
21
  type: "text"
20
- }, null, 512)), [
21
- [v, e.value]
22
+ }, null, 8, v)), [
23
+ [d, t.value]
22
24
  ]);
23
25
  }
24
26
  });
@@ -1 +1 @@
1
- {"version":3,"file":"DownloadLink.vue.d.ts","sourceRoot":"","sources":["../../../src/features/DownloadLink/DownloadLink.vue"],"names":[],"mappings":";gBA2Ec,MAAM;;gBAAN,MAAM;;AAqEpB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"DownloadLink.vue.d.ts","sourceRoot":"","sources":["../../../src/features/DownloadLink/DownloadLink.vue"],"names":[],"mappings":";gBA4Ec,MAAM;;gBAAN,MAAM;;AAqEpB,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./DownloadLink.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-af826d86"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4ae6d175"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,30 +1,31 @@
1
1
  import { defineComponent as m, inject as d, openBlock as o, createElementBlock as e, unref as t, Fragment as _, createCommentVNode as u } from "vue";
2
- import { HIDE_DOWNLOAD_BUTTON_SYMBOL as D, OPENAPI_DOCUMENT_URL_SYMBOL as w } from "../../helpers/provideSymbols.js";
3
- import { downloadSpecBus as O } from "../../helpers/specDownloads.js";
4
- const f = { class: "download" }, k = ["href"], A = /* @__PURE__ */ m({
2
+ import { HIDE_DOWNLOAD_BUTTON_SYMBOL as D, OPENAPI_DOCUMENT_URL_SYMBOL as k } from "../../helpers/provideSymbols.js";
3
+ import { downloadSpecBus as w } from "../../helpers/specDownloads.js";
4
+ const O = { class: "download" }, f = ["href"], A = /* @__PURE__ */ m({
5
5
  __name: "DownloadLink",
6
6
  props: {
7
7
  specTitle: {}
8
8
  },
9
9
  setup(s) {
10
- const r = s, p = d(D), n = d(w), i = () => {
11
- O.emit({ id: "", specTitle: r.specTitle });
10
+ const r = s, i = d(D), n = d(k), p = () => {
11
+ w.emit({ id: "", specTitle: r.specTitle });
12
12
  };
13
13
  return (b, B) => {
14
- var c, l, a;
15
- return o(), e("div", f, [
16
- (c = t(p)) != null && c() ? u("", !0) : (o(), e(_, { key: 0 }, [
17
- (l = t(n)) != null && l() ? (o(), e("a", {
14
+ var l, c, a;
15
+ return o(), e("div", O, [
16
+ (l = t(i)) != null && l() ? u("", !0) : (o(), e(_, { key: 0 }, [
17
+ (c = t(n)) != null && c() ? (o(), e("a", {
18
18
  key: 0,
19
19
  class: "download-button",
20
20
  download: "",
21
21
  href: (a = t(n)) == null ? void 0 : a(),
22
22
  target: "_blank"
23
- }, " Download OpenAPI Document ", 8, k)) : (o(), e("button", {
23
+ }, " Download OpenAPI Document ", 8, f)) : (o(), e("button", {
24
24
  key: 1,
25
25
  class: "download-button",
26
+ role: "link",
26
27
  type: "button",
27
- onClick: i
28
+ onClick: p
28
29
  }, " Download OpenAPI Document "))
29
30
  ], 64))
30
31
  ]);