@scalar/api-reference 1.25.103 → 1.25.104

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 (85) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/blocks/constants.d.ts +9 -0
  3. package/dist/blocks/constants.d.ts.map +1 -0
  4. package/dist/blocks/constants.js +8 -0
  5. package/dist/blocks/helpers/getPointer.d.ts +22 -0
  6. package/dist/blocks/helpers/getPointer.d.ts.map +1 -0
  7. package/dist/blocks/helpers/getPointer.js +12 -0
  8. package/dist/blocks/hooks/useBlockProps.d.ts +32 -0
  9. package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -0
  10. package/dist/blocks/hooks/useBlockProps.js +28 -0
  11. package/dist/browser/standalone.js +12830 -12727
  12. package/dist/browser/webpack-stats.json +1 -1
  13. package/dist/components/ApiReference.vue.js +31 -31
  14. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  15. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  16. package/dist/components/ApiReferenceLayout.vue2.js +2 -1
  17. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  19. package/dist/components/Content/Introduction/Introduction.vue2.js +84 -70
  20. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  22. package/dist/components/Content/Schema/SchemaProperty.vue2.js +94 -89
  23. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
  25. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +91 -77
  26. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts +9 -0
  27. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -0
  28. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.js +20 -0
  29. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -1
  30. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  31. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  32. package/dist/components/Layouts/ClassicLayout.vue.js +30 -27
  33. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  34. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  35. package/dist/components/Layouts/ModernLayout.vue2.js +55 -50
  36. package/dist/features/ApiClientModal/useApiClient.d.ts +336 -254
  37. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  38. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  39. package/dist/features/DownloadLink/DownloadLink.vue.js +2 -2
  40. package/dist/features/DownloadLink/DownloadLink.vue2.js +10 -3
  41. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  42. package/dist/features/Operation/Operation.vue.js +37 -26
  43. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +3 -0
  44. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  45. package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
  46. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +108 -101
  47. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +3 -0
  48. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  49. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  50. package/dist/features/Operation/layouts/ModernLayout.vue2.js +54 -50
  51. package/dist/helpers/get-request.d.ts +2 -0
  52. package/dist/helpers/get-request.d.ts.map +1 -1
  53. package/dist/helpers/parse.d.ts.map +1 -1
  54. package/dist/helpers/parse.js +88 -68
  55. package/dist/index.d.ts +0 -1
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +79 -83
  58. package/dist/style.css +1 -1
  59. package/package.json +12 -13
  60. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts +0 -10
  61. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +0 -1
  62. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +0 -7
  63. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue2.js +0 -30
  64. package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts +0 -11
  65. package/dist/components/DarkModeToggle/DarkModeToggle.vue.d.ts.map +0 -1
  66. package/dist/components/DarkModeToggle/DarkModeToggle.vue.js +0 -7
  67. package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +0 -31
  68. package/dist/components/DarkModeToggle/index.d.ts +0 -3
  69. package/dist/components/DarkModeToggle/index.d.ts.map +0 -1
  70. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts +0 -10
  71. package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +0 -1
  72. package/dist/embeds/ExampleRequest/index.d.ts +0 -2
  73. package/dist/embeds/ExampleRequest/index.d.ts.map +0 -1
  74. package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts +0 -7
  75. package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts.map +0 -1
  76. package/dist/embeds/ExampleResponses/index.d.ts +0 -2
  77. package/dist/embeds/ExampleResponses/index.d.ts.map +0 -1
  78. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +0 -782
  79. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +0 -1
  80. package/dist/embeds/OpenApiDocument/index.d.ts +0 -3
  81. package/dist/embeds/OpenApiDocument/index.d.ts.map +0 -1
  82. package/dist/embeds/OpenApiDocument/types.d.ts +0 -3
  83. package/dist/embeds/OpenApiDocument/types.d.ts.map +0 -1
  84. package/dist/embeds/index.d.ts +0 -4
  85. package/dist/embeds/index.d.ts.map +0 -1
@@ -1,30 +1,30 @@
1
- import { defineComponent as w, watch as x, computed as n, toRef as d, openBlock as p, createElementBlock as h, Fragment as U, createBlock as V, resolveDynamicComponent as $, withCtx as i, createTextVNode as b, toDisplayString as B, createCommentVNode as N, createVNode as R, unref as a, renderSlot as m } from "vue";
1
+ import { defineComponent as y, watch as w, computed as n, toRef as m, openBlock as f, createElementBlock as x, Fragment as U, createBlock as V, resolveDynamicComponent as $, withCtx as i, createTextVNode as b, toDisplayString as B, createCommentVNode as N, createVNode as R, unref as a, renderSlot as d } from "vue";
2
2
  import { migrateThemeVariables as T } from "@scalar/themes";
3
3
  import { useColorMode as _ } from "@scalar/use-hooks/useColorMode";
4
- import { useSeoMeta as E } from "@unhead/vue";
5
- import { useFavicon as F } from "@vueuse/core";
6
- import { useReactiveSpec as A } from "../hooks/useReactiveSpec.js";
7
- import L from "./Layouts/Layouts.vue.js";
8
- const K = /* @__PURE__ */ w({
4
+ import { useSeoMeta as h } from "@unhead/vue";
5
+ import { useFavicon as E } from "@vueuse/core";
6
+ import { useReactiveSpec as F } from "../hooks/useReactiveSpec.js";
7
+ import A from "./Layouts/Layouts.vue.js";
8
+ const K = /* @__PURE__ */ y({
9
9
  __name: "ApiReference",
10
10
  props: {
11
11
  configuration: {}
12
12
  },
13
13
  emits: ["updateContent"],
14
- setup(f) {
15
- var s, c, u;
16
- const t = f, { setColorMode: g, toggleColorMode: v, darkLightMode: C } = _({
17
- initialColorMode: (s = t.configuration) != null && s.darkMode ? "dark" : void 0,
18
- overrideColorMode: (c = t.configuration) == null ? void 0 : c.forceDarkModeState
14
+ setup(v) {
15
+ var c, u, l;
16
+ const t = v, { toggleColorMode: g, isDarkMode: s } = _({
17
+ initialColorMode: (c = t.configuration) != null && c.darkMode ? "dark" : void 0,
18
+ overrideColorMode: (u = t.configuration) == null ? void 0 : u.forceDarkModeState
19
19
  });
20
- x(
20
+ w(
21
21
  () => {
22
22
  var o;
23
23
  return (o = t.configuration) == null ? void 0 : o.darkMode;
24
24
  },
25
- (o) => g(o ? "dark" : "light")
25
+ (o) => s.value = !!o
26
26
  );
27
- const k = n(() => {
27
+ const C = n(() => {
28
28
  var o, r;
29
29
  if ((o = t.configuration) != null && o.customCss)
30
30
  return T((r = t.configuration) == null ? void 0 : r.customCss);
@@ -41,38 +41,38 @@ const K = /* @__PURE__ */ w({
41
41
  showSidebar: !0,
42
42
  isEditable: !1,
43
43
  ...t.configuration,
44
- customCss: k.value
44
+ customCss: C.value
45
45
  };
46
46
  });
47
- (u = e.value) != null && u.metaData && E(e.value.metaData);
48
- const { parsedSpec: S, rawSpec: M } = A({
49
- proxyUrl: d(
47
+ (l = e.value) != null && l.metaData && h(e.value.metaData);
48
+ const { parsedSpec: k, rawSpec: S } = F({
49
+ proxyUrl: m(
50
50
  () => e.value.proxyUrl || e.value.proxy || ""
51
51
  ),
52
- specConfig: d(() => e.value.spec || {})
53
- }), y = n(() => e.value.favicon);
54
- return F(y), (o, r) => {
55
- var l;
56
- return p(), h(U, null, [
57
- (l = e.value) != null && l.customCss ? (p(), V($("style"), { key: 0 }, {
52
+ specConfig: m(() => e.value.spec || {})
53
+ }), M = n(() => e.value.favicon);
54
+ return E(M), (o, r) => {
55
+ var p;
56
+ return f(), x(U, null, [
57
+ (p = e.value) != null && p.customCss ? (f(), V($("style"), { key: 0 }, {
58
58
  default: i(() => [
59
59
  b(B(e.value.customCss), 1)
60
60
  ]),
61
61
  _: 1
62
62
  })) : N("", !0),
63
- R(a(L), {
63
+ R(a(A), {
64
64
  configuration: e.value,
65
- isDark: a(C) === "dark",
66
- parsedSpec: a(S),
67
- rawSpec: a(M),
68
- onToggleDarkMode: r[0] || (r[0] = () => a(v)()),
65
+ isDark: a(s),
66
+ parsedSpec: a(k),
67
+ rawSpec: a(S),
68
+ onToggleDarkMode: r[0] || (r[0] = () => a(g)()),
69
69
  onUpdateContent: r[1] || (r[1] = (D) => o.$emit("updateContent", D))
70
70
  }, {
71
71
  footer: i(() => [
72
- m(o.$slots, "footer")
72
+ d(o.$slots, "footer")
73
73
  ]),
74
74
  "content-end": i(() => [
75
- m(o.$slots, "footer")
75
+ d(o.$slots, "footer")
76
76
  ]),
77
77
  _: 3
78
78
  }, 8, ["configuration", "isDark", "parsedSpec", "rawSpec"])
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAmoBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA4BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAyRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBAxfZ,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;;;;;;EA6f/D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAtiBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA6iB9D,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":"AAooBA,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,gBAAgB,CAAA;AA4BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAOjB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AA0RxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBAzfZ,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;;;;;;EA8f/D;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAviBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA8iB9D,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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2bc622ac"]]);
5
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a4626a48"]]);
6
6
  export {
7
- c as default
7
+ m as default
8
8
  };
@@ -119,7 +119,8 @@ const Ge = ["innerHTML"], Ke = { class: "references-header" }, Qe = {
119
119
  proxyUrl: o.configuration.proxyUrl || o.configuration.proxy,
120
120
  themeId: o.configuration.theme,
121
121
  useLocalStorage: !1,
122
- hideClientButton: o.configuration.hideClientButton
122
+ hideClientButton: o.configuration.hideClientButton,
123
+ integration: o.configuration._integration
123
124
  });
124
125
  C(
125
126
  () => o.rawSpec,
@@ -1 +1 @@
1
- {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAmGA,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;AAkBF,iBAAS,cAAc;WA8IT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAmBD,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;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,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-fbd64817"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-15369a80"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,81 +1,95 @@
1
- import { defineComponent as k, computed as p, openBlock as n, createBlock as r, unref as o, withCtx as t, createVNode as i, createElementVNode as f, createTextVNode as s, toDisplayString as a, createCommentVNode as d, renderSlot as c } from "vue";
2
- import C from "github-slugger";
3
- import h from "../../../features/DownloadLink/DownloadLink.vue.js";
4
- import y from "./Description.vue.js";
5
- import V from "../../Section/SectionContainer.vue.js";
6
- import w from "../../Section/Section.vue.js";
7
- import N from "../../Section/SectionContent.vue.js";
8
- import m from "../../Badge/Badge.vue.js";
9
- import T from "../../Section/SectionHeader.vue.js";
10
- import B from "../../Section/SectionColumns.vue.js";
11
- import g from "../../Section/SectionColumn.vue.js";
12
- const D = { class: "badges" }, $ = { class: "sticky-cards" }, J = /* @__PURE__ */ k({
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";
2
+ import $ from "github-slugger";
3
+ import w from "../../../features/DownloadLink/DownloadLink.vue.js";
4
+ import N from "./Description.vue.js";
5
+ import T from "../../Section/SectionContainer.vue.js";
6
+ import b from "../../Section/Section.vue.js";
7
+ import B from "../../Section/SectionContent.vue.js";
8
+ import _ from "../../Badge/Badge.vue.js";
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({
13
13
  __name: "Introduction",
14
14
  props: {
15
15
  info: {},
16
16
  parsedSpec: {}
17
17
  },
18
- setup(S) {
19
- const l = S, v = new C(), u = p(() => l.parsedSpec.openapi ?? l.parsedSpec.swagger ?? ""), _ = p(() => v.slug(l.info.title ?? ""));
20
- return (e, b) => (n(), r(o(V), null, {
21
- default: t(() => [
22
- i(o(w), { class: "introduction-section" }, {
23
- default: t(() => [
24
- i(o(N), {
25
- loading: !e.info.description && !e.info.title
26
- }, {
27
- default: t(() => [
28
- f("div", D, [
29
- e.info.version ? (n(), r(o(m), { key: 0 }, {
30
- default: t(() => [
31
- s(a(e.info.version), 1)
32
- ]),
33
- _: 1
34
- })) : d("", !0),
35
- u.value ? (n(), r(o(m), { key: 1 }, {
36
- default: t(() => [
37
- s(" OAS " + a(u.value), 1)
38
- ]),
39
- _: 1
40
- })) : d("", !0)
41
- ]),
42
- i(o(T), {
43
- level: 1,
44
- loading: !e.info.title,
45
- tight: ""
46
- }, {
47
- default: t(() => [
48
- s(a(e.info.title), 1)
49
- ]),
50
- _: 1
51
- }, 8, ["loading"]),
52
- i(h, { specTitle: _.value }, null, 8, ["specTitle"]),
53
- i(o(B), null, {
54
- default: t(() => [
55
- i(o(g), null, {
56
- default: t(() => [
57
- i(y, {
58
- value: e.info.description
59
- }, null, 8, ["value"])
18
+ setup(k) {
19
+ const o = k, p = a(
20
+ () => {
21
+ var e, r;
22
+ return ((e = o.parsedSpec) == null ? void 0 : e.openapi) ?? ((r = o.parsedSpec) == null ? void 0 : r.swagger) ?? "";
23
+ }
24
+ ), y = new $(), C = a(() => {
25
+ var e;
26
+ return y.slug(((e = o.info) == null ? void 0 : e.title) ?? "");
27
+ }), m = a(() => {
28
+ var e, r;
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
+ });
31
+ return (e, r) => (l(), s(t(T), null, {
32
+ default: i(() => [
33
+ n(t(b), { class: "gap-12" }, {
34
+ default: i(() => {
35
+ var c, v;
36
+ return [
37
+ n(t(B), {
38
+ loading: !((c = e.info) != null && c.description) && !((v = e.info) != null && v.title)
39
+ }, {
40
+ default: i(() => [
41
+ g("div", E, [
42
+ m.value ? (l(), s(t(_), { key: 0 }, {
43
+ default: i(() => [
44
+ d(f(m.value), 1)
60
45
  ]),
61
46
  _: 1
62
- }),
63
- e.$slots.aside ? (n(), r(o(g), { key: 0 }, {
64
- default: t(() => [
65
- f("div", $, [
66
- c(e.$slots, "aside", {}, void 0, !0)
67
- ])
47
+ })) : u("", !0),
48
+ p.value ? (l(), s(t(_), { key: 1 }, {
49
+ default: i(() => [
50
+ d("OAS " + f(p.value), 1)
68
51
  ]),
69
- _: 3
70
- })) : d("", !0)
52
+ _: 1
53
+ })) : u("", !0)
71
54
  ]),
72
- _: 3
73
- })
74
- ]),
75
- _: 3
76
- }, 8, ["loading"]),
77
- c(e.$slots, "after", {}, void 0, !0)
78
- ]),
55
+ n(t(D), {
56
+ level: 1,
57
+ loading: !e.info.title,
58
+ tight: ""
59
+ }, {
60
+ default: i(() => [
61
+ d(f(e.info.title), 1)
62
+ ]),
63
+ _: 1
64
+ }, 8, ["loading"]),
65
+ n(w, { specTitle: C.value }, null, 8, ["specTitle"]),
66
+ n(t(A), null, {
67
+ default: i(() => [
68
+ n(t(h), null, {
69
+ default: i(() => [
70
+ n(N, {
71
+ value: e.info.description
72
+ }, null, 8, ["value"])
73
+ ]),
74
+ _: 1
75
+ }),
76
+ e.$slots.aside ? (l(), s(t(h), { key: 0 }, {
77
+ default: i(() => [
78
+ g("div", F, [
79
+ S(e.$slots, "aside", {}, void 0, !0)
80
+ ])
81
+ ]),
82
+ _: 3
83
+ })) : u("", !0)
84
+ ]),
85
+ _: 3
86
+ })
87
+ ]),
88
+ _: 3
89
+ }, 8, ["loading"]),
90
+ S(e.$slots, "after", {}, void 0, !0)
91
+ ];
92
+ }),
79
93
  _: 3
80
94
  })
81
95
  ]),
@@ -84,5 +98,5 @@ const D = { class: "badges" }, $ = { class: "sticky-cards" }, J = /* @__PURE__ *
84
98
  }
85
99
  });
86
100
  export {
87
- J as default
101
+ P as default
88
102
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAibA,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;;AAwY1B,0BAQG"}
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,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-32801e8b"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6d58eb36"]]);
5
5
  export {
6
6
  p as default
7
7
  };