@scalar/api-reference 1.25.66 → 1.25.68

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 (34) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/browser/standalone.js +14512 -14576
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.js +21 -21
  5. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  6. package/dist/components/Content/Content.vue.js +2 -2
  7. package/dist/components/Content/Content.vue2.js +19 -19
  8. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  9. package/dist/components/Content/Schema/SchemaProperty.vue.js +3 -3
  10. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  12. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +7 -10
  13. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  14. package/dist/components/Layouts/ModernLayout.vue2.js +16 -16
  15. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  16. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  17. package/dist/features/ApiClientModal/ApiClientModal.vue.js +25 -22
  18. package/dist/features/ApiClientModal/useApiClient.d.ts +1345 -2467
  19. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  20. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  21. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  22. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +71 -70
  23. package/dist/index.js +1 -1
  24. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  25. package/dist/legacy/components/SecuritySchemeSelector.vue.js +3 -3
  26. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +25 -30
  27. package/dist/legacy/stores/index.d.ts +1 -0
  28. package/dist/legacy/stores/index.d.ts.map +1 -1
  29. package/dist/legacy/stores/useExampleStore.d.ts +5 -0
  30. package/dist/legacy/stores/useExampleStore.d.ts.map +1 -0
  31. package/dist/legacy/stores/useExampleStore.js +8 -0
  32. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  33. package/dist/style.css +1 -1
  34. package/package.json +11 -11
@@ -1 +1 @@
1
- {"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/SecuritySchemeSelector.vue"],"names":[],"mappings":"AAqMA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EACF,SAAS,CAAC,yBAAyB,GACnC,SAAS,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,GAC7C,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;CACpD,CAAC;;;;;;AAoOF,wBAOG"}
1
+ {"version":3,"file":"SecuritySchemeSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/legacy/components/SecuritySchemeSelector.vue"],"names":[],"mappings":"AAiMA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EACF,SAAS,CAAC,yBAAyB,GACnC,SAAS,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,GAC7C,WAAW,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;CACpD,CAAC;;;;;;AAgOF,wBAOG"}
@@ -1,7 +1,7 @@
1
- import o from "./SecuritySchemeSelector.vue2.js";
1
+ import e from "./SecuritySchemeSelector.vue2.js";
2
2
  /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9427c485"]]);
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(e, [["__scopeId", "data-v-bc97e06b"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,52 +1,47 @@
1
- import { defineComponent as z, onMounted as I, onServerPrefetch as K, computed as l, openBlock as S, createElementBlock as P, toDisplayString as m, createBlock as U, unref as s, withCtx as v, createVNode as b, createElementVNode as $, createTextVNode as D, createCommentVNode as E } from "vue";
2
- import { ScalarListbox as H, ScalarButton as M, ScalarIcon as T } from "@scalar/components";
3
- import { useApiClient as F } from "../../features/ApiClientModal/useApiClient.js";
4
- import { useAuthenticationStore as W } from "../stores/useAuthenticationStore.js";
5
- const q = {
1
+ import { defineComponent as _, onMounted as z, onServerPrefetch as I, computed as l, openBlock as S, createElementBlock as K, toDisplayString as m, createBlock as P, unref as s, withCtx as v, createVNode as b, createElementVNode as U, createTextVNode as $, createCommentVNode as D } from "vue";
2
+ import { ScalarListbox as E, ScalarButton as H, ScalarIcon as M } from "@scalar/components";
3
+ import { useApiClient as T } from "../../features/ApiClientModal/useApiClient.js";
4
+ import { useAuthenticationStore as F } from "../stores/useAuthenticationStore.js";
5
+ const W = {
6
6
  key: 0,
7
7
  class: "security-scheme-label text-sm text-c-3"
8
- }, X = /* @__PURE__ */ z({
8
+ }, R = /* @__PURE__ */ _({
9
9
  __name: "SecuritySchemeSelector",
10
10
  props: {
11
11
  value: {}
12
12
  },
13
13
  emits: ["input"],
14
14
  setup(A, { emit: w }) {
15
- const u = A, C = w, { authentication: c, setAuthentication: O } = W(), { client: p } = F();
16
- I(() => {
17
- c.preferredSecurityScheme || i(Object.keys(u.value ?? {})[0] ?? null);
15
+ const i = A, C = w, { authentication: c, setAuthentication: O } = F(), { client: p } = T();
16
+ z(() => {
17
+ c.preferredSecurityScheme || u(Object.keys(i.value ?? {})[0] ?? null);
18
18
  });
19
- const i = (e) => {
19
+ const u = (e) => {
20
20
  var t;
21
21
  if (O({
22
22
  preferredSecurityScheme: e
23
23
  }), (t = p.value) != null && t.store) {
24
- const {
25
- activeCollection: r,
26
- collections: o,
27
- collectionMutators: x,
28
- securitySchemes: j
29
- } = p.value.store, f = (r == null ? void 0 : r.uid) ?? Object.keys(o)[0], y = Object.values(j).find(
30
- ({ nameKey: _ }) => _ === e
24
+ const { collections: r, collectionMutators: o, securitySchemes: x } = p.value.store, f = Object.keys(r)[0], y = Object.values(x).find(
25
+ ({ nameKey: j }) => j === e
31
26
  );
32
- y && f && x.edit(f, "selectedSecuritySchemeUids", [
27
+ y && f && o.edit(f, "selectedSecuritySchemeUids", [
33
28
  y.uid
34
29
  ]);
35
30
  }
36
31
  C("input", e);
37
32
  };
38
- K(
39
- () => i(Object.keys(u.value ?? {})[0] ?? null)
33
+ I(
34
+ () => u(Object.keys(i.value ?? {})[0] ?? null)
40
35
  );
41
36
  const B = (e) => !(e != null && e.type), L = (e) => e.type.toLowerCase() === "apikey", g = (e) => e.type === "http" && e.scheme.toLowerCase() === "basic" || e.type.toLowerCase() === "basic", k = (e) => e.type === "http" && e.scheme.toLowerCase() === "bearer", N = (e) => e.type.toLowerCase() === "oauth2", a = (e, t) => `${V(e)} (${t})`, V = (e) => {
42
37
  var t, r;
43
38
  return B(e) ? "No Authentication" : L(e) ? "API Key" : g(e) ? "Basic Authentication" : k(e) ? "Bearer Authentication" : N(e) ? (t = e.flows) != null && t.implicit ? "OAuth 2.0 Implicit" : (r = e.flows) != null && r.password ? "OAuth 2.0 Password" : "OAuth 2.0" : `${e.type} (not yet supported)`;
44
- }, n = l(() => Object.keys(u.value ?? {})), d = l(
39
+ }, n = l(() => Object.keys(i.value ?? {})), d = l(
45
40
  () => n.value.map((e) => {
46
41
  var t;
47
42
  return {
48
43
  id: e,
49
- label: a((t = u.value) == null ? void 0 : t[e], e)
44
+ label: a((t = i.value) == null ? void 0 : t[e], e)
50
45
  };
51
46
  })
52
47
  ), h = l({
@@ -56,11 +51,11 @@ const q = {
56
51
  (t) => t.id === c.preferredSecurityScheme
57
52
  );
58
53
  },
59
- set: (e) => i((e == null ? void 0 : e.id) ?? "")
54
+ set: (e) => u((e == null ? void 0 : e.id) ?? "")
60
55
  });
61
56
  return (e, t) => {
62
57
  var r;
63
- return n.value.length === 1 ? (S(), P("div", q, m(a((r = e.value) == null ? void 0 : r[n.value[0]], n.value[0])), 1)) : n.value.length > 1 ? (S(), U(s(H), {
58
+ return n.value.length === 1 ? (S(), K("div", W, m(a((r = e.value) == null ? void 0 : r[n.value[0]], n.value[0])), 1)) : n.value.length > 1 ? (S(), P(s(E), {
64
59
  key: 1,
65
60
  modelValue: h.value,
66
61
  "onUpdate:modelValue": t[0] || (t[0] = (o) => h.value = o),
@@ -69,7 +64,7 @@ const q = {
69
64
  resize: ""
70
65
  }, {
71
66
  default: v(() => [
72
- b(s(M), {
67
+ b(s(H), {
73
68
  class: "security-scheme-button",
74
69
  fullWidth: "",
75
70
  variant: "ghost"
@@ -77,12 +72,12 @@ const q = {
77
72
  default: v(() => {
78
73
  var o;
79
74
  return [
80
- t[1] || (t[1] = $("span", { class: "sr-only" }, "Selected:", -1)),
81
- D(" " + m(s(c).preferredSecurityScheme ? a(
75
+ t[1] || (t[1] = U("span", { class: "sr-only" }, "Selected:", -1)),
76
+ $(" " + m(s(c).preferredSecurityScheme ? a(
82
77
  (o = e.value) == null ? void 0 : o[s(c).preferredSecurityScheme],
83
78
  s(c).preferredSecurityScheme
84
79
  ) : "No Authentication") + " ", 1),
85
- b(s(T), {
80
+ b(s(M), {
86
81
  icon: "ChevronDown",
87
82
  size: "xs"
88
83
  })
@@ -92,10 +87,10 @@ const q = {
92
87
  })
93
88
  ]),
94
89
  _: 1
95
- }, 8, ["modelValue", "options"])) : E("", !0);
90
+ }, 8, ["modelValue", "options"])) : D("", !0);
96
91
  };
97
92
  }
98
93
  });
99
94
  export {
100
- X as default
95
+ R as default
101
96
  };
@@ -2,4 +2,5 @@ export * from './useAuthenticationStore.js';
2
2
  export * from './useOpenApiStore.js';
3
3
  export * from './useRequestStore';
4
4
  export * from './useServerStore.js';
5
+ export * from './useExampleStore.js';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/legacy/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/legacy/stores/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare const useExampleStore: () => {
2
+ selectedExampleKey: import("vue").Ref<string | undefined, string | undefined>;
3
+ operationId: import("vue").Ref<string | undefined, string | undefined>;
4
+ };
5
+ //# sourceMappingURL=useExampleStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useExampleStore.d.ts","sourceRoot":"","sources":["../../../src/legacy/stores/useExampleStore.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;CAG1B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { ref as e } from "vue";
2
+ const o = e(), t = e(), p = () => ({
3
+ selectedExampleKey: o,
4
+ operationId: t
5
+ });
6
+ export {
7
+ p as useExampleStore
8
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"useOpenApiStore.d.ts","sourceRoot":"","sources":["../../../src/legacy/stores/useOpenApiStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAGhE,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAA;IACxC,cAAc,EACV,S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