@scalar/api-reference 1.24.73 → 1.24.75

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 (79) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/browser/standalone.js +12564 -12621
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.js +37 -36
  6. package/dist/components/Card/Card.vue.js +4 -4
  7. package/dist/components/Card/CardContent.vue.js +2 -2
  8. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  9. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +4 -4
  10. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  11. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +9 -9
  12. package/dist/components/Content/Content.vue.js +1 -1
  13. package/dist/components/Content/Content.vue2.js +19 -19
  14. package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts +27 -0
  15. package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +1 -0
  16. package/dist/components/Content/Operation/ContentTypeSelect.vue.js +7 -0
  17. package/dist/components/Content/Operation/ContentTypeSelect.vue2.js +41 -0
  18. package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Operation/EndpointDetails.vue.js +10 -7
  20. package/dist/components/Content/Operation/ParameterItem.vue.d.ts +5 -0
  21. package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Operation/ParameterItem.vue.js +2 -2
  23. package/dist/components/Content/Operation/ParameterItem.vue2.js +54 -19
  24. package/dist/components/Content/Operation/Parameters.vue.d.ts +5 -0
  25. package/dist/components/Content/Operation/Parameters.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Operation/Parameters.vue.js +2 -2
  27. package/dist/components/Content/Operation/Parameters.vue2.js +16 -14
  28. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +1 -1
  29. package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +1 -1
  30. package/dist/components/Content/Operation/RequestBody.vue.js +1 -1
  31. package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Schema/Schema.vue.js +3 -3
  34. package/dist/components/Content/Schema/Schema.vue2.js +57 -65
  35. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  36. package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
  37. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  39. package/dist/components/Content/Tag/Endpoints.vue2.js +63 -58
  40. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Tag/Tag.vue.js +2 -2
  42. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Webhooks/Webhooks.vue.js +5 -76
  44. package/dist/components/Content/Webhooks/Webhooks.vue2.js +76 -2
  45. package/dist/components/DarkModeToggle/DarkModeToggle.vue.js +2 -2
  46. package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +3 -3
  47. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  48. package/dist/components/Layouts/ClassicLayout.vue.js +16 -15
  49. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  50. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  51. package/dist/components/Layouts/ModernLayout.vue2.js +22 -21
  52. package/dist/components/Section/Section.vue.js +1 -1
  53. package/dist/components/Section/SectionContainer.vue.js +1 -1
  54. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  55. package/dist/components/ShowMoreButton.vue.js +2 -2
  56. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  57. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  58. package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
  59. package/dist/features/BaseUrl/ServerForm.vue2.js +1 -1
  60. package/dist/features/Search/SearchButton.vue.js +2 -2
  61. package/dist/features/Search/SearchButton.vue2.js +1 -1
  62. package/dist/hooks/useDarkModeState.d.ts +1 -1
  63. package/dist/hooks/useDarkModeState.d.ts.map +1 -1
  64. package/dist/hooks/useDarkModeState.js +12 -12
  65. package/dist/hooks/useReactiveSpec.d.ts +2 -0
  66. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  67. package/dist/hooks/useResponses.d.ts +2 -1
  68. package/dist/hooks/useResponses.d.ts.map +1 -1
  69. package/dist/hooks/useResponses.js +12 -11
  70. package/dist/index.js +1 -1
  71. package/dist/legacy/components/CardForm.vue.js +2 -2
  72. package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
  73. package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
  74. package/dist/legacy/stores/useOpenApiStore.d.ts +2 -0
  75. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  76. package/dist/style.css +1 -1
  77. package/dist/types.d.ts +4 -0
  78. package/dist/types.d.ts.map +1 -1
  79. package/package.json +8 -8
@@ -1,27 +1,62 @@
1
- import { defineComponent as r, openBlock as a, createElementBlock as o, createElementVNode as t, createVNode as n, unref as m } from "vue";
2
- import l from "../Schema/SchemaProperty.vue.js";
3
- const p = { class: "parameter-item" }, i = { class: "parameter-item-container" }, h = /* @__PURE__ */ r({
1
+ import { defineComponent as B, ref as u, computed as d, openBlock as l, createElementBlock as s, normalizeClass as g, createVNode as v, unref as f, createElementVNode as y, toDisplayString as h, createBlock as b, createCommentVNode as m } from "vue";
2
+ import { ScalarIcon as q } from "@scalar/components";
3
+ import w from "./ContentTypeSelect.vue.js";
4
+ import I from "../Schema/SchemaProperty.vue.js";
5
+ const S = { class: "parameter-item" }, V = { class: "parameter-item-name" }, T = { class: "parameter-item-type" }, j = {
6
+ key: 1,
7
+ class: "parameter-item-container parameter-item-container-markdown"
8
+ }, P = /* @__PURE__ */ B({
4
9
  __name: "ParameterItem",
5
10
  props: {
6
11
  parameter: {},
7
- showChildren: { type: Boolean, default: !1 }
12
+ showChildren: { type: Boolean, default: !1 },
13
+ collapsableItems: { type: Boolean, default: !1 }
8
14
  },
9
- setup(s) {
10
- return (e, c) => (a(), o("li", p, [
11
- t("div", i, [
12
- n(m(l), {
13
- compact: "",
14
- description: e.parameter.description,
15
- level: 0,
16
- name: e.parameter.name,
17
- noncollapsible: e.showChildren,
18
- required: e.parameter.required,
19
- value: e.parameter.schema
20
- }, null, 8, ["description", "name", "noncollapsible", "required", "value"])
21
- ])
22
- ]));
15
+ setup(C) {
16
+ const t = C, r = u(!1), k = d(() => t.parameter.content ? Object.keys(t.parameter.content) : []), n = u(
17
+ k.value[0]
18
+ );
19
+ t.parameter.content && "application/json" in t.parameter.content && (n.value = "application/json");
20
+ const a = d(() => t.collapsableItems && t.parameter.content);
21
+ return (e, o) => {
22
+ var p, i;
23
+ return l(), s("li", S, [
24
+ a.value ? (l(), s("div", {
25
+ key: 0,
26
+ class: g(["flex parameter-item-trigger", { "parameter-item-trigger-open": r.value }]),
27
+ onClick: o[1] || (o[1] = (c) => r.value = !r.value)
28
+ }, [
29
+ v(f(q), {
30
+ class: "parameter-item-icon",
31
+ icon: r.value ? "ChevronDown" : "ChevronRight",
32
+ size: "md",
33
+ thickness: "1.75"
34
+ }, null, 8, ["icon"]),
35
+ y("span", V, h(e.parameter.name), 1),
36
+ y("span", T, h(e.parameter.description), 1),
37
+ a.value && t.parameter.content ? (l(), b(w, {
38
+ key: 0,
39
+ class: "parameter-item-content-type",
40
+ defaultValue: n.value,
41
+ requestBody: t.parameter,
42
+ onSelectContentType: o[0] || (o[0] = ({ contentType: c }) => n.value = c)
43
+ }, null, 8, ["defaultValue", "requestBody"])) : m("", !0)
44
+ ], 2)) : m("", !0),
45
+ a.value && r.value || !a.value ? (l(), s("div", j, [
46
+ v(f(I), {
47
+ compact: "",
48
+ description: a.value ? "" : e.parameter.description,
49
+ level: 0,
50
+ name: a.value ? "" : e.parameter.name,
51
+ noncollapsible: e.showChildren,
52
+ required: e.parameter.required,
53
+ value: e.parameter.content ? (i = (p = e.parameter.content) == null ? void 0 : p[n.value]) == null ? void 0 : i.schema : e.parameter.schema
54
+ }, null, 8, ["description", "name", "noncollapsible", "required", "value"])
55
+ ])) : m("", !0)
56
+ ]);
57
+ };
23
58
  }
24
59
  });
25
60
  export {
26
- h as default
61
+ P as default
27
62
  };
@@ -5,15 +5,20 @@ declare function __VLS_template(): {
5
5
  declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
6
6
  parameters?: Parameters[];
7
7
  showChildren?: boolean;
8
+ collapsableItems?: boolean;
8
9
  }>, {
9
10
  showChildren: boolean;
11
+ collapsableItems: boolean;
10
12
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
11
13
  parameters?: Parameters[];
12
14
  showChildren?: boolean;
15
+ collapsableItems?: boolean;
13
16
  }>, {
14
17
  showChildren: boolean;
18
+ collapsableItems: boolean;
15
19
  }>>>, {
16
20
  showChildren: boolean;
21
+ collapsableItems: boolean;
17
22
  }, {}>;
18
23
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
19
24
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Parameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/Parameters.vue"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAsBnD,iBAAS,cAAc;mBA0CI,GAAG;EAe7B;AACD,QAAA,MAAM,eAAe;iBA1EgB,UAAU,EAAE;mBAAiB,OAAO;;;;iBAApC,UAAU,EAAE;mBAA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AAC,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 "./Parameters.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cd6f76c7"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-425e9f7e"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -1,32 +1,34 @@
1
- import { defineComponent as n, openBlock as r, createElementBlock as s, createElementVNode as o, renderSlot as l, Fragment as m, renderList as p, createBlock as d, createCommentVNode as i } from "vue";
2
- import c from "./ParameterItem.vue.js";
1
+ import { defineComponent as o, openBlock as t, createElementBlock as l, createElementVNode as s, renderSlot as n, Fragment as m, renderList as p, createBlock as d, createCommentVNode as c } from "vue";
2
+ import i from "./ParameterItem.vue.js";
3
3
  const h = {
4
4
  key: 0,
5
5
  class: "parameters"
6
- }, u = { class: "parameters-title" }, _ = { class: "parameter-list" }, B = /* @__PURE__ */ n({
6
+ }, u = { class: "parameters-title" }, f = { class: "parameter-list" }, I = /* @__PURE__ */ o({
7
7
  __name: "Parameters",
8
8
  props: {
9
9
  parameters: {},
10
- showChildren: { type: Boolean, default: !1 }
10
+ showChildren: { type: Boolean, default: !1 },
11
+ collapsableItems: { type: Boolean, default: !1 }
11
12
  },
12
- setup(f) {
13
+ setup(_) {
13
14
  return (e, C) => {
14
- var t;
15
- return (t = e.parameters) != null && t.length ? (r(), s("div", h, [
16
- o("div", u, [
17
- l(e.$slots, "title", {}, void 0, !0)
15
+ var r;
16
+ return (r = e.parameters) != null && r.length ? (t(), l("div", h, [
17
+ s("div", u, [
18
+ n(e.$slots, "title", {}, void 0, !0)
18
19
  ]),
19
- o("ul", _, [
20
- (r(!0), s(m, null, p(e.parameters, (a) => (r(), d(c, {
20
+ s("ul", f, [
21
+ (t(!0), l(m, null, p(e.parameters, (a) => (t(), d(i, {
21
22
  key: a.name,
23
+ collapsableItems: e.collapsableItems,
22
24
  parameter: a,
23
25
  showChildren: e.showChildren
24
- }, null, 8, ["parameter", "showChildren"]))), 128))
26
+ }, null, 8, ["collapsableItems", "parameter", "showChildren"]))), 128))
25
27
  ])
26
- ])) : i("", !0);
28
+ ])) : c("", !0);
27
29
  };
28
30
  }
29
31
  });
30
32
  export {
31
- B as default
33
+ I as default
32
34
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./PathResponses.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-09772f9c"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7770f638"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -9,7 +9,7 @@ import q from "../../../Card/CardContent.vue.js";
9
9
  import G from "../../../Card/CardFooter.vue.js";
10
10
  import Q from "../../../../features/ExampleRequest/ExamplePicker.vue.js";
11
11
  import { useClipboard as X } from "../../../../hooks/useClipboard.js";
12
- const Y = (u) => (P("data-v-09772f9c"), u = u(), A(), u), Z = {
12
+ const Y = (u) => (P("data-v-7770f638"), u = u(), A(), u), Z = {
13
13
  key: 1,
14
14
  class: "scalar-card-checkbox"
15
15
  }, $ = /* @__PURE__ */ Y(() => /* @__PURE__ */ w("span", { class: "scalar-card-checkbox-checkmark" }, null, -1)), z = { class: "scalar-card-container custom-scroll" }, ee = {
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-41c1ef36"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cd4290a3"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBodyPropertiesChild.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/RequestBodyPropertiesChild.vue"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;;uBAIZ,iBAAiB;;uBAAjB,iBAAiB;;AAkE5D,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":"RequestBodyPropertiesChild.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/RequestBodyPropertiesChild.vue"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;;uBAIZ,iBAAiB;;uBAAjB,iBAAiB;;AA8E5D,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,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__PURE__ */ t(o, [["__scopeId", "data-v-ba8edff4"]]);
3
+ import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const c = /* @__PURE__ */ a(o, [["__scopeId", "data-v-ab8ac369"]]);
5
5
  export {
6
- r as default
6
+ c as default
7
7
  };
@@ -1,17 +1,12 @@
1
- import { defineComponent as j, computed as D, openBlock as l, createBlock as i, unref as p, withCtx as y, createElementVNode as f, normalizeClass as d, createElementBlock as a, createVNode as v, createCommentVNode as r, withDirectives as O, normalizeStyle as q, Fragment as t, createTextVNode as C, toDisplayString as P, vShow as z, renderList as I, pushScopeId as N, popScopeId as V } from "vue";
1
+ import { defineComponent as D, computed as O, openBlock as l, createBlock as t, unref as r, withCtx as h, createElementVNode as P, normalizeClass as p, createElementBlock as o, createVNode as d, createCommentVNode as s, withDirectives as q, normalizeStyle as N, Fragment as i, createTextVNode as C, toDisplayString as S, vShow as V, renderList as z } from "vue";
2
2
  import { Disclosure as A, DisclosureButton as E, DisclosurePanel as H } from "@headlessui/vue";
3
- import { ScalarMarkdown as T, ScalarIcon as $ } from "@scalar/components";
4
- import F from "./SchemaHeading.vue.js";
3
+ import { ScalarMarkdown as T, ScalarIcon as w } from "@scalar/components";
4
+ import $ from "./SchemaHeading.vue.js";
5
5
  import m from "./SchemaProperty.vue.js";
6
- const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
6
+ const F = {
7
7
  key: 0,
8
8
  class: "schema-card-description"
9
- }, R = /* @__PURE__ */ L(() => /* @__PURE__ */ f("polygon", {
10
- "fill-rule": "nonzero",
11
- points: "14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"
12
- }, null, -1)), G = [
13
- R
14
- ], Y = /* @__PURE__ */ j({
9
+ }, K = /* @__PURE__ */ D({
15
10
  __name: "Schema",
16
11
  props: {
17
12
  value: {},
@@ -20,63 +15,60 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
20
15
  compact: { type: Boolean },
21
16
  noncollapsible: { type: Boolean }
22
17
  },
23
- setup(s) {
24
- const h = s, k = D(() => !(h.noncollapsible || h.level === 0)), B = (e) => h.noncollapsible && e.stopPropagation();
25
- return (e, J) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), i(p(A), {
18
+ setup(B) {
19
+ const v = B, y = O(() => !(v.noncollapsible || v.level === 0)), j = (e) => v.noncollapsible && e.stopPropagation();
20
+ return (e, I) => typeof e.value == "object" && Object.keys(e.value).length ? (l(), t(r(A), {
26
21
  key: 0,
27
22
  defaultOpen: e.noncollapsible
28
23
  }, {
29
- default: y(({ open: n }) => {
30
- var b;
24
+ default: h(({ open: n }) => {
25
+ var k;
31
26
  return [
32
- f("div", {
33
- class: d(["schema-card", [
27
+ P("div", {
28
+ class: p(["schema-card", [
34
29
  `schema-card--level-${e.level}`,
35
30
  { "schema-card--compact": e.compact, "schema-card--open": n }
36
31
  ]])
37
32
  }, [
38
- (b = e.value) != null && b.description && typeof e.value.description == "string" ? (l(), a("div", M, [
39
- v(p(T), {
33
+ (k = e.value) != null && k.description && typeof e.value.description == "string" ? (l(), o("div", F, [
34
+ d(r(T), {
40
35
  value: e.value.description
41
36
  }, null, 8, ["value"])
42
- ])) : r("", !0),
43
- f("div", {
44
- class: d(["schema-properties", { "schema-properties-open": n }])
37
+ ])) : s("", !0),
38
+ P("div", {
39
+ class: p(["schema-properties", { "schema-properties-open": n }])
45
40
  }, [
46
- O(v(p(E), {
41
+ q(d(r(E), {
47
42
  as: e.noncollapsible ? "div" : "button",
48
- class: d(["schema-card-title", { "schema-card-title--compact": e.compact }]),
49
- style: q({
43
+ class: p(["schema-card-title", { "schema-card-title--compact": e.compact }]),
44
+ style: N({
50
45
  top: `calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${e.level}))`
51
46
  }),
52
- onClickCapture: B
47
+ onClickCapture: j
53
48
  }, {
54
- default: y(() => {
55
- var c, o, u;
49
+ default: h(() => {
50
+ var c, a, u;
56
51
  return [
57
- e.compact ? (l(), a(t, { key: 0 }, [
58
- k.value ? (l(), a("svg", {
52
+ e.compact ? (l(), o(i, { key: 0 }, [
53
+ y.value ? (l(), t(r(w), {
59
54
  key: 0,
60
- class: d(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
61
- fill: "currentColor",
62
- height: "14",
63
- viewBox: "0 0 14 14",
64
- width: "14",
65
- xmlns: "http://www.w3.org/2000/svg"
66
- }, G, 2)) : r("", !0),
67
- n ? (l(), a(t, { key: 1 }, [
68
- C(" Hide " + P(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
69
- ], 64)) : (l(), a(t, { key: 2 }, [
70
- C(" Show " + P(((o = e.value) == null ? void 0 : o.title) ?? "Child Attributes"), 1)
55
+ class: p(["schema-card-title-icon h-2.5", { "schema-card-title-icon--open": n }]),
56
+ icon: "Add",
57
+ thickness: "3"
58
+ }, null, 8, ["class"])) : s("", !0),
59
+ n ? (l(), o(i, { key: 1 }, [
60
+ C(" Hide " + S(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
61
+ ], 64)) : (l(), o(i, { key: 2 }, [
62
+ C(" Show " + S(((a = e.value) == null ? void 0 : a.title) ?? "Child Attributes"), 1)
71
63
  ], 64))
72
- ], 64)) : (l(), a(t, { key: 1 }, [
73
- k.value ? (l(), i(p($), {
64
+ ], 64)) : (l(), o(i, { key: 1 }, [
65
+ y.value ? (l(), t(r(w), {
74
66
  key: 0,
75
- class: d(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
67
+ class: p(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
76
68
  icon: "ChevronRight",
77
69
  size: "md"
78
- }, null, 8, ["class"])) : r("", !0),
79
- v(F, {
70
+ }, null, 8, ["class"])) : s("", !0),
71
+ d($, {
80
72
  name: ((u = e.value) == null ? void 0 : u.title) ?? e.name,
81
73
  value: e.value
82
74
  }, null, 8, ["name", "value"])
@@ -85,26 +77,26 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
85
77
  }),
86
78
  _: 2
87
79
  }, 1032, ["as", "class", "style"]), [
88
- [z, !(e.noncollapsible && e.compact)]
80
+ [V, !(e.noncollapsible && e.compact)]
89
81
  ]),
90
- v(p(H), { static: e.noncollapsible }, {
91
- default: y(() => {
82
+ d(r(H), { static: e.noncollapsible }, {
83
+ default: h(() => {
92
84
  var c;
93
85
  return [
94
- e.value.properties || e.value.additionalProperties ? (l(), a(t, { key: 0 }, [
95
- e.value.properties ? (l(!0), a(t, { key: 0 }, I(Object.keys((c = e.value) == null ? void 0 : c.properties), (o) => {
96
- var u, g, w, S;
97
- return l(), i(m, {
98
- key: o,
86
+ e.value.properties || e.value.additionalProperties ? (l(), o(i, { key: 0 }, [
87
+ e.value.properties ? (l(!0), o(i, { key: 0 }, z(Object.keys((c = e.value) == null ? void 0 : c.properties), (a) => {
88
+ var u, f, b, g;
89
+ return l(), t(m, {
90
+ key: a,
99
91
  compact: e.compact,
100
92
  level: e.level,
101
- name: o,
102
- required: ((u = e.value.required) == null ? void 0 : u.includes(o)) || ((w = (g = e.value.properties) == null ? void 0 : g[o]) == null ? void 0 : w.required) === !0,
103
- value: (S = e.value.properties) == null ? void 0 : S[o]
93
+ name: a,
94
+ 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
+ value: (g = e.value.properties) == null ? void 0 : g[a]
104
96
  }, null, 8, ["compact", "level", "name", "required", "value"]);
105
- }), 128)) : r("", !0),
106
- e.value.additionalProperties ? (l(), a(t, { key: 1 }, [
107
- e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(), i(m, {
97
+ }), 128)) : s("", !0),
98
+ e.value.additionalProperties ? (l(), o(i, { key: 1 }, [
99
+ e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (l(), t(m, {
108
100
  key: 0,
109
101
  additional: "",
110
102
  compact: e.compact,
@@ -114,7 +106,7 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
114
106
  type: "anything",
115
107
  ...typeof e.value.additionalProperties == "object" ? e.value.additionalProperties : {}
116
108
  }
117
- }, null, 8, ["compact", "level", "value"])) : (l(), i(m, {
109
+ }, null, 8, ["compact", "level", "value"])) : (l(), t(m, {
118
110
  key: 1,
119
111
  additional: "",
120
112
  compact: e.compact,
@@ -122,8 +114,8 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
122
114
  noncollapsible: "",
123
115
  value: e.value.additionalProperties
124
116
  }, null, 8, ["compact", "level", "value"]))
125
- ], 64)) : r("", !0)
126
- ], 64)) : (l(), i(m, {
117
+ ], 64)) : s("", !0)
118
+ ], 64)) : (l(), t(m, {
127
119
  key: 1,
128
120
  compact: e.compact,
129
121
  level: e.level,
@@ -139,9 +131,9 @@ const L = (s) => (N("data-v-ba8edff4"), s = s(), V(), s), M = {
139
131
  ];
140
132
  }),
141
133
  _: 1
142
- }, 8, ["defaultOpen"])) : r("", !0);
134
+ }, 8, ["defaultOpen"])) : s("", !0);
143
135
  }
144
136
  });
145
137
  export {
146
- Y as default
138
+ K as default
147
139
  };
@@ -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-fb06e93b"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d1d8e2ad"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -2,7 +2,7 @@ import { defineComponent as V, openBlock as t, createElementBlock as l, normaliz
2
2
  import { ScalarMarkdown as h } from "@scalar/components";
3
3
  import m from "./Schema.vue.js";
4
4
  import A from "./SchemaPropertyHeading.vue.js";
5
- const G = (d) => (M("data-v-fb06e93b"), d = d(), $(), d), J = {
5
+ const G = (d) => (M("data-v-d1d8e2ad"), d = d(), $(), d), J = {
6
6
  key: 0,
7
7
  class: "property-description"
8
8
  }, K = {
@@ -1 +1 @@
1
- {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,mBAAmB,CAAA;;SAgBrC,MAAM;SAAO,GAAG;;;;SAAhB,MAAM;SAAO,GAAG;;;;AAmR7C,wBAOG;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":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA+HA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,mBAAmB,CAAA;;SAgBrC,MAAM;SAAO,GAAG;;;;SAAhB,MAAM;SAAO,GAAG;;;;AAqR7C,wBAOG;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,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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f0ef5b24"]]);
4
+ const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5a5d90da"]]);
5
5
  export {
6
- m as default
6
+ d as default
7
7
  };