@scalar/api-reference 1.25.33 → 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 (59) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/browser/standalone.js +11000 -10907
  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.d.ts.map +1 -1
  13. package/dist/components/Content/Content.vue.js +2 -2
  14. package/dist/components/Content/Content.vue2.js +61 -86
  15. package/dist/components/Content/Lazy/Lazy.vue.js +2 -20
  16. package/dist/components/Content/Lazy/Lazy.vue2.js +20 -2
  17. package/dist/components/Content/Models/Models.vue2.js +1 -1
  18. package/dist/components/Content/Tag/TagList.vue.d.ts +21 -0
  19. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -0
  20. package/dist/components/Content/Tag/TagList.vue.js +58 -0
  21. package/dist/components/Content/Tag/TagList.vue2.js +4 -0
  22. package/dist/components/Content/Tag/index.d.ts +1 -0
  23. package/dist/components/Content/Tag/index.d.ts.map +1 -1
  24. package/dist/components/Content/Webhooks/Webhooks.vue2.js +1 -1
  25. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
  26. package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
  27. package/dist/features/BaseUrl/ServerForm.vue2.js +39 -32
  28. package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -1
  29. package/dist/features/BaseUrl/ServerUrl.vue.js +2 -3
  30. package/dist/features/BaseUrl/ServerUrl.vue2.js +13 -15
  31. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts +2 -0
  32. package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
  33. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +2 -2
  34. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +37 -36
  35. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +4 -0
  36. package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -1
  37. package/dist/features/BaseUrl/ServerVariablesForm.vue.js +1 -1
  38. package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +37 -31
  39. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts +2 -0
  40. package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
  41. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +3 -3
  42. package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +39 -35
  43. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts +2 -0
  44. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -1
  45. package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +4 -4
  46. package/dist/features/BaseUrl/ServerVariablesTextbox.vue2.js +11 -9
  47. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  48. package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
  49. package/dist/features/DownloadLink/DownloadLink.vue2.js +12 -11
  50. package/dist/index.js +1 -1
  51. package/dist/legacy/components/CardFormTextInput.vue.d.ts +2 -0
  52. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
  53. package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
  54. package/dist/legacy/components/CardFormTextInput.vue2.js +39 -23
  55. package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -1
  56. package/dist/legacy/components/SecuritySchemeSelector.vue.js +2 -2
  57. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +67 -45
  58. package/dist/style.css +1 -1
  59. package/package.json +7 -7
@@ -1,23 +1,18 @@
1
- import { defineComponent as O, computed as m, openBlock as r, createElementBlock as n, Fragment as c, createElementVNode as k, renderSlot as f, createVNode as l, unref as o, createBlock as s, withCtx as p, normalizeClass as T, renderList as b, resolveDynamicComponent as L, createCommentVNode as C, createStaticVNode as E } from "vue";
2
- import R from "./Tag/TagAccordion.vue.js";
3
- import W from "./Tag/Tag.vue.js";
4
- import D from "./Operation/OperationAccordion.vue.js";
5
- import F from "./Operation/Operation.vue.js";
6
- import j from "./Lazy/Loading.vue.js";
1
+ import { defineComponent as $, computed as M, openBlock as r, createElementBlock as o, Fragment as t, createElementVNode as y, renderSlot as p, createVNode as i, unref as a, createBlock as s, withCtx as L, normalizeClass as N, renderList as U, createCommentVNode as n, createStaticVNode as V } from "vue";
2
+ import B from "./Lazy/Loading.vue.js";
7
3
  /* empty css */
8
- import q from "./Introduction/Introduction.vue.js";
9
- import G from "../../features/BaseUrl/BaseUrl.vue.js";
10
- import H from "./Authentication/Authentication.vue.js";
11
- import J from "./ClientLibraries/ClientLibraries.vue.js";
12
- import $ from "./Lazy/Lazy.vue.js";
13
- import K from "./Webhooks/Webhooks.vue.js";
14
- import P from "./Models/ModelsAccordion.vue.js";
15
- import Q from "./Models/Models.vue.js";
16
- import { useSidebar as X } from "../../hooks/useSidebar.js";
17
- import { hasModels as Y } from "../../helpers/hasModels.js";
18
- import { getModels as w } from "../../helpers/getModels.js";
19
- import { useNavState as Z } from "../../hooks/useNavState.js";
20
- const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-8d751fa0><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div></div>', 1), x = { class: "narrow-references-container" }, be = /* @__PURE__ */ O({
4
+ import A from "./Introduction/Introduction.vue.js";
5
+ import E from "../../features/BaseUrl/BaseUrl.vue.js";
6
+ import R from "./Authentication/Authentication.vue.js";
7
+ import z from "./ClientLibraries/ClientLibraries.vue.js";
8
+ import k from "./Tag/TagList.vue.js";
9
+ import F from "./Webhooks/Webhooks.vue.js";
10
+ import G from "./Models/ModelsAccordion.vue.js";
11
+ import I from "./Models/Models.vue.js";
12
+ import { useSidebar as W } from "../../hooks/useSidebar.js";
13
+ import { hasModels as j } from "../../helpers/hasModels.js";
14
+ import { getModels as h } from "../../helpers/getModels.js";
15
+ const q = /* @__PURE__ */ V('<div class="section-flare" data-v-2ffda479><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div><div class="section-flare-item" data-v-2ffda479></div></div>', 1), D = { class: "narrow-references-container" }, se = /* @__PURE__ */ $({
21
16
  __name: "Content",
22
17
  props: {
23
18
  parsedSpec: {},
@@ -26,100 +21,80 @@ const _ = /* @__PURE__ */ E('<div class="section-flare" data-v-8d751fa0><div cla
26
21
  servers: {},
27
22
  proxy: {}
28
23
  },
29
- setup(z) {
30
- const i = z, { getOperationId: u, getTagId: d, hash: I } = Z(), { hideModels: M, collapsedSidebarItems: N } = X(), V = m(
31
- () => i.layout === "accordion" ? R : W
32
- ), A = m(
33
- () => i.layout === "accordion" ? D : F
34
- ), U = m(
35
- () => i.layout === "accordion" ? "after" : "aside"
36
- ), g = i.layout !== "accordion" && !I.value.startsWith("model");
37
- return (e, ee) => {
38
- var v, y, S, h;
39
- return r(), n(c, null, [
40
- _,
41
- k("div", x, [
42
- f(e.$slots, "start", {}, void 0, !0),
43
- l(o(j), {
24
+ setup(g) {
25
+ const l = g, { hideModels: b } = W(), w = M(
26
+ () => l.layout === "accordion" ? "after" : "aside"
27
+ );
28
+ return (e, H) => {
29
+ var c, f, m, u;
30
+ return r(), o(t, null, [
31
+ q,
32
+ y("div", D, [
33
+ p(e.$slots, "start", {}, void 0, !0),
34
+ i(a(B), {
44
35
  layout: e.layout,
45
36
  parsedSpec: e.parsedSpec
46
37
  }, null, 8, ["layout", "parsedSpec"]),
47
- (y = (v = e.parsedSpec) == null ? void 0 : v.info) != null && y.title || (h = (S = e.parsedSpec) == null ? void 0 : S.info) != null && h.description ? (r(), s(o(q), {
38
+ (f = (c = e.parsedSpec) == null ? void 0 : c.info) != null && f.title || (u = (m = e.parsedSpec) == null ? void 0 : m.info) != null && u.description ? (r(), s(a(A), {
48
39
  key: 0,
49
40
  info: e.parsedSpec.info,
50
41
  parsedSpec: e.parsedSpec
51
42
  }, {
52
- [U.value]: p(() => [
53
- k("div", {
54
- class: T(["introduction-card", { "introduction-card-row": e.layout === "accordion" }])
43
+ [w.value]: L(() => [
44
+ y("div", {
45
+ class: N(["introduction-card", { "introduction-card-row": e.layout === "accordion" }])
55
46
  }, [
56
- l(o(G), {
47
+ i(a(E), {
57
48
  class: "introduction-card-item",
58
49
  defaultServerUrl: e.baseServerURL,
59
- servers: i.servers,
50
+ servers: l.servers,
60
51
  specification: e.parsedSpec
61
52
  }, null, 8, ["defaultServerUrl", "servers", "specification"]),
62
- l(o(H), {
53
+ i(a(R), {
63
54
  class: "introduction-card-item",
64
55
  parsedSpec: e.parsedSpec,
65
56
  proxy: e.proxy
66
57
  }, null, 8, ["parsedSpec", "proxy"]),
67
- l(o(J), { class: "introduction-card-item" })
58
+ i(a(z), { class: "introduction-card-item" })
68
59
  ], 2)
69
60
  ]),
70
61
  _: 2
71
- }, 1032, ["info", "parsedSpec"])) : f(e.$slots, "empty-state", { key: 1 }, void 0, !0),
72
- (r(!0), n(c, null, b(e.parsedSpec.tags, (a) => (r(), s(o($), {
73
- id: o(d)(a),
74
- key: o(d)(a),
75
- isLazy: o(g) && !o(N)[o(d)(a)]
76
- }, {
77
- default: p(() => [
78
- (r(), s(L(V.value), {
79
- id: o(d)(a),
80
- spec: e.parsedSpec,
81
- tag: a
82
- }, {
83
- default: p(() => [
84
- (r(!0), n(c, null, b(a.operations, (t, B) => (r(), s(o($), {
85
- id: o(u)(t, a),
86
- key: `${t.httpVerb}-${t.operationId}`,
87
- isLazy: B > 0
88
- }, {
89
- default: p(() => [
90
- (r(), s(L(A.value), {
91
- id: o(u)(t, a),
92
- operation: t,
93
- tag: a
94
- }, null, 8, ["id", "operation", "tag"]))
95
- ]),
96
- _: 2
97
- }, 1032, ["id", "isLazy"]))), 128))
98
- ]),
99
- _: 2
100
- }, 1032, ["id", "spec", "tag"]))
101
- ]),
102
- _: 2
103
- }, 1032, ["id", "isLazy"]))), 128)),
104
- e.parsedSpec.webhooks ? (r(), s(o(K), {
105
- key: 2,
62
+ }, 1032, ["info", "parsedSpec"])) : p(e.$slots, "empty-state", { key: 1 }, void 0, !0),
63
+ e.parsedSpec.tags ? (r(), o(t, { key: 2 }, [
64
+ e.parsedSpec["x-tagGroups"] ? (r(!0), o(t, { key: 0 }, U(e.parsedSpec["x-tagGroups"], (v) => (r(), s(a(k), {
65
+ key: v.name,
66
+ layout: e.layout,
67
+ spec: e.parsedSpec,
68
+ tags: v.tags.map((d) => {
69
+ var S;
70
+ return (S = e.parsedSpec.tags) == null ? void 0 : S.find((C) => C.name === d);
71
+ }).filter((d) => !!d)
72
+ }, null, 8, ["layout", "spec", "tags"]))), 128)) : (r(), s(a(k), {
73
+ key: 1,
74
+ layout: e.layout,
75
+ spec: e.parsedSpec,
76
+ tags: e.parsedSpec.tags
77
+ }, null, 8, ["layout", "spec", "tags"]))
78
+ ], 64)) : n("", !0),
79
+ e.parsedSpec.webhooks ? (r(), s(a(F), {
80
+ key: 3,
106
81
  webhooks: e.parsedSpec.webhooks
107
- }, null, 8, ["webhooks"])) : C("", !0),
108
- o(Y)(e.parsedSpec) && !o(M) ? (r(), n(c, { key: 3 }, [
109
- e.layout === "accordion" ? (r(), s(o(P), {
82
+ }, null, 8, ["webhooks"])) : n("", !0),
83
+ a(j)(e.parsedSpec) && !a(b) ? (r(), o(t, { key: 4 }, [
84
+ e.layout === "accordion" ? (r(), s(a(G), {
110
85
  key: 0,
111
- schemas: o(w)(e.parsedSpec)
112
- }, null, 8, ["schemas"])) : (r(), s(o(Q), {
86
+ schemas: a(h)(e.parsedSpec)
87
+ }, null, 8, ["schemas"])) : (r(), s(a(I), {
113
88
  key: 1,
114
- schemas: o(w)(e.parsedSpec)
89
+ schemas: a(h)(e.parsedSpec)
115
90
  }, null, 8, ["schemas"]))
116
- ], 64)) : C("", !0),
117
- f(e.$slots, "end", {}, void 0, !0)
91
+ ], 64)) : n("", !0),
92
+ p(e.$slots, "end", {}, void 0, !0)
118
93
  ])
119
94
  ], 64);
120
95
  };
121
96
  }
122
97
  });
123
98
  export {
124
- be as default
99
+ se as default
125
100
  };
@@ -1,22 +1,4 @@
1
- import { defineComponent as n, ref as s, nextTick as i, renderSlot as u, createCommentVNode as r } from "vue";
2
- import { lazyBus as a } from "./lazyBus.js";
3
- const y = /* @__PURE__ */ n({
4
- __name: "Lazy",
5
- props: {
6
- id: {},
7
- isLazy: { type: Boolean, default: !0 },
8
- lazyTimeout: { default: 0 }
9
- },
10
- setup(d) {
11
- const e = d, l = (t = () => {
12
- }) => {
13
- typeof window > "u" || ("requestIdleCallback" in window ? setTimeout(() => window.requestIdleCallback(t), e.lazyTimeout) : setTimeout(() => i(t), e.lazyTimeout ?? 300));
14
- }, o = s(!e.isLazy);
15
- return e.isLazy ? l(() => {
16
- o.value = !0, e.id && i(() => a.emit({ id: e.id }));
17
- }) : e.id && i(() => a.emit({ id: e.id })), (t, f) => o.value ? u(t.$slots, "default", { key: 0 }) : r("", !0);
18
- }
19
- });
1
+ import f from "./Lazy.vue2.js";
20
2
  export {
21
- y as default
3
+ f as default
22
4
  };
@@ -1,4 +1,22 @@
1
- import f from "./Lazy.vue.js";
1
+ import { defineComponent as n, ref as s, nextTick as i, renderSlot as u, createCommentVNode as r } from "vue";
2
+ import { lazyBus as a } from "./lazyBus.js";
3
+ const y = /* @__PURE__ */ n({
4
+ __name: "Lazy",
5
+ props: {
6
+ id: {},
7
+ isLazy: { type: Boolean, default: !0 },
8
+ lazyTimeout: { default: 0 }
9
+ },
10
+ setup(d) {
11
+ const e = d, l = (t = () => {
12
+ }) => {
13
+ typeof window > "u" || ("requestIdleCallback" in window ? setTimeout(() => window.requestIdleCallback(t), e.lazyTimeout) : setTimeout(() => i(t), e.lazyTimeout ?? 300));
14
+ }, o = s(!e.isLazy);
15
+ return e.isLazy ? l(() => {
16
+ o.value = !0, e.id && i(() => a.emit({ id: e.id }));
17
+ }) : e.id && i(() => a.emit({ id: e.id })), (t, f) => o.value ? u(t.$slots, "default", { key: 0 }) : r("", !0);
18
+ }
19
+ });
2
20
  export {
3
- f as default
21
+ y as default
4
22
  };
@@ -3,7 +3,7 @@ import g from "../../ShowMoreButton.vue.js";
3
3
  import C from "../../Section/SectionContainer.vue.js";
4
4
  import L from "../../Section/Section.vue.js";
5
5
  import I from "../../Section/SectionHeader.vue.js";
6
- import u from "../Lazy/Lazy.vue.js";
6
+ import u from "../Lazy/Lazy.vue2.js";
7
7
  import w from "../../Section/CompactSection.vue.js";
8
8
  import B from "../Schema/SchemaHeading.vue.js";
9
9
  import H from "../Schema/Schema.vue.js";
@@ -0,0 +1,21 @@
1
+ import type { Spec, Tag as tagType } from '@scalar/types/legacy';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
+ tags: tagType[];
4
+ spec: Spec;
5
+ layout?: "default" | "accordion";
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
+ tags: tagType[];
8
+ spec: Spec;
9
+ layout?: "default" | "accordion";
10
+ }>>>, {}, {}>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToOption<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
21
+ //# sourceMappingURL=TagList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAwDA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;;UAWxD,OAAO,EAAE;UACT,IAAI;aACD,SAAS,GAAG,WAAW;;UAF1B,OAAO,EAAE;UACT,IAAI;aACD,SAAS,GAAG,WAAW;;AAyGlC,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"}
@@ -0,0 +1,58 @@
1
+ import { defineComponent as I, computed as m, openBlock as t, createElementBlock as p, Fragment as u, renderList as l, createBlock as i, unref as o, withCtx as s, resolveDynamicComponent as f } from "vue";
2
+ import T from "./TagAccordion.vue.js";
3
+ import b from "./Tag.vue.js";
4
+ import B from "../Operation/OperationAccordion.vue.js";
5
+ import C from "../Operation/Operation.vue.js";
6
+ import y from "../Lazy/Lazy.vue2.js";
7
+ import { useSidebar as O } from "../../../hooks/useSidebar.js";
8
+ import { useNavState as S } from "../../../hooks/useNavState.js";
9
+ const W = /* @__PURE__ */ I({
10
+ __name: "TagList",
11
+ props: {
12
+ tags: {},
13
+ spec: {},
14
+ layout: {}
15
+ },
16
+ setup(L) {
17
+ const n = L, { getOperationId: c, getTagId: a, hash: _ } = S(), { collapsedSidebarItems: h } = O(), k = m(
18
+ () => n.layout === "accordion" ? T : b
19
+ ), v = m(
20
+ () => n.layout === "accordion" ? B : C
21
+ ), z = n.layout !== "accordion" && !_.value.startsWith("model");
22
+ return (d, $) => (t(!0), p(u, null, l(d.tags, (e) => (t(), i(o(y), {
23
+ id: o(a)(e),
24
+ key: o(a)(e),
25
+ isLazy: o(z) && !o(h)[o(a)(e)]
26
+ }, {
27
+ default: s(() => [
28
+ (t(), i(f(k.value), {
29
+ id: o(a)(e),
30
+ spec: d.spec,
31
+ tag: e
32
+ }, {
33
+ default: s(() => [
34
+ (t(!0), p(u, null, l(e.operations, (r, g) => (t(), i(o(y), {
35
+ id: o(c)(r, e),
36
+ key: `${r.httpVerb}-${r.operationId}`,
37
+ isLazy: g > 0
38
+ }, {
39
+ default: s(() => [
40
+ (t(), i(f(v.value), {
41
+ id: o(c)(r, e),
42
+ operation: r,
43
+ tag: e
44
+ }, null, 8, ["id", "operation", "tag"]))
45
+ ]),
46
+ _: 2
47
+ }, 1032, ["id", "isLazy"]))), 128))
48
+ ]),
49
+ _: 2
50
+ }, 1032, ["id", "spec", "tag"]))
51
+ ]),
52
+ _: 2
53
+ }, 1032, ["id", "isLazy"]))), 128));
54
+ }
55
+ });
56
+ export {
57
+ W as default
58
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./TagList.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,3 +1,4 @@
1
1
  export { default as Tag } from './Tag.vue.js';
2
2
  export { default as TagAccordion } from './TagAccordion.vue.js';
3
+ export { default as TagList } from './TagList.vue.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -5,7 +5,7 @@ import E from "./Webhook.vue.js";
5
5
  import H from "../../Section/SectionContainer.vue.js";
6
6
  import M from "../../Section/Section.vue.js";
7
7
  import j from "../../Section/SectionHeader.vue.js";
8
- import S from "../Lazy/Lazy.vue.js";
8
+ import S from "../Lazy/Lazy.vue2.js";
9
9
  import F from "../../Section/CompactSection.vue.js";
10
10
  import { useSidebar as K } from "../../../hooks/useSidebar.js";
11
11
  import { useNavState as T } from "../../../hooks/useNavState.js";
@@ -1 +1 @@
1
- {"version":3,"file":"ServerForm.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerForm.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAMlD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;eAKpC,MAAM;cACP,MAAM,EAAE;gBACN,oBAAoB;;;;;;;eAFrB,MAAM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;eAFrB,MAAM;cACP,MAAM,EAAE;gBACN,oBAAoB;;;;;;;cAFrB,MAAM;;AAkKrB,wBAOG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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 "./ServerForm.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7b6cd311"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ff1fd73b"]]);
5
5
  export {
6
- p as default
6
+ e as default
7
7
  };
@@ -1,12 +1,10 @@
1
- import { defineComponent as S, computed as u, openBlock as p, createElementBlock as m, createElementVNode as s, createVNode as o, withCtx as V, unref as k, createCommentVNode as _, pushScopeId as U, popScopeId as I } from "vue";
2
- import { ScalarMarkdown as w } from "@scalar/components";
3
- import B from "./ServerUrl.vue.js";
4
- import C from "./ServerUrlSelect.vue.js";
5
- import N from "./ServerVariablesForm.vue.js";
6
- const g = (r) => (U("data-v-7b6cd311"), r = r(), I(), r), y = { key: 0 }, E = /* @__PURE__ */ g(() => /* @__PURE__ */ s("span", { class: "server-form-title" }, "Base URL", -1)), F = { class: "server-form" }, L = { class: "server-form-container" }, M = { class: "server-item" }, R = {
7
- key: 0,
8
- muted: ""
9
- }, j = { class: "description" }, G = /* @__PURE__ */ S({
1
+ import { defineComponent as k, computed as m, openBlock as f, createElementBlock as b, createElementVNode as r, createVNode as a, withCtx as B, unref as y, createCommentVNode as _, pushScopeId as w, popScopeId as C } from "vue";
2
+ import { ScalarMarkdown as N } from "@scalar/components";
3
+ import { nanoid as S } from "nanoid";
4
+ import g from "./ServerUrl.vue.js";
5
+ import E from "./ServerUrlSelect.vue.js";
6
+ import F from "./ServerVariablesForm.vue.js";
7
+ const h = (s) => (w("data-v-ff1fd73b"), s = s(), C(), s), L = { key: 0 }, R = /* @__PURE__ */ h(() => /* @__PURE__ */ r("label", { class: "server-form-title" }, "Base URL", -1)), $ = { class: "server-form" }, M = { class: "server-form-container" }, j = /* @__PURE__ */ h(() => /* @__PURE__ */ r("span", { class: "sr-only" }, "Selected:", -1)), q = { class: "description" }, J = /* @__PURE__ */ k({
10
8
  __name: "ServerForm",
11
9
  props: {
12
10
  selected: { default: 0 },
@@ -14,31 +12,35 @@ const g = (r) => (U("data-v-7b6cd311"), r = r(), I(), r), y = { key: 0 }, E = /*
14
12
  variables: {}
15
13
  },
16
14
  emits: ["update:selected", "update:variables"],
17
- setup(r, { emit: b }) {
18
- const l = r, d = b, i = u({
15
+ setup(s, { emit: V }) {
16
+ const l = s, d = V, n = `server-selector-${S()}`, v = `server-description-${S()}`, i = m({
19
17
  get: () => l.selected,
20
18
  set: (e) => d("update:selected", e)
21
- }), t = u(() => {
19
+ }), t = m(() => {
22
20
  var e;
23
21
  return (e = l.servers) == null ? void 0 : e[i.value];
24
22
  });
25
- function f(e, a) {
26
- d("update:variables", { ...l.variables, [e]: a });
23
+ function I(e, o) {
24
+ d("update:variables", { ...l.variables, [e]: o });
27
25
  }
28
- return (e, a) => {
29
- var v, n, c;
30
- return (v = e.servers) != null && v.length ? (p(), m("div", y, [
31
- E,
32
- s("div", F, [
33
- s("div", L, [
34
- s("div", M, [
35
- o(C, {
26
+ return (e, o) => {
27
+ var c, p, u;
28
+ return (c = e.servers) != null && c.length ? (f(), b("div", L, [
29
+ R,
30
+ r("div", $, [
31
+ r("div", M, [
32
+ r("div", null, [
33
+ a(E, {
34
+ id: n,
36
35
  modelValue: i.value,
37
- "onUpdate:modelValue": a[0] || (a[0] = (h) => i.value = h),
36
+ "onUpdate:modelValue": o[0] || (o[0] = (U) => i.value = U),
37
+ describedBy: v,
38
+ label: "Base URL",
38
39
  options: e.servers
39
40
  }, {
40
- default: V(() => [
41
- o(B, {
41
+ default: B(() => [
42
+ j,
43
+ a(g, {
42
44
  server: t.value,
43
45
  variables: e.variables
44
46
  }, null, 8, ["server", "variables"])
@@ -46,16 +48,21 @@ const g = (r) => (U("data-v-7b6cd311"), r = r(), I(), r), y = { key: 0 }, E = /*
46
48
  _: 1
47
49
  }, 8, ["modelValue", "options"])
48
50
  ]),
49
- o(N, {
51
+ a(F, {
52
+ controls: n,
50
53
  values: e.variables,
51
- variables: (n = t.value) == null ? void 0 : n.variables,
52
- "onUpdate:variable": f
54
+ variables: (p = t.value) == null ? void 0 : p.variables,
55
+ "onUpdate:variable": I
53
56
  }, null, 8, ["values", "variables"])
54
57
  ])
55
58
  ]),
56
- (c = t.value) != null && c.description ? (p(), m("div", R, [
57
- s("div", j, [
58
- o(k(w), {
59
+ (u = t.value) != null && u.description ? (f(), b("div", {
60
+ key: 0,
61
+ id: v,
62
+ muted: ""
63
+ }, [
64
+ r("div", q, [
65
+ a(y(N), {
59
66
  value: t.value.description
60
67
  }, null, 8, ["value"])
61
68
  ])
@@ -65,5 +72,5 @@ const g = (r) => (U("data-v-7b6cd311"), r = r(), I(), r), y = { key: 0 }, E = /*
65
72
  }
66
73
  });
67
74
  export {
68
- G as default
75
+ J as default
69
76
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ServerUrl.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerUrl.vue"],"names":[],"mappings":"AA4DA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAGlD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;aAKxC,MAAM;gBACH,oBAAoB;;aADvB,MAAM;gBACH,oBAAoB;;AAkElC,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":"ServerUrl.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerUrl.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAGlD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;aAKxC,MAAM;gBACH,oBAAoB;;aADvB,MAAM;gBACH,oBAAoB;;AAiElC,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,8 +1,7 @@
1
1
  import r from "./ServerUrl.vue2.js";
2
2
  /* empty css */
3
- /* empty css */
4
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
5
- const c = /* @__PURE__ */ o(r, [["__scopeId", "data-v-41e1c30c"]]);
4
+ const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-fe287df9"]]);
6
5
  export {
7
- c as default
6
+ m as default
8
7
  };
@@ -1,29 +1,27 @@
1
- import { defineComponent as u, computed as i, openBlock as p, createElementBlock as m, createCommentVNode as v } from "vue";
2
- import { replaceVariables as d } from "@scalar/oas-utils/helpers";
3
- const f = ["title", "innerHTML"], k = /* @__PURE__ */ u({
1
+ import { defineComponent as u, computed as p, openBlock as i, createElementBlock as m } from "vue";
2
+ import { replaceVariables as v } from "@scalar/oas-utils/helpers";
3
+ const _ = ["innerHTML"], d = /* @__PURE__ */ u({
4
4
  __name: "ServerUrl",
5
5
  props: {
6
6
  server: {},
7
7
  variables: {}
8
8
  },
9
9
  setup(a) {
10
- const r = a, c = i(() => {
10
+ const e = a, o = p(() => {
11
11
  var s;
12
- const t = (((s = r.server) == null ? void 0 : s.url) ?? "").replace(/(<([^>]+)>)/gi, "");
13
- return d(t, (n) => {
14
- var o;
15
- const l = ((o = r.variables) == null ? void 0 : o[n]) ?? "";
16
- return `<span class="base-url-variable">${l !== "" ? l : `{${n}}`}</span>`;
12
+ const r = (((s = e.server) == null ? void 0 : s.url) ?? "").replace(/(<([^>]+)>)/gi, "");
13
+ return v(r, (n) => {
14
+ var l;
15
+ const t = ((l = e.variables) == null ? void 0 : l[n]) ?? "";
16
+ return `<span class="base-url-variable">${t !== "" ? t : `{${n}}`}</span>`;
17
17
  });
18
18
  });
19
- return (e, t) => e.server ? (p(), m("a", {
20
- key: 0,
19
+ return (c, r) => (i(), m("span", {
21
20
  class: "base-url",
22
- title: e.server.description,
23
- innerHTML: c.value
24
- }, null, 8, f)) : v("", !0);
21
+ innerHTML: o.value
22
+ }, null, 8, _));
25
23
  }
26
24
  });
27
25
  export {
28
- k as default
26
+ d as default
29
27
  };
@@ -5,11 +5,13 @@ declare function __VLS_template(): {
5
5
  declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
6
6
  options: Server[];
7
7
  modelValue: number;
8
+ describedBy?: string;
8
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
10
  "update:modelValue": (v: number) => void;
10
11
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
11
12
  options: Server[];
12
13
  modelValue: number;
14
+ describedBy?: string;
13
15
  }>>> & {
14
16
  "onUpdate:modelValue"?: ((v: number) => any) | undefined;
15
17
  }, {}, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"ServerUrlSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerUrlSelect.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAmClD,iBAAS,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,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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 r from "./ServerUrlSelect.vue2.js";
2
2
  /* empty css */
3
- import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-92440dbc"]]);
3
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ e(r, [["__scopeId", "data-v-f41e881b"]]);
5
5
  export {
6
6
  m as default
7
7
  };