@scalar/api-reference 1.25.99 → 1.25.100

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.
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientLibraries.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d0104df2"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-35fd541a"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":";AAiiBA,wBAMG"}
1
+ {"version":3,"file":"ClientSelector.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ClientLibraries/ClientSelector.vue"],"names":[],"mappings":";AAmiBA,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClientSelector.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-2f3ff819"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b29373e8"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as S, ref as w, openBlock as l, createElementBlock as r, Fragment as u, renderList as d, unref as t, normalizeClass as c, createElementVNode as s, createVNode as f, toDisplayString as m, createCommentVNode as N } from "vue";
2
- import { ScalarIcon as k } from "@scalar/components";
3
- import { useHttpClientStore as x } from "../../../stores/useHttpClientStore.js";
4
- const I = ["onClick"], $ = ["value"], z = ["label"], B = ["aria-label", "value"], M = {
1
+ import { defineComponent as S, ref as x, openBlock as l, createElementBlock as r, Fragment as u, renderList as d, unref as t, normalizeClass as o, createElementVNode as a, createVNode as f, toDisplayString as m, createCommentVNode as w } from "vue";
2
+ import { ScalarIcon as h } from "@scalar/components";
3
+ import { useHttpClientStore as N } from "../../../stores/useHttpClientStore.js";
4
+ const I = ["onClick"], $ = { class: "client-libraries-text" }, z = ["value"], B = ["label"], M = ["aria-label", "value"], T = {
5
5
  "aria-hidden": "true",
6
6
  class: "client-libraries-icon__more"
7
- }, T = {
7
+ }, J = {
8
8
  key: 1,
9
9
  class: "client-libraries-icon",
10
10
  height: "50",
@@ -12,19 +12,20 @@ const I = ["onClick"], $ = ["value"], z = ["label"], B = ["aria-label", "value"]
12
12
  viewBox: "0 0 50 50",
13
13
  width: "50",
14
14
  xmlns: "http://www.w3.org/2000/svg"
15
- }, J = {
15
+ }, L = {
16
16
  key: 0,
17
- "aria-hidden": "true"
18
- }, E = /* @__PURE__ */ S({
17
+ "aria-hidden": "true",
18
+ class: "client-libraries-text"
19
+ }, F = /* @__PURE__ */ S({
19
20
  __name: "ClientSelector",
20
- setup(L) {
21
+ setup(O) {
21
22
  const {
22
- httpClient: a,
23
+ httpClient: s,
23
24
  setHttpClient: g,
24
25
  availableTargets: y,
25
26
  getClientTitle: p,
26
- getTargetTitle: v
27
- } = x(), h = w(), K = [
27
+ getTargetTitle: k
28
+ } = N(), v = x(), K = [
28
29
  {
29
30
  targetKey: "shell",
30
31
  clientKey: "curl"
@@ -49,88 +50,88 @@ const I = ["onClick"], $ = ["value"], z = ["label"], B = ["aria-label", "value"]
49
50
  (i) => y.value.find((n) => n.key === i.targetKey && n.clients.find(
50
51
  (e) => e.client === i.clientKey
51
52
  ))
52
- ), _ = (i) => `programming-language-${i === "js" ? "javascript" : i}`, C = (i) => i.targetKey === a.targetKey && i.clientKey === a.clientKey, b = (i) => K.some(
53
+ ), _ = (i) => `programming-language-${i === "js" ? "javascript" : i}`, C = (i) => i.targetKey === s.targetKey && i.clientKey === s.clientKey, b = (i) => K.some(
53
54
  (n) => n.targetKey === i.targetKey && n.clientKey === i.clientKey
54
55
  );
55
56
  return (i, n) => (l(), r("div", {
56
57
  ref_key: "containerRef",
57
- ref: h,
58
+ ref: v,
58
59
  class: "client-libraries-content"
59
60
  }, [
60
61
  (l(!0), r(u, null, d(t(K), (e) => (l(), r("button", {
61
62
  key: e.clientKey,
62
63
  "aria-hidden": "true",
63
- class: c(["client-libraries rendered-code-sdks", {
64
+ class: o(["client-libraries rendered-code-sdks", {
64
65
  "client-libraries__active": C(e)
65
66
  }]),
66
67
  tabindex: "-1",
67
68
  type: "button",
68
69
  onClick: () => t(g)(e)
69
70
  }, [
70
- s("div", {
71
- class: c(`client-libraries-icon__${e.targetKey}`)
71
+ a("div", {
72
+ class: o(`client-libraries-icon__${e.targetKey}`)
72
73
  }, [
73
- f(t(k), {
74
+ f(t(h), {
74
75
  class: "client-libraries-icon",
75
76
  icon: _(e.targetKey)
76
77
  }, null, 8, ["icon"])
77
78
  ], 2),
78
- s("span", null, m(t(v)(e)), 1)
79
+ a("span", $, m(t(k)(e)), 1)
79
80
  ], 10, I))), 128)),
80
- s("label", {
81
- class: c(["client-libraries client-libraries__select", {
82
- "client-libraries__active": t(a) && !b(t(a))
81
+ a("label", {
82
+ class: o(["client-libraries client-libraries__select", {
83
+ "client-libraries__active": t(s) && !b(t(s))
83
84
  }])
84
85
  }, [
85
- n[2] || (n[2] = s("span", { class: "sr-only" }, "Select Client Library", -1)),
86
- s("select", {
86
+ n[2] || (n[2] = a("span", { class: "sr-only" }, "Select Client Library", -1)),
87
+ a("select", {
87
88
  class: "language-select",
88
- value: JSON.stringify(t(a)),
89
+ value: JSON.stringify(t(s)),
89
90
  onInput: n[0] || (n[0] = (e) => t(g)(JSON.parse(e.target.value)))
90
91
  }, [
91
92
  (l(!0), r(u, null, d(t(y), (e) => (l(), r("optgroup", {
92
93
  key: e.key,
93
94
  label: e.title
94
95
  }, [
95
- (l(!0), r(u, null, d(e.clients, (o) => (l(), r("option", {
96
- key: o.client,
96
+ (l(!0), r(u, null, d(e.clients, (c) => (l(), r("option", {
97
+ key: c.client,
97
98
  "aria-label": `${e.title} ${t(p)({
98
99
  targetKey: e.key,
99
- clientKey: o.client
100
+ clientKey: c.client
100
101
  })}`,
101
102
  value: JSON.stringify({
102
103
  targetKey: e.key,
103
- clientKey: o.client
104
+ clientKey: c.client
104
105
  })
105
106
  }, m(t(p)({
106
107
  targetKey: e.key,
107
- clientKey: o.client
108
- })), 9, B))), 128))
109
- ], 8, z))), 128))
110
- ], 40, $),
111
- s("div", M, [
112
- t(a) && !b(t(a)) ? (l(), r("div", {
108
+ clientKey: c.client
109
+ })), 9, M))), 128))
110
+ ], 8, B))), 128))
111
+ ], 40, z),
112
+ a("div", T, [
113
+ t(s) && !b(t(s)) ? (l(), r("div", {
113
114
  key: 0,
114
- class: c(`client-libraries-icon__${t(a).targetKey}`)
115
+ class: o(`client-libraries-icon__${t(s).targetKey}`)
115
116
  }, [
116
- f(t(k), {
117
+ f(t(h), {
117
118
  class: "client-libraries-icon",
118
- icon: _(t(a).targetKey)
119
+ icon: _(t(s).targetKey)
119
120
  }, null, 8, ["icon"])
120
- ], 2)) : (l(), r("svg", T, n[1] || (n[1] = [
121
- s("g", {
121
+ ], 2)) : (l(), r("svg", J, n[1] || (n[1] = [
122
+ a("g", {
122
123
  fill: "currentColor",
123
124
  "fill-rule": "nonzero"
124
125
  }, [
125
- s("path", { d: "M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0" })
126
+ a("path", { d: "M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0" })
126
127
  ], -1)
127
128
  ])))
128
129
  ]),
129
- t(y).length ? (l(), r("span", J, " More ")) : N("", !0)
130
+ t(y).length ? (l(), r("span", L, " More ")) : w("", !0)
130
131
  ], 2)
131
132
  ], 512));
132
133
  }
133
134
  });
134
135
  export {
135
- E as default
136
+ F as default
136
137
  };
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-604f5c87"]]);
5
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-25d74a5d"]]);
6
6
  export {
7
7
  _ as default
8
8
  };
@@ -1,20 +1,20 @@
1
- import { defineComponent as A, computed as B, openBlock as r, createElementBlock as i, Fragment as d, createStaticVNode as E, createElementVNode as l, renderSlot as n, createVNode as o, unref as s, createBlock as a, withCtx as k, normalizeClass as L, renderList as N, createCommentVNode as p } from "vue";
1
+ import { defineComponent as A, computed as B, openBlock as a, createElementBlock as i, Fragment as d, createStaticVNode as E, createElementVNode as c, renderSlot as n, createVNode as o, unref as s, createBlock as r, withCtx as k, normalizeClass as L, renderList as N, createCommentVNode as p } from "vue";
2
2
  import { useActiveEntities as V } from "@scalar/api-client/store";
3
- import { RequestAuthDataTable as R } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
3
+ import { RequestAuth as R } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
4
  import { ScalarErrorBoundary as q } from "@scalar/components";
5
5
  import z from "./Lazy/Loading.vue.js";
6
6
  /* empty css */
7
- import D from "./Introduction/Introduction.vue.js";
8
- import F from "../../features/BaseUrl/BaseUrl.vue.js";
9
- import G from "./ClientLibraries/ClientLibraries.vue.js";
10
- import b from "./Tag/TagList.vue.js";
11
- import I from "../../features/Operation/Webhooks.vue.js";
12
- import T from "./Models/ModelsAccordion.vue.js";
13
- import W from "./Models/Models.vue.js";
14
- import { useSidebar as j } from "../../hooks/useSidebar.js";
15
- import { hasModels as H } from "../../helpers/hasModels.js";
16
- import { getModels as g } from "../../helpers/getModels.js";
17
- const J = { class: "narrow-references-container" }, K = { class: "scalar-client p-[9px] border-y-1/2" }, ce = /* @__PURE__ */ A({
7
+ import F from "./Introduction/Introduction.vue.js";
8
+ import G from "../../features/BaseUrl/BaseUrl.vue.js";
9
+ import I from "./ClientLibraries/ClientLibraries.vue.js";
10
+ import g from "./Tag/TagList.vue.js";
11
+ import W from "../../features/Operation/Webhooks.vue.js";
12
+ import j from "./Models/ModelsAccordion.vue.js";
13
+ import D from "./Models/Models.vue.js";
14
+ import { useSidebar as H } from "../../hooks/useSidebar.js";
15
+ import { hasModels as J } from "../../helpers/hasModels.js";
16
+ import { getModels as b } from "../../helpers/getModels.js";
17
+ const K = { class: "narrow-references-container" }, O = { class: "scalar-client introduction-card-item" }, le = /* @__PURE__ */ A({
18
18
  __name: "Content",
19
19
  props: {
20
20
  parsedSpec: {},
@@ -23,20 +23,20 @@ const J = { class: "narrow-references-container" }, K = { class: "scalar-client
23
23
  servers: {}
24
24
  },
25
25
  setup(C) {
26
- const m = C, { hideModels: w } = j(), { activeCollection: U } = V(), $ = B(
26
+ const m = C, { hideModels: w } = H(), { activeCollection: U } = V(), $ = B(
27
27
  () => m.layout === "classic" ? "after" : "aside"
28
28
  );
29
29
  return (e, u) => {
30
30
  var f, v, S, y;
31
- return r(), i(d, null, [
32
- u[0] || (u[0] = E('<div class="section-flare" data-v-604f5c87><div class="section-flare-item" data-v-604f5c87></div><div class="section-flare-item" data-v-604f5c87></div><div class="section-flare-item" data-v-604f5c87></div><div class="section-flare-item" data-v-604f5c87></div><div class="section-flare-item" data-v-604f5c87></div><div class="section-flare-item" data-v-604f5c87></div><div class="section-flare-item" data-v-604f5c87></div><div class="section-flare-item" data-v-604f5c87></div></div>', 1)),
33
- l("div", J, [
31
+ return a(), i(d, null, [
32
+ u[0] || (u[0] = E('<div class="section-flare" data-v-25d74a5d><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div><div class="section-flare-item" data-v-25d74a5d></div></div>', 1)),
33
+ c("div", K, [
34
34
  n(e.$slots, "start", {}, void 0, !0),
35
35
  o(s(z), {
36
36
  layout: e.layout,
37
37
  parsedSpec: e.parsedSpec
38
38
  }, null, 8, ["layout", "parsedSpec"]),
39
- (v = (f = e.parsedSpec) == null ? void 0 : f.info) != null && v.title || (y = (S = e.parsedSpec) == null ? void 0 : S.info) != null && y.description ? (r(), a(s(D), {
39
+ (v = (f = e.parsedSpec) == null ? void 0 : f.info) != null && v.title || (y = (S = e.parsedSpec) == null ? void 0 : S.info) != null && y.description ? (a(), r(s(F), {
40
40
  key: 0,
41
41
  info: e.parsedSpec.info,
42
42
  parsedSpec: e.parsedSpec
@@ -46,23 +46,23 @@ const J = { class: "narrow-references-container" }, K = { class: "scalar-client
46
46
  default: k(() => {
47
47
  var t;
48
48
  return [
49
- l("div", {
49
+ c("div", {
50
50
  class: L(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
51
51
  }, [
52
- o(s(F), {
52
+ o(s(G), {
53
53
  class: "introduction-card-item",
54
54
  defaultServerUrl: e.baseServerURL,
55
55
  servers: m.servers,
56
56
  specification: e.parsedSpec
57
57
  }, null, 8, ["defaultServerUrl", "servers", "specification"]),
58
- l("div", K, [
58
+ c("div", O, [
59
59
  o(s(R), {
60
60
  layout: "reference",
61
61
  selectedSecuritySchemeUids: ((t = s(U)) == null ? void 0 : t.selectedSecuritySchemeUids) ?? [],
62
62
  title: "Authentication"
63
63
  }, null, 8, ["selectedSecuritySchemeUids"])
64
64
  ]),
65
- o(s(G), { class: "introduction-card-item" })
65
+ o(s(I), { class: "introduction-card-item" })
66
66
  ], 2)
67
67
  ];
68
68
  }),
@@ -71,33 +71,33 @@ const J = { class: "narrow-references-container" }, K = { class: "scalar-client
71
71
  ]),
72
72
  _: 2
73
73
  }, 1032, ["info", "parsedSpec"])) : n(e.$slots, "empty-state", { key: 1 }, void 0, !0),
74
- e.parsedSpec.tags ? (r(), i(d, { key: 2 }, [
75
- e.parsedSpec["x-tagGroups"] ? (r(!0), i(d, { key: 0 }, N(e.parsedSpec["x-tagGroups"], (t) => (r(), a(s(b), {
74
+ e.parsedSpec.tags ? (a(), i(d, { key: 2 }, [
75
+ e.parsedSpec["x-tagGroups"] ? (a(!0), i(d, { key: 0 }, N(e.parsedSpec["x-tagGroups"], (t) => (a(), r(s(g), {
76
76
  key: t.name,
77
77
  layout: e.layout,
78
78
  spec: e.parsedSpec,
79
- tags: t.tags.map((c) => {
79
+ tags: t.tags.map((l) => {
80
80
  var h;
81
- return (h = e.parsedSpec.tags) == null ? void 0 : h.find((M) => M.name === c);
82
- }).filter((c) => !!c)
83
- }, null, 8, ["layout", "spec", "tags"]))), 128)) : (r(), a(s(b), {
81
+ return (h = e.parsedSpec.tags) == null ? void 0 : h.find((M) => M.name === l);
82
+ }).filter((l) => !!l)
83
+ }, null, 8, ["layout", "spec", "tags"]))), 128)) : (a(), r(s(g), {
84
84
  key: 1,
85
85
  layout: e.layout,
86
86
  spec: e.parsedSpec,
87
87
  tags: e.parsedSpec.tags
88
88
  }, null, 8, ["layout", "spec", "tags"]))
89
89
  ], 64)) : p("", !0),
90
- e.parsedSpec.webhooks ? (r(), a(s(I), {
90
+ e.parsedSpec.webhooks ? (a(), r(s(W), {
91
91
  key: 3,
92
92
  webhooks: e.parsedSpec.webhooks
93
93
  }, null, 8, ["webhooks"])) : p("", !0),
94
- s(H)(e.parsedSpec) && !s(w) ? (r(), i(d, { key: 4 }, [
95
- e.layout === "classic" ? (r(), a(s(T), {
94
+ s(J)(e.parsedSpec) && !s(w) ? (a(), i(d, { key: 4 }, [
95
+ e.layout === "classic" ? (a(), r(s(j), {
96
96
  key: 0,
97
- schemas: s(g)(e.parsedSpec)
98
- }, null, 8, ["schemas"])) : (r(), a(s(W), {
97
+ schemas: s(b)(e.parsedSpec)
98
+ }, null, 8, ["schemas"])) : (a(), r(s(D), {
99
99
  key: 1,
100
- schemas: s(g)(e.parsedSpec)
100
+ schemas: s(b)(e.parsedSpec)
101
101
  }, null, 8, ["schemas"]))
102
102
  ], 64)) : p("", !0),
103
103
  n(e.$slots, "end", {}, void 0, !0)
@@ -107,5 +107,5 @@ const J = { class: "narrow-references-container" }, K = { class: "scalar-client
107
107
  }
108
108
  });
109
109
  export {
110
- ce as default
110
+ le as default
111
111
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA0ZA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;cAJW,OAAO;WAFV,MAAM;aAGJ,OAAO;;AA0XrB,0BAQG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA+aA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;cAJW,OAAO;WAFV,MAAM;aAGJ,OAAO;;AAuYrB,0BAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6f6cbcaf"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c75bd9a9"]]);
5
5
  export {
6
- f as default
6
+ p as default
7
7
  };