@scalar/api-reference 1.24.17 → 1.24.19

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 (86) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/browser/standalone.js +11414 -11341
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.d.ts +1 -0
  6. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReference.vue.js +48 -51
  8. package/dist/components/ApiReferenceLayout.vue.d.ts +3 -2
  9. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  10. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  11. package/dist/components/ApiReferenceLayout.vue2.js +75 -72
  12. package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  13. package/dist/components/Content/BaseUrl/BaseUrl.vue.js +1 -1
  14. package/dist/components/Content/BaseUrl/BaseUrl.vue2.js +21 -19
  15. package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.d.ts +22 -0
  16. package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.d.ts.map +1 -0
  17. package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.js +7 -0
  18. package/dist/components/Content/BaseUrl/ServerVariableSelect.vue2.js +46 -0
  19. package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts +20 -0
  20. package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts.map +1 -0
  21. package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.js +7 -0
  22. package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue2.js +27 -0
  23. package/dist/components/Content/BaseUrl/ServerVariables.vue.d.ts.map +1 -1
  24. package/dist/components/Content/BaseUrl/ServerVariables.vue.js +1 -1
  25. package/dist/components/Content/BaseUrl/ServerVariables.vue2.js +31 -40
  26. package/dist/components/Content/Operation/CustomRequestExamples.vue.js +2 -2
  27. package/dist/components/Content/Operation/CustomRequestExamples.vue2.js +1 -1
  28. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Operation/OperationAccordion.vue.js +1 -1
  30. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +2 -2
  32. package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +1 -1
  33. package/dist/components/GettingStarted.vue.d.ts +1 -1
  34. package/dist/components/Layouts/ClassicLayout.vue.d.ts +4 -2
  35. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  36. package/dist/components/Layouts/ClassicLayout.vue.js +33 -28
  37. package/dist/components/Layouts/{BaseLayout.vue.d.ts → Layouts.vue.d.ts} +8 -3
  38. package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -0
  39. package/dist/components/Layouts/Layouts.vue.js +33 -0
  40. package/dist/components/Layouts/Layouts.vue2.js +4 -0
  41. package/dist/components/Layouts/ModernLayout.vue.d.ts +4 -2
  42. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  43. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  44. package/dist/components/Layouts/ModernLayout.vue2.js +46 -41
  45. package/dist/components/Layouts/index.d.ts +1 -7
  46. package/dist/components/Layouts/index.d.ts.map +1 -1
  47. package/dist/components/SearchButton.vue.js +1 -1
  48. package/dist/components/SearchButton.vue2.js +5 -5
  49. package/dist/components/api-client-bus.d.ts +5 -1
  50. package/dist/components/api-client-bus.d.ts.map +1 -1
  51. package/dist/components/api-client-bus.js +2 -2
  52. package/dist/features.d.ts +1 -1
  53. package/dist/features.d.ts.map +1 -1
  54. package/dist/helpers/createEmptySpecification.d.ts +4 -0
  55. package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
  56. package/dist/helpers/deepMerge.d.ts +1 -1
  57. package/dist/helpers/deepMerge.d.ts.map +1 -1
  58. package/dist/helpers/getHeadingsFromMarkdown.d.ts +3 -0
  59. package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +1 -1
  60. package/dist/helpers/getModels.d.ts +3 -0
  61. package/dist/helpers/getModels.d.ts.map +1 -1
  62. package/dist/helpers/isValidUrl.d.ts +3 -0
  63. package/dist/helpers/isValidUrl.d.ts.map +1 -1
  64. package/dist/helpers/isValidUrl.js +3 -3
  65. package/dist/helpers/openClientFor.d.ts +3 -0
  66. package/dist/helpers/openClientFor.d.ts.map +1 -1
  67. package/dist/hooks/index.d.ts +2 -2
  68. package/dist/hooks/useClientStore.js +5 -0
  69. package/dist/hooks/useDeprecationWarnings.d.ts +3 -0
  70. package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
  71. package/dist/hooks/useRefOnMount.d.ts +3 -0
  72. package/dist/hooks/useRefOnMount.d.ts.map +1 -1
  73. package/dist/hooks/useRefOnMount.js +10 -0
  74. package/dist/hooks/useSidebar.d.ts +3 -0
  75. package/dist/hooks/useSidebar.d.ts.map +1 -1
  76. package/dist/index.d.ts +2 -0
  77. package/dist/index.d.ts.map +1 -1
  78. package/dist/index.js +92 -72
  79. package/dist/stores/useHttpClientStore.d.ts +3 -0
  80. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  81. package/dist/style.css +1 -1
  82. package/dist/types.d.ts +11 -1
  83. package/dist/types.d.ts.map +1 -1
  84. package/package.json +7 -7
  85. package/dist/components/Layouts/BaseLayout.vue.d.ts.map +0 -1
  86. package/dist/components/Layouts/index.js +0 -9
@@ -1,35 +1,37 @@
1
- import { defineComponent as b, ref as S, watch as k, unref as r, openBlock as a, createElementBlock as v, createElementVNode as l, Fragment as g, renderList as I, toDisplayString as V, createCommentVNode as d, createVNode as p, createBlock as y, pushScopeId as B, popScopeId as w } from "vue";
1
+ import { defineComponent as b, ref as S, watch as k, unref as r, openBlock as l, createElementBlock as v, createElementVNode as o, Fragment as g, renderList as I, toDisplayString as V, createCommentVNode as d, createVNode as p, createBlock as y, pushScopeId as B, popScopeId as w } from "vue";
2
2
  import { useServerStore as C, findVariables as E } from "@scalar/api-client";
3
3
  import { ScalarIcon as N, ScalarMarkdown as x } from "@scalar/components";
4
4
  import D from "./ServerItem.vue.js";
5
5
  import L from "./ServerVariables.vue.js";
6
- const U = (c) => (B("data-v-2bf97807"), c = c(), w(), c), j = { key: 0 }, F = /* @__PURE__ */ U(() => /* @__PURE__ */ l("span", { class: "scalar-card-serverlist-title" }, "Base URL", -1)), M = { class: "scalar-card-serverlist" }, O = { class: "scalar-card-serverlist-container" }, R = { class: "server-item" }, q = { class: "server-selector" }, z = ["value"], A = ["value"], G = {
6
+ const U = (c) => (B("data-v-e4183eb6"), c = c(), w(), c), j = { key: 0 }, F = /* @__PURE__ */ U(() => /* @__PURE__ */ o("span", { class: "scalar-card-serverlist-title" }, "Base URL", -1)), M = { class: "scalar-card-serverlist" }, O = { class: "scalar-card-serverlist-container" }, R = { class: "server-item" }, q = { class: "server-selector" }, z = ["value"], A = ["value"], G = {
7
7
  key: 0,
8
8
  muted: ""
9
9
  }, H = { class: "description" }, W = /* @__PURE__ */ b({
10
10
  __name: "BaseUrl",
11
11
  setup(c) {
12
- const { server: e, setServer: h } = C(), s = S(0);
12
+ const { server: e, setServer: f } = C(), s = S(0);
13
13
  return k(
14
14
  [s, () => e.servers],
15
15
  () => {
16
16
  var n, _, m;
17
17
  if (!e.servers.length) return;
18
- const o = ((n = e.servers[s.value]) == null ? void 0 : n.variables) ?? {}, i = o ? Object.keys(o).map((t) => {
19
- var f;
18
+ const a = ((n = e.servers[s.value]) == null ? void 0 : n.variables) ?? {}, i = a ? Object.keys(a).map((t) => {
19
+ var h;
20
20
  return {
21
21
  name: t,
22
- value: ((f = o[t].default) == null ? void 0 : f.toString()) ?? ""
22
+ value: ((h = a[t].default) == null ? void 0 : h.toString()) ?? "",
23
+ enum: a[t].enum ?? []
23
24
  };
24
25
  }) : [];
25
26
  E(
26
27
  (_ = e.servers[s.value]) == null ? void 0 : _.url
27
- ).filter((t) => !o[t]).forEach((t) => {
28
+ ).filter((t) => !a[t]).forEach((t) => {
28
29
  i.push({
29
30
  name: t,
30
- value: ""
31
+ value: "",
32
+ enum: []
31
33
  });
32
- }), h({
34
+ }), f({
33
35
  selectedServer: s.value,
34
36
  description: (m = e.servers[s.value]) == null ? void 0 : m.description,
35
37
  variables: i
@@ -39,13 +41,13 @@ const U = (c) => (B("data-v-2bf97807"), c = c(), w(), c), j = { key: 0 }, F = /*
39
41
  immediate: !0,
40
42
  deep: !0
41
43
  }
42
- ), (o, i) => r(e).servers.length > 0 ? (a(), v("div", j, [
44
+ ), (a, i) => r(e).servers.length > 0 ? (l(), v("div", j, [
43
45
  F,
44
- l("div", M, [
45
- l("div", O, [
46
- l("div", R, [
47
- l("div", q, [
48
- r(e).servers.length > 1 ? (a(), v("select", {
46
+ o("div", M, [
47
+ o("div", O, [
48
+ o("div", R, [
49
+ o("div", q, [
50
+ r(e).servers.length > 1 ? (l(), v("select", {
49
51
  key: 0,
50
52
  value: s.value,
51
53
  onInput: i[0] || (i[0] = (u) => s.value = parseInt(
@@ -53,7 +55,7 @@ const U = (c) => (B("data-v-2bf97807"), c = c(), w(), c), j = { key: 0 }, F = /*
53
55
  10
54
56
  ))
55
57
  }, [
56
- (a(!0), v(g, null, I(r(e).servers, (u, n) => (a(), v("option", {
58
+ (l(!0), v(g, null, I(r(e).servers, (u, n) => (l(), v("option", {
57
59
  key: n,
58
60
  value: n
59
61
  }, V(u.url), 9, A))), 128))
@@ -62,7 +64,7 @@ const U = (c) => (B("data-v-2bf97807"), c = c(), w(), c), j = { key: 0 }, F = /*
62
64
  value: r(e).servers[s.value],
63
65
  variables: r(e).variables
64
66
  }, null, 8, ["value", "variables"]),
65
- r(e).servers.length > 1 ? (a(), y(r(N), {
67
+ r(e).servers.length > 1 ? (l(), y(r(N), {
66
68
  key: 1,
67
69
  icon: "ChevronDown"
68
70
  })) : d("", !0)
@@ -73,8 +75,8 @@ const U = (c) => (B("data-v-2bf97807"), c = c(), w(), c), j = { key: 0 }, F = /*
73
75
  }, null, 8, ["value"])
74
76
  ])
75
77
  ]),
76
- r(e).description ? (a(), v("div", G, [
77
- l("div", H, [
78
+ r(e).description ? (l(), v("div", G, [
79
+ o("div", H, [
78
80
  p(r(x), {
79
81
  value: r(e).description
80
82
  }, null, 8, ["value"])
@@ -0,0 +1,22 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ enum: string[];
3
+ value: string;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ change: (v: string) => void;
6
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
+ enum: string[];
8
+ value: string;
9
+ }>>> & {
10
+ onChange?: ((v: string) => any) | undefined;
11
+ }, {}, {}>;
12
+ export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToOption<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
22
+ //# sourceMappingURL=ServerVariableSelect.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServerVariableSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/ServerVariableSelect.vue"],"names":[],"mappings":";;;;;;;;;;;AA6LA,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"}
@@ -0,0 +1,7 @@
1
+ import e from "./ServerVariableSelect.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(e, [["__scopeId", "data-v-59ebb6b5"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,46 @@
1
+ import { defineComponent as p, computed as i, openBlock as v, createElementBlock as f, createVNode as t, unref as a, withCtx as r, createElementVNode as _, toDisplayString as h } from "vue";
2
+ import { ScalarListbox as S, ScalarButton as V, ScalarIcon as g } from "@scalar/components";
3
+ const b = { class: "w-full" }, B = /* @__PURE__ */ p({
4
+ __name: "ServerVariableSelect",
5
+ props: {
6
+ enum: {},
7
+ value: {}
8
+ },
9
+ emits: ["change"],
10
+ setup(u, { emit: c }) {
11
+ const l = u, d = c, o = i(
12
+ () => l.enum.map((e) => ({ id: e, label: e }))
13
+ ), n = i({
14
+ get: () => o.value.find((e) => e.id === l.value),
15
+ set: (e) => d("change", (e == null ? void 0 : e.id) ?? "")
16
+ });
17
+ return (e, s) => (v(), f("div", b, [
18
+ t(a(S), {
19
+ modelValue: n.value,
20
+ "onUpdate:modelValue": s[0] || (s[0] = (m) => n.value = m),
21
+ options: o.value
22
+ }, {
23
+ default: r(() => [
24
+ t(a(V), {
25
+ class: "variable-select",
26
+ fullWidth: "",
27
+ variant: "ghost"
28
+ }, {
29
+ default: r(() => [
30
+ _("span", null, h(e.value), 1),
31
+ t(a(g), {
32
+ icon: "ChevronDown",
33
+ size: "xs"
34
+ })
35
+ ]),
36
+ _: 1
37
+ })
38
+ ]),
39
+ _: 1
40
+ }, 8, ["modelValue", "options"])
41
+ ]));
42
+ }
43
+ });
44
+ export {
45
+ B as default
46
+ };
@@ -0,0 +1,20 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ value: string;
3
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ change: (v: string) => void;
5
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
+ value: string;
7
+ }>>> & {
8
+ onChange?: ((v: string) => any) | undefined;
9
+ }, {}, {}>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToOption<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
20
+ //# sourceMappingURL=ServerVariableTextbox.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServerVariableTextbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/ServerVariableTextbox.vue"],"names":[],"mappings":";;;;;;;;;AAyGA,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"}
@@ -0,0 +1,7 @@
1
+ import o from "./ServerVariableTextbox.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d02ff0e9"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,27 @@
1
+ import { defineComponent as r, computed as s, withDirectives as u, openBlock as m, createElementBlock as i, vModelText as v } from "vue";
2
+ const x = /* @__PURE__ */ r({
3
+ __name: "ServerVariableTextbox",
4
+ props: {
5
+ value: {}
6
+ },
7
+ emits: ["change"],
8
+ setup(l, { emit: a }) {
9
+ const n = l, c = a, e = s({
10
+ get: () => n.value,
11
+ set: (t) => c("change", t)
12
+ });
13
+ return (t, o) => u((m(), i("input", {
14
+ "onUpdate:modelValue": o[0] || (o[0] = (p) => e.value = p),
15
+ autocomplete: "off",
16
+ class: "variable-textbox",
17
+ placeholder: "value",
18
+ spellcheck: "false",
19
+ type: "text"
20
+ }, null, 512)), [
21
+ [v, e.value]
22
+ ]);
23
+ }
24
+ });
25
+ export {
26
+ x as default
27
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"ServerVariables.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/ServerVariables.vue"],"names":[],"mappings":"AA4GA,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,oBAAoB,CAAA;;;;;;AAoGlE,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":"ServerVariables.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/BaseUrl/ServerVariables.vue"],"names":[],"mappings":"AA4EA,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,oBAAoB,CAAA;;;;;;AAgIlE,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,7 +1,7 @@
1
1
  import r from "./ServerVariables.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ e(r, [["__scopeId", "data-v-2e5f4fe1"]]);
4
+ const f = /* @__PURE__ */ e(r, [["__scopeId", "data-v-99d6eef0"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1,56 +1,47 @@
1
- import { defineComponent as f, openBlock as t, createElementBlock as o, Fragment as r, renderList as m, createElementVNode as l, toDisplayString as c, createCommentVNode as h } from "vue";
2
- import { useServerStore as k } from "@scalar/api-client";
3
- const y = { key: 0 }, I = ["for"], x = ["id", "value", "onInput"], S = ["value"], g = { class: "input-value" }, V = ["id", "value", "onInput"], C = /* @__PURE__ */ f({
1
+ import { defineComponent as p, openBlock as r, createElementBlock as o, Fragment as v, renderList as d, createElementVNode as s, toDisplayString as f, createBlock as m, createCommentVNode as _ } from "vue";
2
+ import { useServerStore as h } from "@scalar/api-client";
3
+ import S from "./ServerVariableSelect.vue.js";
4
+ import g from "./ServerVariableTextbox.vue.js";
5
+ const k = {
6
+ key: 0,
7
+ class: "variable-container"
8
+ }, V = ["for"], E = /* @__PURE__ */ p({
4
9
  __name: "ServerVariables",
5
10
  props: {
6
11
  value: {}
7
12
  },
8
- setup($) {
9
- const { server: u, setServer: p } = k(), d = (s, a) => {
10
- const e = a.target.value, n = [...u.variables], _ = n.findIndex((v) => v.name === s);
11
- n[_].value = e, p({
12
- variables: n
13
+ setup(C) {
14
+ const { server: u, setServer: c } = h(), t = (a, l) => {
15
+ const e = [...u.variables], n = e.findIndex((i) => i.name === a);
16
+ e[n].value = l, c({
17
+ variables: e
13
18
  });
14
- }, i = (s) => {
15
- const a = u.variables.findIndex((e) => e.name === s);
16
- return u.variables[a].value ?? "";
17
19
  };
18
- return (s, a) => s.value ? (t(), o("div", y, [
19
- (t(!0), o(r, null, m(s.value, (e) => (t(), o("div", {
20
+ return (a, l) => a.value ? (r(), o("div", k, [
21
+ (r(!0), o(v, null, d(a.value, (e) => (r(), o("div", {
20
22
  key: e.name,
21
- class: "input"
23
+ class: "variable-container-item"
22
24
  }, [
23
- l("label", {
25
+ s("label", {
26
+ class: "variable-description",
24
27
  for: `variable-${e.name}`
25
28
  }, [
26
- l("code", null, c(e.name), 1)
27
- ], 8, I),
28
- e.enum ? (t(), o(r, { key: 0 }, [
29
- l("select", {
30
- id: `variable-${e.name}`,
31
- value: i(e.name),
32
- onInput: (n) => d(e.name, n)
33
- }, [
34
- (t(!0), o(r, null, m(e.enum, (n) => (t(), o("option", {
35
- key: n,
36
- value: n
37
- }, c(n), 9, S))), 128))
38
- ], 40, x),
39
- l("div", g, c(e.default), 1)
40
- ], 64)) : (t(), o("input", {
29
+ s("code", null, f(e.name), 1)
30
+ ], 8, V),
31
+ e.enum && e.enum.length ? (r(), m(S, {
32
+ key: 0,
33
+ enum: e.enum.map((n) => `${n}`),
34
+ value: e.value,
35
+ onChange: (n) => t(e.name, n)
36
+ }, null, 8, ["enum", "value", "onChange"])) : (r(), m(g, {
41
37
  key: 1,
42
- id: `variable-${e.name}`,
43
- autocomplete: "off",
44
- placeholder: "value",
45
- spellcheck: "false",
46
- type: "text",
47
- value: i(e.name),
48
- onInput: (n) => d(e.name, n)
49
- }, null, 40, V))
38
+ value: e.value,
39
+ onChange: (n) => t(e.name, n)
40
+ }, null, 8, ["value", "onChange"]))
50
41
  ]))), 128))
51
- ])) : h("", !0);
42
+ ])) : _("", !0);
52
43
  }
53
44
  });
54
45
  export {
55
- C as default
46
+ E as default
56
47
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./CustomRequestExamples.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-a6cfe179"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6eb9bb56"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };
@@ -16,7 +16,7 @@ const P = { class: "request-header" }, G = /* @__PURE__ */ b({
16
16
  },
17
17
  setup(f) {
18
18
  const l = f, t = g(0), v = u(() => (
19
- // @ts-ignore
19
+ // @ts-expect-error Type isn’t correct
20
20
  {
21
21
  C: "c",
22
22
  "C#": "csharp",
@@ -1 +1 @@
1
- {"version":3,"file":"OperationAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/OperationAccordion.vue"],"names":[],"mappings":"AAoNA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AA8Q7D,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":"OperationAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/OperationAccordion.vue"],"names":[],"mappings":"AA0NA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;;;AA8Q7D,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,7 +1,7 @@
1
1
  import o from "./OperationAccordion.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-e54314ae"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-aca8c078"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"PathResponses.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/PathResponses.vue"],"names":[],"mappings":"AA6TA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;AAmY7D,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":"PathResponses.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/PathResponses.vue"],"names":[],"mappings":"AA2TA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;;;;;;AAmY7D,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,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-357c6dd1"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6087e0e2"]]);
5
5
  export {
6
- a as default
6
+ r as default
7
7
  };
@@ -9,7 +9,7 @@ import q from "../../../Card/CardTab.vue.js";
9
9
  import G from "../../../Card/CardContent.vue.js";
10
10
  import Q from "../../../Card/CardFooter.vue.js";
11
11
  import { useClipboard as X } from "../../../../hooks/useClipboard.js";
12
- const Y = (u) => (P("data-v-357c6dd1"), u = u(), A(), u), Z = {
12
+ const Y = (u) => (P("data-v-6087e0e2"), 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 = {
@@ -16,9 +16,9 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
16
16
  id: ThemeId;
17
17
  label: string;
18
18
  }) => any) | undefined;
19
+ onUpdateContent?: ((value: string) => any) | undefined;
19
20
  onLoadSwaggerFile?: (() => any) | undefined;
20
21
  onLinkSwaggerFile?: (() => any) | undefined;
21
- onUpdateContent?: ((value: string) => any) | undefined;
22
22
  }, {}, {}>;
23
23
  export default _default;
24
24
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,9 +1,11 @@
1
- import type { ReferenceLayoutProps, ReferenceSlots } from '../../types';
1
+ import type { ReferenceLayoutProps, ReferenceLayoutSlots } from '../../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<ReferenceLayoutProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
3
  toggleDarkMode: () => void;
4
+ updateContent: (v: string) => void;
4
5
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<ReferenceLayoutProps>>> & {
6
+ onUpdateContent?: ((v: string) => any) | undefined;
5
7
  onToggleDarkMode?: (() => any) | undefined;
6
- }, {}, {}>, Readonly<ReferenceSlots> & ReferenceSlots>;
8
+ }, {}, {}>, Readonly<ReferenceLayoutSlots> & ReferenceLayoutSlots>;
7
9
  export default _default;
8
10
  type __VLS_WithTemplateSlots<T, S> = T & {
9
11
  new (): {
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;;;;;;AAmIvE,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ClassicLayout.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;;;;;;;;AAwJ7E,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,9 +1,9 @@
1
- import { defineComponent as p, computed as i, openBlock as l, createBlock as d, withCtx as o, createVNode as r, unref as u, renderSlot as f } from "vue";
2
- import m from "../ApiReferenceLayout.vue.js";
3
- import g from "../ClassicHeader.vue.js";
4
- import k from "../SearchButton.vue.js";
5
- import S from "../DarkModeToggle/DarkModeIconToggle.vue.js";
6
- const C = /* @__PURE__ */ p({
1
+ import { defineComponent as c, useSlots as u, computed as f, openBlock as m, createBlock as g, createSlots as S, withCtx as t, createVNode as n, unref as k, renderList as D, renderSlot as C, normalizeProps as w, guardReactiveProps as y } from "vue";
2
+ import M from "../ApiReferenceLayout.vue.js";
3
+ import v from "../ClassicHeader.vue.js";
4
+ import B from "../SearchButton.vue.js";
5
+ import H from "../DarkModeToggle/DarkModeIconToggle.vue.js";
6
+ const P = /* @__PURE__ */ c({
7
7
  __name: "ClassicLayout",
8
8
  props: {
9
9
  configuration: {},
@@ -11,39 +11,44 @@ const C = /* @__PURE__ */ p({
11
11
  rawSpec: {},
12
12
  isDark: { type: Boolean }
13
13
  },
14
- emits: ["toggleDarkMode"],
15
- setup(n) {
16
- const s = n, a = i(() => ({ ...s.configuration, showSidebar: !1 }));
17
- return (e, t) => (l(), d(m, {
18
- configuration: a.value,
14
+ emits: ["toggleDarkMode", "updateContent"],
15
+ setup(p) {
16
+ const i = p, l = u(), s = f(() => ({ ...i.configuration, showSidebar: !1 }));
17
+ return (e, o) => (m(), g(M, {
18
+ configuration: s.value,
19
19
  parsedSpec: e.parsedSpec,
20
- rawSpec: e.rawSpec
21
- }, {
22
- "content-start": o(({ spec: c }) => [
23
- r(g, null, {
24
- "dark-mode-toggle": o(() => [
25
- r(u(S), {
20
+ rawSpec: e.rawSpec,
21
+ onUpdateContent: o[1] || (o[1] = (r) => e.$emit("updateContent", r))
22
+ }, S({
23
+ "content-start": t(({ spec: r }) => [
24
+ n(v, null, {
25
+ "dark-mode-toggle": t(() => [
26
+ n(k(H), {
26
27
  isDarkMode: e.isDark,
27
- onToggleDarkMode: t[0] || (t[0] = (D) => e.$emit("toggleDarkMode"))
28
+ onToggleDarkMode: o[0] || (o[0] = (a) => e.$emit("toggleDarkMode"))
28
29
  }, null, 8, ["isDarkMode"])
29
30
  ]),
30
- default: o(() => [
31
- r(k, {
31
+ default: t(() => [
32
+ n(B, {
32
33
  class: "t-doc__sidebar",
33
- searchHotKey: a.value.searchHotKey,
34
- spec: c
34
+ searchHotKey: s.value.searchHotKey,
35
+ spec: r
35
36
  }, null, 8, ["searchHotKey", "spec"])
36
37
  ]),
37
38
  _: 2
38
39
  }, 1024)
39
40
  ]),
40
- "content-end": o(() => [
41
- f(e.$slots, "footer")
42
- ]),
43
- _: 3
44
- }, 8, ["configuration", "parsedSpec", "rawSpec"]));
41
+ _: 2
42
+ }, [
43
+ D(l, (r, a) => ({
44
+ name: a,
45
+ fn: t((d) => [
46
+ C(e.$slots, a, w(y(d || {})))
47
+ ])
48
+ }))
49
+ ]), 1032, ["configuration", "parsedSpec", "rawSpec"]));
45
50
  }
46
51
  });
47
52
  export {
48
- C as default
53
+ P as default
49
54
  };
@@ -1,9 +1,14 @@
1
- import type { ReferenceLayoutProps, ReferenceSlots } from '../../types';
1
+ /**
2
+ * This component allows dynamic selection of various layout configurations
3
+ */
4
+ import type { ReferenceLayoutProps, ReferenceLayoutSlots } from '../../types';
2
5
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<ReferenceLayoutProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
6
  toggleDarkMode: () => void;
7
+ updateContent: (v: string) => void;
4
8
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<ReferenceLayoutProps>>> & {
9
+ onUpdateContent?: ((v: string) => any) | undefined;
5
10
  onToggleDarkMode?: (() => any) | undefined;
6
- }, {}, {}>, Readonly<ReferenceSlots> & ReferenceSlots>;
11
+ }, {}, {}>, Readonly<ReferenceLayoutSlots> & ReferenceLayoutSlots>;
7
12
  export default _default;
8
13
  type __VLS_WithTemplateSlots<T, S> = T & {
9
14
  new (): {
@@ -19,4 +24,4 @@ type __VLS_TypePropsToOption<T> = {
19
24
  required: true;
20
25
  };
21
26
  };
22
- //# sourceMappingURL=BaseLayout.vue.d.ts.map
27
+ //# sourceMappingURL=Layouts.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Layouts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/Layouts.vue"],"names":[],"mappings":"AAyCA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;;;;;;;;AA4G7E,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { defineComponent as l, useSlots as d, openBlock as u, createBlock as f, resolveDynamicComponent as g, mergeProps as c, createSlots as k, renderList as y, withCtx as C, renderSlot as D, normalizeProps as S, guardReactiveProps as $ } from "vue";
2
+ import M from "./ClassicLayout.vue.js";
3
+ import n from "./ModernLayout.vue.js";
4
+ const P = /* @__PURE__ */ l({
5
+ __name: "Layouts",
6
+ props: {
7
+ configuration: {},
8
+ parsedSpec: {},
9
+ rawSpec: {},
10
+ isDark: { type: Boolean }
11
+ },
12
+ emits: ["toggleDarkMode", "updateContent"],
13
+ setup(s) {
14
+ const a = s, p = d(), i = {
15
+ modern: n,
16
+ classic: M
17
+ };
18
+ return (o, e) => (u(), f(g(i[o.configuration.layout ?? "modern"] ?? n), c(a, {
19
+ onToggleDarkMode: e[0] || (e[0] = (t) => o.$emit("toggleDarkMode")),
20
+ onUpdateContent: e[1] || (e[1] = (t) => o.$emit("updateContent", t))
21
+ }), k({ _: 2 }, [
22
+ y(p, (t, r) => ({
23
+ name: r,
24
+ fn: C((m) => [
25
+ D(o.$slots, r, S($(m || {})))
26
+ ])
27
+ }))
28
+ ]), 1040));
29
+ }
30
+ });
31
+ export {
32
+ P as default
33
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Layouts.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,9 +1,11 @@
1
- import type { ReferenceLayoutProps, ReferenceSlots } from '../../types';
1
+ import type { ReferenceLayoutProps, ReferenceLayoutSlots } from '../../types';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<ReferenceLayoutProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
3
  toggleDarkMode: () => void;
4
+ updateContent: (v: string) => void;
4
5
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<ReferenceLayoutProps>>> & {
6
+ onUpdateContent?: ((v: string) => any) | undefined;
5
7
  onToggleDarkMode?: (() => any) | undefined;
6
- }, {}, {}>, Readonly<ReferenceSlots> & ReferenceSlots>;
8
+ }, {}, {}>, Readonly<ReferenceLayoutSlots> & ReferenceLayoutSlots>;
7
9
  export default _default;
8
10
  type __VLS_WithTemplateSlots<T, S> = T & {
9
11
  new (): {
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AAkFA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;;;;;;AAkKvE,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AAyFA,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;;;;;;;;AAsL7E,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}