@scalar/api-reference 1.25.106 → 1.25.109

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 (45) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/dist/browser/standalone.js +11355 -11274
  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 +2 -2
  6. package/dist/components/ApiReferenceLayout.vue2.js +0 -1
  7. package/dist/components/Content/Introduction/Description.vue.js +1 -1
  8. package/dist/components/Content/Introduction/Description.vue2.js +15 -13
  9. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  10. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  11. package/dist/components/Content/Introduction/Introduction.vue2.js +12 -12
  12. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  14. package/dist/components/Content/Schema/SchemaProperty.vue2.js +90 -90
  15. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  17. package/dist/components/Content/Tag/Endpoints.vue2.js +45 -47
  18. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -2
  19. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Tag/TagList.vue.js +40 -38
  21. package/dist/features/ApiClientModal/useApiClient.d.ts +198 -166
  22. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  23. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  24. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  25. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +64 -56
  26. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  27. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  28. package/dist/features/Operation/layouts/ModernLayout.vue2.js +103 -102
  29. package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts +2 -2
  30. package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +1 -1
  31. package/dist/features/TestRequestButton/TestRequestButton.vue.js +2 -2
  32. package/dist/features/TestRequestButton/TestRequestButton.vue2.js +34 -38
  33. package/dist/helpers/get-request.d.ts.map +1 -1
  34. package/dist/helpers/index.d.ts +1 -0
  35. package/dist/helpers/index.d.ts.map +1 -1
  36. package/dist/helpers/operation.d.ts +14 -0
  37. package/dist/helpers/operation.d.ts.map +1 -0
  38. package/dist/helpers/operation.js +18 -0
  39. package/dist/hooks/useReactiveSpec.d.ts +5 -16
  40. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  41. package/dist/hooks/useSidebar.d.ts.map +1 -1
  42. package/dist/hooks/useSidebar.js +81 -82
  43. package/dist/index.js +67 -63
  44. package/dist/style.css +1 -1
  45. package/package.json +11 -11
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAknBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AAoBvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AA8QxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBA7eZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAkf/D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YA3hBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAkiB9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAinBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AAoBvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AA6QxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBA5eZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAif/D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YA1hBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFAiiB9D,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,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 "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../_virtual/_plugin-vue_export-helper.js";
5
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-284ab295"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-22274001"]]);
6
6
  export {
7
- m as default
7
+ a as default
8
8
  };
@@ -115,7 +115,6 @@ const Ve = ["innerHTML"], We = { class: "references-header" }, Ge = {
115
115
  return typeof window > "u" ? (e.attrs || (e.attrs = {}), e.attrs[t] = r) : (a = e.vnode.el) != null && a.getAttribute && (r = e.vnode.el.getAttribute(t)), `${t}-${r}`;
116
116
  });
117
117
  const y = ye({
118
- isReadOnly: !0,
119
118
  proxyUrl: o.configuration.proxyUrl || o.configuration.proxy,
120
119
  themeId: o.configuration.theme,
121
120
  useLocalStorage: !1,
@@ -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-a9d504b8"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-576e1320"]]);
5
5
  export {
6
6
  i as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as y, computed as I, openBlock as r, createElementBlock as o, Fragment as l, renderList as S, createBlock as s, withCtx as w, createVNode as C, unref as u, createCommentVNode as B } from "vue";
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
2
  import { splitContent as H, getHeadings as N } from "@scalar/code-highlight/markdown";
3
3
  import { ScalarMarkdown as c } from "@scalar/components";
4
4
  import d from "github-slugger";
@@ -13,16 +13,16 @@ const E = {
13
13
  value: {}
14
14
  },
15
15
  setup(m) {
16
- const i = m, p = I(() => {
17
- if (!i.value)
16
+ const o = m, p = I(() => {
17
+ if (!o.value)
18
18
  return [];
19
19
  const e = new d();
20
- return H(i.value).map((t) => {
21
- const [n] = N(t);
20
+ return H(o.value).map((t) => {
21
+ const [r] = N(t);
22
22
  return {
23
- id: n ? a({
24
- ...n,
25
- slug: e.slug(n.value)
23
+ id: r ? a({
24
+ ...r,
25
+ slug: e.slug(r.value)
26
26
  }) : void 0,
27
27
  content: t
28
28
  };
@@ -40,23 +40,25 @@ const E = {
40
40
  })
41
41
  }
42
42
  }, e);
43
- return (e, k) => e.value ? (r(), o("div", E, [
44
- (r(!0), o(l, null, S(p.value, (t, n) => (r(), o(l, { key: n }, [
45
- t.id ? (r(), s(b, {
43
+ return (e, k) => e.value ? (n(), i("div", E, [
44
+ (n(!0), i(l, null, S(p.value, (t) => (n(), i(l, {
45
+ key: t.id
46
+ }, [
47
+ t.id ? (n(), u(b, {
46
48
  key: 0,
47
49
  id: t.id,
48
50
  class: "introduction-description-heading",
49
51
  onIntersecting: () => v(t.id)
50
52
  }, {
51
53
  default: w(() => [
52
- C(u(c), {
54
+ C(s(c), {
53
55
  transform: _,
54
56
  transformType: "heading",
55
57
  value: t.content
56
58
  }, null, 8, ["value"])
57
59
  ]),
58
60
  _: 2
59
- }, 1032, ["id", "onIntersecting"])) : (r(), s(u(c), {
61
+ }, 1032, ["id", "onIntersecting"])) : (n(), u(s(c), {
60
62
  key: 1,
61
63
  value: t.content,
62
64
  withImages: ""
@@ -1 +1 @@
1
- {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAkBhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CACX,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CACrE,CAAA;IACD,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;AAoCF,iBAAS,cAAc;WAwIT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAkBhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CACX,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CACrE,CAAA;IACD,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;AAoCF,iBAAS,cAAc;WAyIT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Introduction.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-15369a80"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a435d3c2"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as V, computed as a, openBlock as l, createBlock as s, unref as t, withCtx as i, createVNode as n, createElementVNode as g, createTextVNode as d, toDisplayString as f, createCommentVNode as u, renderSlot as S } from "vue";
1
+ import { defineComponent as V, computed as a, openBlock as l, createBlock as s, unref as t, withCtx as i, createVNode as n, createElementVNode as g, createTextVNode as d, toDisplayString as u, createCommentVNode as f, renderSlot as S } from "vue";
2
2
  import $ from "github-slugger";
3
3
  import w from "../../../features/DownloadLink/DownloadLink.vue.js";
4
4
  import N from "./Description.vue.js";
@@ -24,33 +24,33 @@ const E = { class: "badges" }, F = { class: "sticky-cards" }, P = /* @__PURE__ *
24
24
  ), y = new $(), C = a(() => {
25
25
  var e;
26
26
  return y.slug(((e = o.info) == null ? void 0 : e.title) ?? "");
27
- }), m = a(() => {
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;
30
30
  });
31
31
  return (e, r) => (l(), s(t(T), null, {
32
32
  default: i(() => [
33
- n(t(b), { class: "gap-12" }, {
33
+ n(t(b), { class: "introduction-section gap-12" }, {
34
34
  default: i(() => {
35
- var c, v;
35
+ var m, v;
36
36
  return [
37
37
  n(t(B), {
38
- loading: !((c = e.info) != null && c.description) && !((v = e.info) != null && v.title)
38
+ loading: !((m = e.info) != null && m.description) && !((v = e.info) != null && v.title)
39
39
  }, {
40
40
  default: i(() => [
41
41
  g("div", E, [
42
- m.value ? (l(), s(t(_), { key: 0 }, {
42
+ c.value ? (l(), s(t(_), { key: 0 }, {
43
43
  default: i(() => [
44
- d(f(m.value), 1)
44
+ d(u(c.value), 1)
45
45
  ]),
46
46
  _: 1
47
- })) : u("", !0),
47
+ })) : f("", !0),
48
48
  p.value ? (l(), s(t(_), { key: 1 }, {
49
49
  default: i(() => [
50
- d("OAS " + f(p.value), 1)
50
+ d("OAS " + u(p.value), 1)
51
51
  ]),
52
52
  _: 1
53
- })) : u("", !0)
53
+ })) : f("", !0)
54
54
  ]),
55
55
  n(t(D), {
56
56
  level: 1,
@@ -58,7 +58,7 @@ const E = { class: "badges" }, F = { class: "sticky-cards" }, P = /* @__PURE__ *
58
58
  tight: ""
59
59
  }, {
60
60
  default: i(() => [
61
- d(f(e.info.title), 1)
61
+ d(u(e.info.title), 1)
62
62
  ]),
63
63
  _: 1
64
64
  }, 8, ["loading"]),
@@ -80,7 +80,7 @@ const E = { class: "badges" }, F = { class: "sticky-cards" }, P = /* @__PURE__ *
80
80
  ])
81
81
  ]),
82
82
  _: 3
83
- })) : u("", !0)
83
+ })) : f("", !0)
84
84
  ]),
85
85
  _: 3
86
86
  })
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAsOA,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;AAkB7B;;;;;;;;;;;;GAYG;AACH,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;;YAFS,QAAQ,GAAG,SAAS;;AAyQjC,wBAQG"}
1
+ {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAqOA,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;AAkB7B;;;;;;;;;;;;GAYG;AACH,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;;YAFS,QAAQ,GAAG,SAAS;;AAyQjC,wBAQG"}
@@ -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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6d58eb36"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4bf22f6a"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,44 +1,44 @@
1
- import { defineComponent as W, computed as v, openBlock as l, createElementBlock as t, normalizeClass as G, createVNode as n, createSlots as X, withCtx as y, createTextVNode as E, toDisplayString as r, unref as i, createCommentVNode as s, createElementVNode as c, Fragment as u, renderList as m, createBlock as S } from "vue";
2
- import { formatExample as Y } from "./helpers/formatExample.js";
3
- import { optimizeValueForDisplay as _, discriminators as x } from "./helpers/optimizeValueForDisplay.js";
4
- import { Disclosure as ee, DisclosurePanel as le, DisclosureButton as te } from "@headlessui/vue";
5
- import { ScalarMarkdown as B, ScalarIcon as ae } from "@scalar/components";
6
- import h from "./Schema.vue.js";
7
- import oe from "./SchemaPropertyHeading.vue.js";
8
- const se = {
1
+ import { defineComponent as Q, computed as y, openBlock as l, createElementBlock as t, normalizeClass as $, createVNode as n, createSlots as W, withCtx as f, createTextVNode as b, toDisplayString as r, unref as i, createCommentVNode as s, createElementVNode as c, Fragment as u, renderList as d, createBlock as E } from "vue";
2
+ import { formatExample as X } from "./helpers/formatExample.js";
3
+ import { optimizeValueForDisplay as Y, discriminators as _ } from "./helpers/optimizeValueForDisplay.js";
4
+ import { Disclosure as x, DisclosurePanel as ee, DisclosureButton as le } from "@headlessui/vue";
5
+ import { ScalarMarkdown as S, ScalarIcon as te } from "@scalar/components";
6
+ import g from "./Schema.vue.js";
7
+ import ae from "./SchemaPropertyHeading.vue.js";
8
+ const oe = {
9
9
  key: 0,
10
10
  class: "property-description"
11
- }, ne = {
11
+ }, se = {
12
12
  key: 1,
13
13
  class: "property-description"
14
- }, re = {
14
+ }, ne = {
15
15
  key: 2,
16
16
  class: "property-example custom-scroll"
17
- }, ie = { class: "property-example-value" }, ue = {
17
+ }, re = { class: "property-example-value" }, ie = {
18
18
  key: 3,
19
19
  class: "property-example custom-scroll"
20
- }, pe = { class: "property-example-label" }, me = {
20
+ }, ue = { class: "property-example-label" }, pe = {
21
21
  key: 4,
22
22
  class: "property-enum"
23
23
  }, de = {
24
24
  key: 0,
25
25
  class: "property-list"
26
- }, ce = { class: "property-heading" }, ve = { class: "property-name" }, ye = { class: "property-description" }, fe = {
26
+ }, me = { class: "property-heading" }, ce = { class: "property-name" }, ve = { class: "property-description" }, ye = {
27
27
  key: 1,
28
28
  class: "property-enum-values"
29
- }, he = {
29
+ }, fe = {
30
30
  key: 5,
31
31
  class: "children"
32
- }, ge = {
32
+ }, he = {
33
33
  key: 0,
34
34
  class: "children"
35
- }, ke = {
35
+ }, ge = {
36
36
  key: 0,
37
37
  class: "property-rule"
38
- }, be = {
38
+ }, ke = {
39
39
  key: 1,
40
40
  class: "property-rule"
41
- }, je = /* @__PURE__ */ W({
41
+ }, Pe = /* @__PURE__ */ Q({
42
42
  __name: "SchemaProperty",
43
43
  props: {
44
44
  value: {},
@@ -50,8 +50,8 @@ const se = {
50
50
  additional: { type: Boolean },
51
51
  withExamples: { type: Boolean, default: !0 }
52
52
  },
53
- setup(J) {
54
- const f = J, D = {
53
+ setup(G) {
54
+ const h = G, B = {
55
55
  integer: {
56
56
  _default: "Integer numbers.",
57
57
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -64,109 +64,109 @@ const se = {
64
64
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
65
65
  binary: "binary data, used to describe files"
66
66
  }
67
- }, w = function(e, o) {
67
+ }, D = function(e, o) {
68
68
  return o != null && o.properties || o != null && o.additionalProperties ? null : e || (o == null ? void 0 : o.description) || null;
69
- }, C = function(e) {
70
- return !e || !D[e.type] ? null : D[e.type][e.format || "_default"];
71
- }, d = function(e) {
69
+ }, w = function(e) {
70
+ return !e || !B[e.type] ? null : B[e.type][e.format || "_default"];
71
+ }, m = function(e) {
72
72
  var o;
73
73
  return (e == null ? void 0 : e.enum) || ((o = e == null ? void 0 : e.items) == null ? void 0 : o.enum) || [];
74
- }, P = v(() => d(f.value).length > 9), j = v(() => P.value ? 5 : 9), K = v(
75
- () => d(f.value).slice(0, j.value)
76
- ), Q = v(
77
- () => d(f.value).slice(j.value)
78
- ), g = v(() => _(f.value));
74
+ }, C = y(() => m(h.value).length > 9), P = y(() => C.value ? 5 : 9), J = y(
75
+ () => m(h.value).slice(0, P.value)
76
+ ), K = y(
77
+ () => m(h.value).slice(P.value)
78
+ ), k = y(() => Y(h.value));
79
79
  return (e, o) => {
80
- var F, N, V, q, z, I, L, H, O, R, T, U, Z;
80
+ var j, F, N, V, q, z, I, L, H, O, R, T, U;
81
81
  return l(), t("div", {
82
- class: G(["property", [
82
+ class: $(["property", [
83
83
  `property--level-${e.level}`,
84
84
  {
85
85
  "property--compact": e.compact,
86
- "property--deprecated": (F = e.value) == null ? void 0 : F.deprecated
86
+ "property--deprecated": (j = e.value) == null ? void 0 : j.deprecated
87
87
  }
88
88
  ]])
89
89
  }, [
90
- n(oe, {
90
+ n(ae, {
91
91
  additional: e.additional,
92
- enum: d(e.value).length > 0,
92
+ enum: m(e.value).length > 0,
93
93
  required: e.required,
94
- value: g.value
95
- }, X({ _: 2 }, [
94
+ value: k.value
95
+ }, W({ _: 2 }, [
96
96
  e.name ? {
97
97
  name: "name",
98
- fn: y(() => [
99
- E(r(e.name), 1)
98
+ fn: f(() => [
99
+ b(r(e.name), 1)
100
100
  ]),
101
101
  key: "0"
102
102
  } : void 0,
103
- (N = e.value) != null && N.example ? {
103
+ (F = e.value) != null && F.example ? {
104
104
  name: "example",
105
- fn: y(() => [
106
- E(" Example: " + r(e.value.example), 1)
105
+ fn: f(() => [
106
+ b(" Example: " + r(e.value.example), 1)
107
107
  ]),
108
108
  key: "1"
109
109
  } : void 0
110
110
  ]), 1032, ["additional", "enum", "required", "value"]),
111
- w(e.description, e.value) ? (l(), t("div", se, [
112
- n(i(B), {
113
- value: w(e.description, e.value)
111
+ D(e.description, e.value) ? (l(), t("div", oe, [
112
+ n(i(S), {
113
+ value: D(e.description, e.value)
114
114
  }, null, 8, ["value"])
115
- ])) : C(e.value) ? (l(), t("div", ne, [
116
- n(i(B), {
117
- value: C(e.value) || ""
115
+ ])) : w(e.value) ? (l(), t("div", se, [
116
+ n(i(S), {
117
+ value: w(e.value) || ""
118
118
  }, null, 8, ["value"])
119
119
  ])) : s("", !0),
120
- e.withExamples && ((V = e.value) != null && V.example || (z = (q = e.value) == null ? void 0 : q.items) != null && z.example) ? (l(), t("div", re, [
120
+ e.withExamples && ((N = e.value) != null && N.example || (q = (V = e.value) == null ? void 0 : V.items) != null && q.example) ? (l(), t("div", ne, [
121
121
  o[0] || (o[0] = c("span", { class: "property-example-label" }, "Example", -1)),
122
- c("code", ie, r(i(Y)(e.value.example || ((I = e.value) == null ? void 0 : I.items.example))), 1)
122
+ c("code", re, r(i(X)(e.value.example || ((z = e.value) == null ? void 0 : z.items.example))), 1)
123
123
  ])) : s("", !0),
124
- (L = e.value) != null && L.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), t("div", ue, [
125
- c("span", pe, r(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
126
- (l(!0), t(u, null, m(e.value.examples, (a, p) => (l(), t("code", {
124
+ (I = e.value) != null && I.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), t("div", ie, [
125
+ c("span", ue, r(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
126
+ (l(!0), t(u, null, d(e.value.examples, (a, p) => (l(), t("code", {
127
127
  key: p,
128
128
  class: "property-example-value"
129
129
  }, r(a), 1))), 128))
130
130
  ])) : s("", !0),
131
- ((H = d(e.value)) == null ? void 0 : H.length) > 0 ? (l(), t("div", me, [
132
- (O = e.value) != null && O["x-enumDescriptions"] ? (l(), t("div", de, [
133
- (l(!0), t(u, null, m(d(e.value), (a) => (l(), t("div", {
131
+ ((L = m(e.value)) == null ? void 0 : L.length) > 0 ? (l(), t("div", pe, [
132
+ (H = e.value) != null && H["x-enumDescriptions"] ? (l(), t("div", de, [
133
+ (l(!0), t(u, null, d(m(e.value), (a) => (l(), t("div", {
134
134
  key: a,
135
135
  class: "property"
136
136
  }, [
137
- c("div", ce, [
138
- c("div", ve, r(a), 1)
137
+ c("div", me, [
138
+ c("div", ce, r(a), 1)
139
139
  ]),
140
- c("div", ye, [
141
- n(i(B), {
140
+ c("div", ve, [
141
+ n(i(S), {
142
142
  value: e.value["x-enumDescriptions"][a]
143
143
  }, null, 8, ["value"])
144
144
  ])
145
145
  ]))), 128))
146
- ])) : (l(), t("ul", fe, [
147
- (l(!0), t(u, null, m(K.value, (a) => (l(), t("li", {
146
+ ])) : (l(), t("ul", ye, [
147
+ (l(!0), t(u, null, d(J.value, (a) => (l(), t("li", {
148
148
  key: a,
149
149
  class: "property-enum-value"
150
150
  }, r(a), 1))), 128)),
151
- P.value ? (l(), S(i(ee), { key: 0 }, {
152
- default: y(({ open: a }) => [
153
- n(i(le), null, {
154
- default: y(() => [
155
- (l(!0), t(u, null, m(Q.value, (p) => (l(), t("li", {
151
+ C.value ? (l(), E(i(x), { key: 0 }, {
152
+ default: f(({ open: a }) => [
153
+ n(i(ee), null, {
154
+ default: f(() => [
155
+ (l(!0), t(u, null, d(K.value, (p) => (l(), t("li", {
156
156
  key: p,
157
157
  class: "property-enum-value"
158
158
  }, r(p), 1))), 128))
159
159
  ]),
160
160
  _: 1
161
161
  }),
162
- n(i(te), { class: "enum-toggle-button" }, {
163
- default: y(() => [
164
- n(i(ae), {
165
- class: G(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
162
+ n(i(le), { class: "enum-toggle-button" }, {
163
+ default: f(() => [
164
+ n(i(te), {
165
+ class: $(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
166
166
  icon: "Add",
167
167
  size: "sm"
168
168
  }, null, 8, ["class"]),
169
- E(" " + r(a ? "Hide values" : "Show all values"), 1)
169
+ b(" " + r(a ? "Hide values" : "Show all values"), 1)
170
170
  ]),
171
171
  _: 2
172
172
  }, 1024)
@@ -175,43 +175,43 @@ const se = {
175
175
  })) : s("", !0)
176
176
  ]))
177
177
  ])) : s("", !0),
178
- ((R = e.value) == null ? void 0 : R.type) === "object" && ((T = e.value) != null && T.properties || (U = e.value) != null && U.additionalProperties) ? (l(), t("div", he, [
179
- n(h, {
178
+ ((O = e.value) == null ? void 0 : O.type) === "object" && ((R = e.value) != null && R.properties || (T = e.value) != null && T.additionalProperties) ? (l(), t("div", fe, [
179
+ n(g, {
180
180
  compact: e.compact,
181
181
  level: e.level + 1,
182
182
  value: e.value
183
183
  }, null, 8, ["compact", "level", "value"])
184
184
  ])) : s("", !0),
185
- (Z = e.value) != null && Z.items ? (l(), t(u, { key: 6 }, [
186
- ["object"].includes(e.value.items.type) ? (l(), t("div", ge, [
187
- n(h, {
185
+ (U = e.value) != null && U.items ? (l(), t(u, { key: 6 }, [
186
+ ["object"].includes(e.value.items.type) ? (l(), t("div", he, [
187
+ n(g, {
188
188
  compact: e.compact,
189
189
  level: e.level + 1,
190
190
  value: e.value.items
191
191
  }, null, 8, ["compact", "level", "value"])
192
192
  ])) : s("", !0)
193
193
  ], 64)) : s("", !0),
194
- (l(!0), t(u, null, m(i(x), (a) => {
195
- var p, A, M;
194
+ (l(!0), t(u, null, d(i(_), (a) => {
195
+ var p, Z, A;
196
196
  return l(), t(u, { key: a }, [
197
- (p = g.value) != null && p[a] ? (l(), t("div", ke, [
198
- (l(!0), t(u, null, m(g.value[a], (k, b) => {
199
- var $;
200
- return l(), S(h, {
201
- key: b,
197
+ (p = k.value) != null && p[a] ? (l(), t("div", ge, [
198
+ (l(!0), t(u, null, d(k.value[a], (v) => {
199
+ var M;
200
+ return l(), E(g, {
201
+ key: v.id,
202
202
  compact: e.compact,
203
203
  level: e.level + 1,
204
- noncollapsible: (($ = e.value) == null ? void 0 : $[a].length) === 1,
205
- value: k
204
+ noncollapsible: ((M = e.value) == null ? void 0 : M[a].length) === 1,
205
+ value: v
206
206
  }, null, 8, ["compact", "level", "noncollapsible", "value"]);
207
207
  }), 128))
208
208
  ])) : s("", !0),
209
- (M = (A = e.value) == null ? void 0 : A.items) != null && M[a] && e.level < 3 ? (l(), t("div", be, [
210
- (l(!0), t(u, null, m(e.value.items[a], (k, b) => (l(), S(h, {
211
- key: b,
209
+ (A = (Z = e.value) == null ? void 0 : Z.items) != null && A[a] && e.level < 3 ? (l(), t("div", ke, [
210
+ (l(!0), t(u, null, d(e.value.items[a], (v) => (l(), E(g, {
211
+ key: v.id,
212
212
  compact: e.compact,
213
213
  level: e.level + 1,
214
- value: k
214
+ value: v
215
215
  }, null, 8, ["compact", "level", "value"]))), 128))
216
216
  ])) : s("", !0)
217
217
  ], 64);
@@ -221,5 +221,5 @@ const se = {
221
221
  }
222
222
  });
223
223
  export {
224
- je as default
224
+ Pe as default
225
225
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA2IA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;AAkBrE,KAAK,WAAW,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;;AA+NpE,wBAOG"}
1
+ {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA6IA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;AAkBrE,KAAK,WAAW,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;;AAgOpE,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Endpoints.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-72ede5ca"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cfef28a1"]]);
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };