@scalar/api-reference 1.25.24 → 1.25.26

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 (30) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/browser/standalone.js +10820 -10804
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  5. package/dist/components/ApiClientModal.vue.js +30 -18
  6. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  7. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +48 -48
  8. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  9. package/dist/features/BaseUrl/BaseUrl.vue.js +22 -35
  10. package/dist/features/BaseUrl/ServerForm.vue.d.ts +5 -5
  11. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
  12. package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
  13. package/dist/features/BaseUrl/ServerForm.vue2.js +40 -37
  14. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +4 -4
  15. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  16. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
  17. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +17 -17
  18. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  19. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
  20. package/dist/features/ExampleResponses/ExampleResponse.vue.js +1 -1
  21. package/dist/features/ExampleResponses/ExampleResponse.vue2.js +15 -18
  22. package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
  23. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/legacy/components/CardFormTextInput.vue.js +2 -2
  26. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
  27. package/dist/legacy/components/SecurityScheme.vue.js +1 -1
  28. package/dist/legacy/components/SecurityScheme.vue2.js +59 -59
  29. package/dist/style.css +1 -1
  30. package/package.json +9 -8
@@ -1,47 +1,47 @@
1
- import { defineComponent as v, computed as a, openBlock as r, createElementBlock as f, createVNode as c, unref as l, withCtx as i, normalizeClass as h, createElementVNode as _, renderSlot as g, createBlock as S, createCommentVNode as V } from "vue";
1
+ import { defineComponent as f, computed as n, openBlock as r, createElementBlock as v, createVNode as u, unref as l, withCtx as i, normalizeClass as V, createElementVNode as _, renderSlot as S, createBlock as h, createCommentVNode as g } from "vue";
2
2
  import { ScalarListbox as C, ScalarButton as k, ScalarIcon as x } from "@scalar/components";
3
- const B = { class: "w-full" }, w = { class: "custom-scroll" }, b = /* @__PURE__ */ v({
3
+ const B = { class: "w-full" }, w = { class: "custom-scroll" }, b = /* @__PURE__ */ f({
4
4
  __name: "ServerUrlSelect",
5
5
  props: {
6
6
  options: {},
7
- value: {}
7
+ modelValue: {}
8
8
  },
9
- emits: ["change"],
10
- setup(u, { emit: d }) {
11
- const n = u, m = d, o = a(
12
- () => n.options.map((e, t) => ({
9
+ emits: ["update:modelValue"],
10
+ setup(d, { emit: c }) {
11
+ const a = d, m = c, o = n(
12
+ () => a.options.map((e, t) => ({
13
13
  id: t.toString(),
14
14
  label: e.url ?? ""
15
15
  }))
16
- ), s = a({
16
+ ), s = n({
17
17
  get: () => {
18
18
  var e;
19
- return (e = o.value) == null ? void 0 : e.find((t) => t.id === n.value.toString());
19
+ return (e = o.value) == null ? void 0 : e.find((t) => t.id === a.modelValue.toString());
20
20
  },
21
- set: (e) => m("change", (e == null ? void 0 : e.id) ?? "")
21
+ set: (e) => m("update:modelValue", parseInt((e == null ? void 0 : e.id) ?? "", 10))
22
22
  });
23
- return (e, t) => (r(), f("div", B, [
24
- c(l(C), {
23
+ return (e, t) => (r(), v("div", B, [
24
+ u(l(C), {
25
25
  modelValue: s.value,
26
26
  "onUpdate:modelValue": t[0] || (t[0] = (p) => s.value = p),
27
27
  options: o.value,
28
28
  resize: ""
29
29
  }, {
30
30
  default: i(() => [
31
- c(l(k), {
32
- class: h(["url-select", { "pointer-events-none": o.value.length <= 1 }]),
31
+ u(l(k), {
32
+ class: V(["url-select", { "pointer-events-none": o.value.length <= 1 }]),
33
33
  fullWidth: "",
34
34
  variant: "ghost"
35
35
  }, {
36
36
  default: i(() => [
37
37
  _("span", w, [
38
- g(e.$slots, "default", {}, void 0, !0)
38
+ S(e.$slots, "default", {}, void 0, !0)
39
39
  ]),
40
- o.value.length > 1 ? (r(), S(l(x), {
40
+ o.value.length > 1 ? (r(), h(l(x), {
41
41
  key: 0,
42
42
  icon: "ChevronDown",
43
43
  size: "xs"
44
- })) : V("", !0)
44
+ })) : g("", !0)
45
45
  ]),
46
46
  _: 3
47
47
  }, 8, ["class"])
@@ -1,7 +1,7 @@
1
1
  import o from "./ExampleRequest.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-77ab5d94"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7e225631"]]);
5
5
  export {
6
- p as default
6
+ r as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleResponses/ExampleResponse.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;;cAKxC,OAAO,CAAC,cAAc;;cAAtB,OAAO,CAAC,cAAc;;AA2GlC,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":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ExampleResponses/ExampleResponse.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;;cAKxC,OAAO,CAAC,cAAc;;cAAtB,OAAO,CAAC,cAAc;;AAoGlC,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 "./ExampleResponse.vue2.js";
2
2
  /* empty css */
3
3
  import p from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-908bf679"]]);
4
+ const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-076c28f6"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,37 +1,34 @@
1
- import { defineComponent as c, openBlock as n, createBlock as a, unref as e, createElementBlock as i } from "vue";
1
+ import { defineComponent as l, openBlock as o, createBlock as p, unref as n, createElementBlock as c } from "vue";
2
2
  import { ScalarCodeBlock as m } from "@scalar/components";
3
- import { prettyPrintJson as l } from "@scalar/oas-utils/helpers";
4
3
  import { getExampleFromSchema as d } from "@scalar/oas-utils/spec-getters";
5
- const f = {
4
+ const i = {
6
5
  key: 2,
7
6
  class: "empty-state"
8
- }, B = /* @__PURE__ */ c({
7
+ }, _ = /* @__PURE__ */ l({
9
8
  __name: "ExampleResponse",
10
9
  props: {
11
10
  response: {}
12
11
  },
13
- setup(k) {
14
- return (o, u) => {
15
- var s, t, r, p;
16
- return (s = o.response) != null && s.example ? (n(), a(e(m), {
12
+ setup(f) {
13
+ return (e, k) => {
14
+ var s, t, r, a;
15
+ return (s = e.response) != null && s.example ? (o(), p(n(m), {
17
16
  key: 0,
18
17
  class: "bg-b-2",
19
- content: e(l)((t = o.response) == null ? void 0 : t.example),
18
+ content: (t = e.response) == null ? void 0 : t.example,
20
19
  lang: "json"
21
- }, null, 8, ["content"])) : (r = o.response) != null && r.schema ? (n(), a(e(m), {
20
+ }, null, 8, ["content"])) : (r = e.response) != null && r.schema ? (o(), p(n(m), {
22
21
  key: 1,
23
22
  class: "bg-b-2",
24
- content: e(l)(
25
- e(d)((p = o.response) == null ? void 0 : p.schema, {
26
- emptyString: "",
27
- mode: "read"
28
- })
29
- ),
23
+ content: n(d)((a = e.response) == null ? void 0 : a.schema, {
24
+ emptyString: "…",
25
+ mode: "read"
26
+ }),
30
27
  lang: "json"
31
- }, null, 8, ["content"])) : (n(), i("div", f, " No Body "));
28
+ }, null, 8, ["content"])) : (o(), c("div", i, " No Body "));
32
29
  };
33
30
  }
34
31
  });
35
32
  export {
36
- B as default
33
+ _ as default
37
34
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ExampleResponses.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-0696399e"]]);
4
+ const a = /* @__PURE__ */ e(o, [["__scopeId", "data-v-2dae81fd"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };
@@ -9,7 +9,7 @@ import q from "../../components/Card/CardContent.vue.js";
9
9
  import G from "../../components/Card/CardFooter.vue.js";
10
10
  import Q from "../ExampleRequest/ExamplePicker.vue.js";
11
11
  import { useClipboard as X } from "../../hooks/useClipboard.js";
12
- const Y = (u) => (A("data-v-0696399e"), u = u(), D(), u), Z = {
12
+ const Y = (u) => (A("data-v-2dae81fd"), u = u(), D(), u), Z = {
13
13
  key: 1,
14
14
  class: "scalar-card-checkbox"
15
15
  }, $ = /* @__PURE__ */ Y(() => /* @__PURE__ */ E("span", { class: "scalar-card-checkbox-checkmark" }, null, -1)), z = { class: "scalar-card-container custom-scroll" }, ee = {