@scalar/api-reference 1.25.113 → 1.25.115

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 +35 -0
  2. package/dist/browser/standalone.js +7272 -7231
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  5. package/dist/components/Content/Content.vue.js +1 -1
  6. package/dist/components/Content/Content.vue2.js +65 -59
  7. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  9. package/dist/components/Content/Introduction/Description.vue2.js +24 -24
  10. package/dist/components/Content/Introduction/Introduction.vue2.js +13 -13
  11. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  13. package/dist/components/Content/Schema/Schema.vue2.js +67 -56
  14. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -0
  15. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  17. package/dist/components/Content/Schema/SchemaProperty.vue2.js +68 -66
  18. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +2 -0
  19. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
  21. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +101 -85
  22. package/dist/components/Content/Schema/helpers/formatExample.js +1 -1
  23. package/dist/features/ApiClientModal/useApiClient.d.ts +58 -58
  24. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  25. package/dist/features/Operation/hooks/useRequestExample.js +1 -1
  26. package/dist/helpers/get-request.d.ts +1 -1
  27. package/dist/helpers/get-request.d.ts.map +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/style.css +1 -1
  30. package/package.json +12 -12
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAgOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAchD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAuBJ,iBAAS,cAAc;WAqNT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA3QR,QAAQ,GAAG,SAAS;6EAkR/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AA0OA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAchD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAwBJ,iBAAS,cAAc;WA2NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA2BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YArRR,QAAQ,GAAG,SAAS;6EA4R/B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -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-2338e284"]]);
5
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-589904f0"]]);
6
6
  export {
7
7
  _ as default
8
8
  };
@@ -1,66 +1,72 @@
1
- import { defineComponent as B, computed as E, openBlock as t, createElementBlock as d, Fragment as c, createStaticVNode as N, createElementVNode as p, renderSlot as m, createVNode as l, unref as s, createBlock as r, withCtx as k, normalizeClass as V, createCommentVNode as n, renderList as U } from "vue";
2
- import { useActiveEntities as L } from "@scalar/api-client/store";
3
- import { RequestAuth as q } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
- import { ScalarErrorBoundary as z } from "@scalar/components";
5
- import F from "./Lazy/Loading.vue.js";
1
+ import { defineComponent as V, computed as U, openBlock as t, createElementBlock as a, Fragment as p, createStaticVNode as W, createElementVNode as h, renderSlot as m, createVNode as d, unref as s, createBlock as o, withCtx as g, normalizeClass as L, createCommentVNode as l, renderList as j } from "vue";
2
+ import { useWorkspace as q, useActiveEntities as z } from "@scalar/api-client/store";
3
+ import { RequestAuth as F } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
+ import { ScalarErrorBoundary as G } from "@scalar/components";
5
+ import I from "./Lazy/Loading.vue.js";
6
6
  /* empty css */
7
- import G from "./Introduction/Introduction.vue.js";
8
- import I from "../../features/BaseUrl/BaseUrl.vue.js";
9
- import R 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 = {
7
+ import O from "./Introduction/Introduction.vue.js";
8
+ import R from "../../features/BaseUrl/BaseUrl.vue.js";
9
+ import D from "./ClientLibraries/ClientLibraries.vue.js";
10
+ import b from "./Tag/TagList.vue.js";
11
+ import H from "../../features/Operation/Webhooks.vue.js";
12
+ import J from "./Models/ModelsAccordion.vue.js";
13
+ import K from "./Models/Models.vue.js";
14
+ import { useSidebar as P } from "../../hooks/useSidebar.js";
15
+ import { hasModels as Q } from "../../helpers/hasModels.js";
16
+ import { getModels as w } from "../../helpers/getModels.js";
17
+ const T = { class: "narrow-references-container" }, X = {
18
18
  key: 0,
19
19
  class: "scalar-client introduction-card-item [--scalar-address-bar-height:0px] divide-y text-sm"
20
- }, P = { class: "scalar-client introduction-card-item" }, ce = /* @__PURE__ */ B({
20
+ }, Y = {
21
+ key: 1,
22
+ class: "scalar-client introduction-card-item"
23
+ }, ue = /* @__PURE__ */ V({
21
24
  __name: "Content",
22
25
  props: {
23
26
  parsedSpec: {},
24
27
  layout: { default: "modern" }
25
28
  },
26
29
  setup(C) {
27
- const w = C, { hideModels: $ } = H(), { activeCollection: u } = L(), M = E(
28
- () => w.layout === "classic" ? "after" : "aside"
30
+ const $ = C, { hideModels: M } = P(), { securitySchemes: A } = q(), { activeCollection: n, activeServer: B, activeWorkspace: u } = z(), E = U(
31
+ () => $.layout === "classic" ? "after" : "aside"
29
32
  );
30
33
  return (e, f) => {
31
- var v, S, y, h;
32
- return t(), d(c, null, [
33
- f[0] || (f[0] = N('<div class="section-flare" data-v-2338e284><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div><div class="section-flare-item" data-v-2338e284></div></div>', 1)),
34
- p("div", K, [
34
+ var v, S, y, k;
35
+ return t(), a(p, null, [
36
+ f[0] || (f[0] = W('<div class="section-flare" data-v-589904f0><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div></div>', 1)),
37
+ h("div", T, [
35
38
  m(e.$slots, "start", {}, void 0, !0),
36
- l(s(F), {
39
+ d(s(I), {
37
40
  layout: e.layout,
38
41
  parsedSpec: e.parsedSpec
39
42
  }, null, 8, ["layout", "parsedSpec"]),
40
- (S = (v = e.parsedSpec) == null ? void 0 : v.info) != null && S.title || (h = (y = e.parsedSpec) == null ? void 0 : y.info) != null && h.description ? (t(), r(s(G), {
43
+ (S = (v = e.parsedSpec) == null ? void 0 : v.info) != null && S.title || (k = (y = e.parsedSpec) == null ? void 0 : y.info) != null && k.description ? (t(), o(s(O), {
41
44
  key: 0,
42
45
  info: e.parsedSpec.info,
43
46
  parsedSpec: e.parsedSpec
44
47
  }, {
45
- [M.value]: k(() => [
46
- l(s(z), null, {
47
- default: k(() => {
48
- var o, a, i;
48
+ [E.value]: g(() => [
49
+ d(s(G), null, {
50
+ default: g(() => {
51
+ var i, r, c;
49
52
  return [
50
- p("div", {
51
- class: V(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
53
+ h("div", {
54
+ class: L(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
52
55
  }, [
53
- (a = (o = s(u)) == null ? void 0 : o.servers) != null && a.length ? (t(), d("div", O, [
54
- l(s(I))
55
- ])) : n("", !0),
56
- p("div", P, [
57
- l(s(q), {
56
+ (r = (i = s(n)) == null ? void 0 : i.servers) != null && r.length ? (t(), a("div", X, [
57
+ d(s(R))
58
+ ])) : l("", !0),
59
+ s(n) && s(u) && Object.keys(s(A) ?? {}).length ? (t(), a("div", Y, [
60
+ d(s(F), {
61
+ collection: s(n),
58
62
  layout: "reference",
59
- selectedSecuritySchemeUids: ((i = s(u)) == null ? void 0 : i.selectedSecuritySchemeUids) ?? [],
60
- title: "Authentication"
61
- }, null, 8, ["selectedSecuritySchemeUids"])
62
- ]),
63
- l(s(R), { class: "introduction-card-item" })
63
+ selectedSecuritySchemeUids: ((c = s(n)) == null ? void 0 : c.selectedSecuritySchemeUids) ?? [],
64
+ server: s(B),
65
+ title: "Authentication",
66
+ workspace: s(u)
67
+ }, null, 8, ["collection", "selectedSecuritySchemeUids", "server", "workspace"])
68
+ ])) : l("", !0),
69
+ d(s(D), { class: "introduction-card-item" })
64
70
  ], 2)
65
71
  ];
66
72
  }),
@@ -69,35 +75,35 @@ const K = { class: "narrow-references-container" }, O = {
69
75
  ]),
70
76
  _: 2
71
77
  }, 1032, ["info", "parsedSpec"])) : m(e.$slots, "empty-state", { key: 1 }, void 0, !0),
72
- e.parsedSpec.tags ? (t(), d(c, { key: 2 }, [
73
- e.parsedSpec["x-tagGroups"] ? (t(!0), d(c, { key: 0 }, U(e.parsedSpec["x-tagGroups"], (o) => (t(), r(s(g), {
74
- key: o.name,
78
+ e.parsedSpec.tags ? (t(), a(p, { key: 2 }, [
79
+ e.parsedSpec["x-tagGroups"] ? (t(!0), a(p, { key: 0 }, j(e.parsedSpec["x-tagGroups"], (i) => (t(), o(s(b), {
80
+ key: i.name,
75
81
  layout: e.layout,
76
82
  spec: e.parsedSpec,
77
- tags: o.tags.map((a) => {
78
- var i;
79
- return (i = e.parsedSpec.tags) == null ? void 0 : i.find((A) => A.name === a);
80
- }).filter((a) => !!a)
81
- }, null, 8, ["layout", "spec", "tags"]))), 128)) : (t(), r(s(g), {
83
+ tags: i.tags.map((r) => {
84
+ var c;
85
+ return (c = e.parsedSpec.tags) == null ? void 0 : c.find((N) => N.name === r);
86
+ }).filter((r) => !!r)
87
+ }, null, 8, ["layout", "spec", "tags"]))), 128)) : (t(), o(s(b), {
82
88
  key: 1,
83
89
  layout: e.layout,
84
90
  spec: e.parsedSpec,
85
91
  tags: e.parsedSpec.tags
86
92
  }, null, 8, ["layout", "spec", "tags"]))
87
- ], 64)) : n("", !0),
88
- e.parsedSpec.webhooks ? (t(), r(s(W), {
93
+ ], 64)) : l("", !0),
94
+ e.parsedSpec.webhooks ? (t(), o(s(H), {
89
95
  key: 3,
90
96
  webhooks: e.parsedSpec.webhooks
91
- }, null, 8, ["webhooks"])) : n("", !0),
92
- s(J)(e.parsedSpec) && !s($) ? (t(), d(c, { key: 4 }, [
93
- e.layout === "classic" ? (t(), r(s(j), {
97
+ }, null, 8, ["webhooks"])) : l("", !0),
98
+ s(Q)(e.parsedSpec) && !s(M) ? (t(), a(p, { key: 4 }, [
99
+ e.layout === "classic" ? (t(), o(s(J), {
94
100
  key: 0,
95
- schemas: s(b)(e.parsedSpec)
96
- }, null, 8, ["schemas"])) : (t(), r(s(D), {
101
+ schemas: s(w)(e.parsedSpec)
102
+ }, null, 8, ["schemas"])) : (t(), o(s(K), {
97
103
  key: 1,
98
- schemas: s(b)(e.parsedSpec)
104
+ schemas: s(w)(e.parsedSpec)
99
105
  }, null, 8, ["schemas"]))
100
- ], 64)) : n("", !0),
106
+ ], 64)) : l("", !0),
101
107
  m(e.$slots, "end", {}, void 0, !0)
102
108
  ])
103
109
  ], 64);
@@ -105,5 +111,5 @@ const K = { class: "narrow-references-container" }, O = {
105
111
  }
106
112
  });
107
113
  export {
108
- ce as default
114
+ ue as default
109
115
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"AAoIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAuKF,wBAMG"}
1
+ {"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"AAiIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAyKF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Description.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-576e1320"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fa3d93c5"]]);
5
5
  export {
6
- i as default
6
+ c as default
7
7
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as y, computed as I, openBlock as n, createElementBlock as i, Fragment as l, renderList as S, createBlock as u, withCtx as w, createVNode as C, unref as s, createCommentVNode as B } from "vue";
2
- import { splitContent as H, getHeadings as N } from "@scalar/code-highlight/markdown";
1
+ import { defineComponent as H, computed as I, openBlock as n, createElementBlock as a, Fragment as u, renderList as S, createBlock as s, unref as i, withCtx as w, createVNode as C, createCommentVNode as B } from "vue";
2
+ import N from "../../IntersectionObserver.vue.js";
3
+ import { useNavState as b } from "../../../hooks/useNavState.js";
4
+ import { splitContent as x, getHeadings as E } from "@scalar/code-highlight/markdown";
3
5
  import { ScalarMarkdown as c } from "@scalar/components";
4
6
  import d from "github-slugger";
5
- import b from "../../IntersectionObserver.vue.js";
6
- import { useNavState as x } from "../../../hooks/useNavState.js";
7
- const E = {
7
+ const F = {
8
8
  key: 0,
9
9
  class: "introduction-description"
10
- }, T = /* @__PURE__ */ y({
10
+ }, U = /* @__PURE__ */ H({
11
11
  __name: "Description",
12
12
  props: {
13
13
  value: {}
@@ -17,48 +17,48 @@ const E = {
17
17
  if (!o.value)
18
18
  return [];
19
19
  const e = new d();
20
- return H(o.value).map((t) => {
21
- const [r] = N(t);
20
+ return x(o.value).map((t) => {
21
+ const [r] = E(t);
22
22
  return {
23
- id: r ? a({
23
+ id: r ? l({
24
24
  ...r,
25
25
  slug: e.slug(r.value)
26
26
  }) : void 0,
27
27
  content: t
28
28
  };
29
29
  });
30
- }), { getHeadingId: a, isIntersectionEnabled: g, replaceUrlState: f } = x();
31
- function v(e = "") {
32
- g.value && f(e);
30
+ }), { getHeadingId: l, getFullHash: g, isIntersectionEnabled: f, replaceUrlState: v } = b();
31
+ function h(e = "") {
32
+ f.value && v(e);
33
33
  }
34
- const h = new d(), _ = (e) => (e.data = {
34
+ const _ = new d(), k = (e) => (e.data = {
35
35
  hProperties: {
36
- id: a({
36
+ id: l({
37
37
  depth: e.depth,
38
38
  value: e.children[0].value,
39
- slug: h.slug(e.children[0].value)
39
+ slug: _.slug(e.children[0].value)
40
40
  })
41
41
  }
42
42
  }, e);
43
- return (e, k) => e.value ? (n(), i("div", E, [
44
- (n(!0), i(l, null, S(p.value, (t) => (n(), i(l, {
43
+ return (e, y) => e.value ? (n(), a("div", F, [
44
+ (n(!0), a(u, null, S(p.value, (t) => (n(), a(u, {
45
45
  key: t.id
46
46
  }, [
47
- t.id ? (n(), u(b, {
47
+ t.id ? (n(), s(N, {
48
48
  key: 0,
49
- id: t.id,
49
+ id: i(g)(t.id),
50
50
  class: "introduction-description-heading",
51
- onIntersecting: () => v(t.id)
51
+ onIntersecting: () => h(t.id)
52
52
  }, {
53
53
  default: w(() => [
54
- C(s(c), {
55
- transform: _,
54
+ C(i(c), {
55
+ transform: k,
56
56
  transformType: "heading",
57
57
  value: t.content
58
58
  }, null, 8, ["value"])
59
59
  ]),
60
60
  _: 2
61
- }, 1032, ["id", "onIntersecting"])) : (n(), u(s(c), {
61
+ }, 1032, ["id", "onIntersecting"])) : (n(), s(i(c), {
62
62
  key: 1,
63
63
  value: t.content,
64
64
  withImages: ""
@@ -68,5 +68,5 @@ const E = {
68
68
  }
69
69
  });
70
70
  export {
71
- T as default
71
+ U as default
72
72
  };
@@ -7,23 +7,23 @@ import b from "../../Section/Section.vue.js";
7
7
  import B from "../../Section/SectionContent.vue.js";
8
8
  import _ from "../../Badge/Badge.vue.js";
9
9
  import D from "../../Section/SectionHeader.vue.js";
10
- import A from "../../Section/SectionColumns.vue.js";
11
- import h from "../../Section/SectionColumn.vue.js";
12
- const E = { class: "badges" }, F = { class: "sticky-cards" }, P = /* @__PURE__ */ V({
10
+ import H from "../../Section/SectionColumns.vue.js";
11
+ import k from "../../Section/SectionColumn.vue.js";
12
+ const A = { class: "badges" }, E = { class: "sticky-cards" }, P = /* @__PURE__ */ V({
13
13
  __name: "Introduction",
14
14
  props: {
15
15
  info: {},
16
16
  parsedSpec: {}
17
17
  },
18
- setup(k) {
19
- const o = k, p = a(
18
+ setup(y) {
19
+ const o = y, p = a(
20
20
  () => {
21
21
  var e, r;
22
22
  return ((e = o.parsedSpec) == null ? void 0 : e.openapi) ?? ((r = o.parsedSpec) == null ? void 0 : r.swagger) ?? "";
23
23
  }
24
- ), y = new $(), C = a(() => {
24
+ ), C = new $(), h = a(() => {
25
25
  var e;
26
- return y.slug(((e = o.info) == null ? void 0 : e.title) ?? "");
26
+ return C.slug(((e = o.info) == null ? void 0 : e.title) ?? "");
27
27
  }), c = a(() => {
28
28
  var e, r;
29
29
  return typeof ((e = o.info) == null ? void 0 : e.version) == "string" ? o.info.version.toString().match(/^\d/) ? `v${o.info.version}` : o.info.version : typeof ((r = o.info) == null ? void 0 : r.version) == "number" ? `v${o.info.version}` : void 0;
@@ -38,7 +38,7 @@ const E = { class: "badges" }, F = { class: "sticky-cards" }, P = /* @__PURE__ *
38
38
  loading: !((m = e.info) != null && m.description) && !((v = e.info) != null && v.title)
39
39
  }, {
40
40
  default: i(() => [
41
- g("div", E, [
41
+ g("div", A, [
42
42
  c.value ? (l(), s(t(_), { key: 0 }, {
43
43
  default: i(() => [
44
44
  d(u(c.value), 1)
@@ -62,10 +62,10 @@ const E = { class: "badges" }, F = { class: "sticky-cards" }, P = /* @__PURE__ *
62
62
  ]),
63
63
  _: 1
64
64
  }, 8, ["loading"]),
65
- n(w, { specTitle: C.value }, null, 8, ["specTitle"]),
66
- n(t(A), null, {
65
+ n(w, { specTitle: h.value }, null, 8, ["specTitle"]),
66
+ n(t(H), null, {
67
67
  default: i(() => [
68
- n(t(h), null, {
68
+ n(t(k), null, {
69
69
  default: i(() => [
70
70
  n(N, {
71
71
  value: e.info.description
@@ -73,9 +73,9 @@ const E = { class: "badges" }, F = { class: "sticky-cards" }, P = /* @__PURE__ *
73
73
  ]),
74
74
  _: 1
75
75
  }),
76
- e.$slots.aside ? (l(), s(t(h), { key: 0 }, {
76
+ e.$slots.aside ? (l(), s(t(k), { key: 0 }, {
77
77
  default: i(() => [
78
- g("div", F, [
78
+ g("div", E, [
79
79
  S(e.$slots, "aside", {}, void 0, !0)
80
80
  ])
81
81
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAuRA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;WARQ,MAAM;;AAuSlB,wBAOG"}
1
+ {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AAsSA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACpC,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+DAA+D;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2CAA2C;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;WARQ,MAAM;;AAoTlB,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Schema.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6f5b320f"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f48d0197"]]);
5
5
  export {
6
- a as default
6
+ f as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as O, computed as D, openBlock as l, createBlock as i, unref as r, withCtx as h, createElementVNode as P, normalizeClass as p, createElementBlock as o, createVNode as d, createCommentVNode as n, withDirectives as q, normalizeStyle as z, Fragment as t, createTextVNode as S, toDisplayString as C, vShow as A, renderList as H } from "vue";
2
- import { Disclosure as N, DisclosureButton as V, DisclosurePanel as E } from "@headlessui/vue";
3
- import { ScalarMarkdown as T, ScalarIcon as B } from "@scalar/components";
4
- import $ from "./SchemaHeading.vue.js";
5
- import m from "./SchemaProperty.vue.js";
6
- const F = {
1
+ import { defineComponent as q, computed as z, openBlock as l, createBlock as t, unref as n, withCtx as y, createElementVNode as S, normalizeClass as d, createElementBlock as o, createVNode as m, createCommentVNode as r, withDirectives as A, normalizeStyle as H, Fragment as i, createTextVNode as C, toDisplayString as B, vShow as N, renderList as j } from "vue";
2
+ import { Disclosure as V, DisclosureButton as E, DisclosurePanel as T } from "@headlessui/vue";
3
+ import { ScalarMarkdown as $, ScalarIcon as O } from "@scalar/components";
4
+ import F from "./SchemaHeading.vue.js";
5
+ import v from "./SchemaProperty.vue.js";
6
+ const I = {
7
7
  key: 0,
8
8
  class: "schema-card-description"
9
- }, Q = /* @__PURE__ */ O({
9
+ }, R = /* @__PURE__ */ q({
10
10
  __name: "Schema",
11
11
  props: {
12
12
  value: { type: [Object, Boolean] },
@@ -16,61 +16,61 @@ const F = {
16
16
  noncollapsible: { type: Boolean },
17
17
  hideHeading: { type: Boolean }
18
18
  },
19
- setup(j) {
20
- const v = j, y = D(() => !(v.noncollapsible || v.level === 0)), w = (e) => v.noncollapsible && e.stopPropagation();
21
- return (e, I) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), i(r(N), {
19
+ setup(w) {
20
+ const h = w, k = z(() => !(h.noncollapsible || h.level === 0)), D = (e) => h.noncollapsible && e.stopPropagation();
21
+ return (e, L) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), t(n(V), {
22
22
  key: 0,
23
23
  defaultOpen: e.noncollapsible
24
24
  }, {
25
- default: h(({ open: s }) => {
26
- var k;
25
+ default: y(({ open: s }) => {
26
+ var f;
27
27
  return [
28
- P("div", {
29
- class: p(["schema-card", [
28
+ S("div", {
29
+ class: d(["schema-card", [
30
30
  `schema-card--level-${e.level}`,
31
31
  { "schema-card--compact": e.compact, "schema-card--open": s }
32
32
  ]])
33
33
  }, [
34
- (k = e.value) != null && k.description && typeof e.value.description == "string" ? (l(), o("div", F, [
35
- d(r(T), {
34
+ (f = e.value) != null && f.description && typeof e.value.description == "string" ? (l(), o("div", I, [
35
+ m(n($), {
36
36
  value: e.value.description
37
37
  }, null, 8, ["value"])
38
- ])) : n("", !0),
39
- P("div", {
40
- class: p(["schema-properties", { "schema-properties-open": s }])
38
+ ])) : r("", !0),
39
+ S("div", {
40
+ class: d(["schema-properties", { "schema-properties-open": s }])
41
41
  }, [
42
- q(d(r(V), {
42
+ A(m(n(E), {
43
43
  as: e.noncollapsible ? "div" : "button",
44
- class: p(["schema-card-title", { "schema-card-title--compact": e.compact }]),
45
- style: z({
44
+ class: d(["schema-card-title", { "schema-card-title--compact": e.compact }]),
45
+ style: H({
46
46
  top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
47
47
  }),
48
- onClickCapture: w
48
+ onClickCapture: D
49
49
  }, {
50
- default: h(() => {
51
- var c, a, u;
50
+ default: y(() => {
51
+ var u, c, a;
52
52
  return [
53
- e.compact ? (l(), o(t, { key: 0 }, [
54
- y.value ? (l(), i(r(B), {
53
+ e.compact ? (l(), o(i, { key: 0 }, [
54
+ k.value ? (l(), t(n(O), {
55
55
  key: 0,
56
- class: p(["schema-card-title-icon", { "schema-card-title-icon--open": s }]),
56
+ class: d(["schema-card-title-icon", { "schema-card-title-icon--open": s }]),
57
57
  icon: "Add",
58
58
  size: "sm"
59
- }, null, 8, ["class"])) : n("", !0),
60
- s ? (l(), o(t, { key: 1 }, [
61
- S(" Hide " + C(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
62
- ], 64)) : (l(), o(t, { key: 2 }, [
63
- S(" Show " + C(((a = e.value) == null ? void 0 : a.title) ?? "Child Attributes"), 1)
59
+ }, null, 8, ["class"])) : r("", !0),
60
+ s ? (l(), o(i, { key: 1 }, [
61
+ C(" Hide " + B(((u = e.value) == null ? void 0 : u.title) ?? "Child Attributes"), 1)
62
+ ], 64)) : (l(), o(i, { key: 2 }, [
63
+ C(" Show " + B(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
64
64
  ], 64))
65
- ], 64)) : (l(), o(t, { key: 1 }, [
66
- y.value ? (l(), i(r(B), {
65
+ ], 64)) : (l(), o(i, { key: 1 }, [
66
+ k.value ? (l(), t(n(O), {
67
67
  key: 0,
68
- class: p(["schema-card-title-icon", { "schema-card-title-icon--open": s }]),
68
+ class: d(["schema-card-title-icon", { "schema-card-title-icon--open": s }]),
69
69
  icon: "Add",
70
70
  size: "sm"
71
- }, null, 8, ["class"])) : n("", !0),
72
- d($, {
73
- name: ((u = e.value) == null ? void 0 : u.title) ?? e.name,
71
+ }, null, 8, ["class"])) : r("", !0),
72
+ m(F, {
73
+ name: ((a = e.value) == null ? void 0 : a.title) ?? e.name,
74
74
  value: e.value
75
75
  }, null, 8, ["name", "value"])
76
76
  ], 64))
@@ -78,26 +78,37 @@ const F = {
78
78
  }),
79
79
  _: 2
80
80
  }, 1032, ["as", "class", "style"]), [
81
- [A, !e.hideHeading && !(e.noncollapsible && e.compact)]
81
+ [N, !e.hideHeading && !(e.noncollapsible && e.compact)]
82
82
  ]),
83
- d(r(E), { static: e.noncollapsible }, {
84
- default: h(() => {
85
- var c;
83
+ m(n(T), { static: e.noncollapsible }, {
84
+ default: y(() => {
85
+ var u, c;
86
86
  return [
87
- e.value.properties || e.value.additionalProperties ? (l(), o(t, { key: 0 }, [
88
- e.value.properties ? (l(!0), o(t, { key: 0 }, H(Object.keys((c = e.value) == null ? void 0 : c.properties), (a) => {
89
- var u, f, b, g;
90
- return l(), i(m, {
87
+ e.value.properties || e.value.additionalProperties || e.value.patternProperties ? (l(), o(i, { key: 0 }, [
88
+ e.value.properties ? (l(!0), o(i, { key: 0 }, j(Object.keys((u = e.value) == null ? void 0 : u.properties), (a) => {
89
+ var p, b, P, g;
90
+ return l(), t(v, {
91
91
  key: a,
92
92
  compact: e.compact,
93
93
  level: e.level,
94
94
  name: a,
95
- required: ((u = e.value.required) == null ? void 0 : u.includes(a)) || ((b = (f = e.value.properties) == null ? void 0 : f[a]) == null ? void 0 : b.required) === !0,
95
+ required: ((p = e.value.required) == null ? void 0 : p.includes(a)) || ((P = (b = e.value.properties) == null ? void 0 : b[a]) == null ? void 0 : P.required) === !0,
96
96
  value: (g = e.value.properties) == null ? void 0 : g[a]
97
97
  }, null, 8, ["compact", "level", "name", "required", "value"]);
98
- }), 128)) : n("", !0),
99
- e.value.additionalProperties ? (l(), o(t, { key: 1 }, [
100
- e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(), i(m, {
98
+ }), 128)) : r("", !0),
99
+ e.value.patternProperties ? (l(!0), o(i, { key: 1 }, j(Object.keys((c = e.value) == null ? void 0 : c.patternProperties), (a) => {
100
+ var p;
101
+ return l(), t(v, {
102
+ key: a,
103
+ compact: e.compact,
104
+ level: e.level,
105
+ name: a,
106
+ pattern: "",
107
+ value: (p = e.value.patternProperties) == null ? void 0 : p[a]
108
+ }, null, 8, ["compact", "level", "name", "value"]);
109
+ }), 128)) : r("", !0),
110
+ e.value.additionalProperties ? (l(), o(i, { key: 2 }, [
111
+ e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(), t(v, {
101
112
  key: 0,
102
113
  additional: "",
103
114
  compact: e.compact,
@@ -107,7 +118,7 @@ const F = {
107
118
  type: "anything",
108
119
  ...typeof e.value.additionalProperties == "object" ? e.value.additionalProperties : {}
109
120
  }
110
- }, null, 8, ["compact", "level", "value"])) : (l(), i(m, {
121
+ }, null, 8, ["compact", "level", "value"])) : (l(), t(v, {
111
122
  key: 1,
112
123
  additional: "",
113
124
  compact: e.compact,
@@ -115,8 +126,8 @@ const F = {
115
126
  noncollapsible: "",
116
127
  value: e.value.additionalProperties
117
128
  }, null, 8, ["compact", "level", "value"]))
118
- ], 64)) : n("", !0)
119
- ], 64)) : (l(), i(m, {
129
+ ], 64)) : r("", !0)
130
+ ], 64)) : (l(), t(v, {
120
131
  key: 1,
121
132
  compact: e.compact,
122
133
  level: e.level,
@@ -132,9 +143,9 @@ const F = {
132
143
  ];
133
144
  }),
134
145
  _: 1
135
- }, 8, ["defaultOpen"])) : n("", !0);
146
+ }, 8, ["defaultOpen"])) : r("", !0);
136
147
  }
137
148
  });
138
149
  export {
139
- Q as default
150
+ R as default
140
151
  };
@@ -6,6 +6,7 @@ type __VLS_Props = {
6
6
  compact?: boolean;
7
7
  description?: string;
8
8
  additional?: boolean;
9
+ pattern?: boolean;
9
10
  withExamples?: boolean;
10
11
  };
11
12
  declare const _default_1: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AA2bA,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;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;cALW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAGF,OAAO;;AA0Y1B,0BAQG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAicA,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;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;cANW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AA8Y1B,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 m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4bf22f6a"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a8cba913"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };