@scalar/api-reference 1.31.0 → 1.31.1

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 (66) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/browser/standalone.js +2030 -1927
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  5. package/dist/components/Content/Models/Models.vue.js +1 -1
  6. package/dist/components/Content/Models/Models.vue2.js +2 -1
  7. package/dist/components/Content/Schema/Schema.preview.d.ts +252 -84
  8. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  9. package/dist/components/Content/Schema/Schema.vue.d.ts +17 -3
  10. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  12. package/dist/components/Content/Schema/Schema.vue2.js +146 -128
  13. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
  14. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +2 -3
  16. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +29 -29
  18. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +10 -3
  19. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  21. package/dist/components/Content/Schema/SchemaProperty.vue2.js +129 -101
  22. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +2 -2
  23. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  25. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +122 -115
  26. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  27. package/dist/components/Layouts/ClassicLayout.vue.js +11 -11
  28. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  29. package/dist/components/Section/SectionAccordion.vue.js +2 -2
  30. package/dist/components/Section/SectionAccordion.vue2.js +1 -1
  31. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  32. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  33. package/dist/components/Section/SectionContainerAccordion.vue2.js +4 -4
  34. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +2 -0
  35. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  36. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  37. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +178 -127
  38. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  39. package/dist/features/Operation/Operation.vue.js +29 -23
  40. package/dist/features/Operation/components/OperationParameters.vue.d.ts +7 -3
  41. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  42. package/dist/features/Operation/components/OperationParameters.vue.js +28 -24
  43. package/dist/features/Operation/components/RequestBody.vue.d.ts +5 -1
  44. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  45. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  46. package/dist/features/Operation/components/RequestBody.vue2.js +41 -36
  47. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +5 -1
  48. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  49. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  50. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +79 -74
  51. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +5 -1
  52. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  53. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  54. package/dist/features/Operation/layouts/ModernLayout.vue2.js +63 -57
  55. package/dist/hooks/useDiscriminator.d.ts +53 -0
  56. package/dist/hooks/useDiscriminator.d.ts.map +1 -0
  57. package/dist/hooks/useDiscriminator.js +149 -0
  58. package/dist/hooks/useOperationDiscriminator.d.ts +8 -0
  59. package/dist/hooks/useOperationDiscriminator.d.ts.map +1 -0
  60. package/dist/hooks/useOperationDiscriminator.js +57 -0
  61. package/dist/index.js +1 -1
  62. package/dist/style.css +1 -1
  63. package/package.json +6 -6
  64. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +0 -12
  65. package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +0 -1
  66. package/dist/components/Content/Schema/helpers/schema-discriminator.js +0 -45
@@ -1,70 +1,74 @@
1
- import { defineComponent as u, createElementBlock as h, openBlock as i, Fragment as y, createVNode as o, createBlock as B, createCommentVNode as f, withCtx as t, createTextVNode as a } from "vue";
1
+ import { defineComponent as B, createElementBlock as c, openBlock as i, Fragment as f, createVNode as o, createBlock as k, createCommentVNode as q, withCtx as s, createTextVNode as a } from "vue";
2
2
  import p from "./ParameterList.vue.js";
3
- import k from "./RequestBody.vue.js";
4
- const C = /* @__PURE__ */ u({
3
+ import P from "./RequestBody.vue.js";
4
+ const g = /* @__PURE__ */ B({
5
5
  __name: "OperationParameters",
6
6
  props: {
7
7
  operation: {},
8
8
  schemas: {}
9
9
  },
10
- setup(n) {
11
- const l = n, m = (r) => {
12
- var e, s;
13
- return ((s = (e = l.operation) == null ? void 0 : e.parameters) == null ? void 0 : s.filter((d) => d.in === r)) ?? [];
10
+ emits: ["update:modelValue"],
11
+ setup(n, { emit: l }) {
12
+ const d = n, u = l, h = (t) => {
13
+ u("update:modelValue", t);
14
+ }, m = (t) => {
15
+ var e, r;
16
+ return ((r = (e = d.operation) == null ? void 0 : e.parameters) == null ? void 0 : r.filter((y) => y.in === t)) ?? [];
14
17
  };
15
- return (r, e) => {
16
- var s;
17
- return i(), h(y, null, [
18
+ return (t, e) => {
19
+ var r;
20
+ return i(), c(f, null, [
18
21
  o(p, {
19
22
  parameters: m("path"),
20
- schemas: r.schemas
23
+ schemas: t.schemas
21
24
  }, {
22
- title: t(() => e[0] || (e[0] = [
25
+ title: s(() => e[0] || (e[0] = [
23
26
  a("Path Parameters")
24
27
  ])),
25
28
  _: 1
26
29
  }, 8, ["parameters", "schemas"]),
27
30
  o(p, {
28
31
  parameters: m("query"),
29
- schemas: r.schemas
32
+ schemas: t.schemas
30
33
  }, {
31
- title: t(() => e[1] || (e[1] = [
34
+ title: s(() => e[1] || (e[1] = [
32
35
  a("Query Parameters")
33
36
  ])),
34
37
  _: 1
35
38
  }, 8, ["parameters", "schemas"]),
36
39
  o(p, {
37
40
  parameters: m("header"),
38
- schemas: r.schemas
41
+ schemas: t.schemas
39
42
  }, {
40
- title: t(() => e[2] || (e[2] = [
43
+ title: s(() => e[2] || (e[2] = [
41
44
  a("Headers")
42
45
  ])),
43
46
  _: 1
44
47
  }, 8, ["parameters", "schemas"]),
45
48
  o(p, {
46
49
  parameters: m("cookie"),
47
- schemas: r.schemas
50
+ schemas: t.schemas
48
51
  }, {
49
- title: t(() => e[3] || (e[3] = [
52
+ title: s(() => e[3] || (e[3] = [
50
53
  a("Cookies")
51
54
  ])),
52
55
  _: 1
53
56
  }, 8, ["parameters", "schemas"]),
54
- (s = r.operation) != null && s.requestBody ? (i(), B(k, {
57
+ (r = t.operation) != null && r.requestBody ? (i(), k(P, {
55
58
  key: 0,
56
- requestBody: r.operation.requestBody,
57
- schemas: r.schemas
59
+ requestBody: t.operation.requestBody,
60
+ schemas: t.schemas,
61
+ "onUpdate:modelValue": h
58
62
  }, {
59
- title: t(() => e[4] || (e[4] = [
63
+ title: s(() => e[4] || (e[4] = [
60
64
  a("Body")
61
65
  ])),
62
66
  _: 1
63
- }, 8, ["requestBody", "schemas"])) : f("", !0)
67
+ }, 8, ["requestBody", "schemas"])) : q("", !0)
64
68
  ], 64);
65
69
  };
66
70
  }
67
71
  });
68
72
  export {
69
- C as default
73
+ g as default
70
74
  };
@@ -13,7 +13,11 @@ declare function __VLS_template(): {
13
13
  rootEl: any;
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
17
+ "update:modelValue": (value: string) => any;
18
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
19
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
22
  export default _default;
19
23
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AAsJA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;AAoDF,iBAAS,cAAc;WA6GT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AAiKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;AA+DF,iBAAS,cAAc;WA2IT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,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 "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e3af4d9a"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6c0fd437"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,43 +1,44 @@
1
- import { defineComponent as b, computed as B, ref as k, createElementBlock as a, createCommentVNode as i, openBlock as n, createElementVNode as f, createVNode as l, renderSlot as j, unref as c } from "vue";
2
- import { ScalarMarkdown as C } from "@scalar/components";
3
- import E from "./ContentTypeSelect.vue.js";
1
+ import { defineComponent as j, computed as f, ref as C, createElementBlock as a, createCommentVNode as i, openBlock as l, createElementVNode as b, createVNode as n, renderSlot as E, unref as d } from "vue";
2
+ import { ScalarMarkdown as P } from "@scalar/components";
3
+ import S from "./ContentTypeSelect.vue.js";
4
4
  import y from "../../../components/Content/Schema/Schema.vue.js";
5
- const P = { key: 0 }, S = { class: "request-body-header" }, V = { class: "request-body-title" }, _ = {
5
+ const _ = { key: 0 }, O = { class: "request-body-header" }, R = { class: "request-body-title" }, g = {
6
6
  key: 0,
7
7
  class: "request-body-required"
8
- }, O = {
8
+ }, N = {
9
9
  key: 0,
10
10
  class: "request-body-description"
11
- }, R = {
11
+ }, T = {
12
12
  key: 0,
13
13
  class: "request-body-schema"
14
- }, N = {
14
+ }, M = {
15
15
  key: 1,
16
16
  class: "request-body-schema"
17
- }, w = /* @__PURE__ */ b({
17
+ }, z = /* @__PURE__ */ j({
18
18
  __name: "RequestBody",
19
19
  props: {
20
20
  requestBody: {},
21
21
  schemas: {}
22
22
  },
23
- setup(d) {
23
+ emits: ["update:modelValue"],
24
+ setup(c, { emit: k }) {
24
25
  var q;
25
- const v = B(
26
+ const V = k, v = f(
26
27
  () => {
27
28
  var e;
28
- return Object.keys(((e = d.requestBody) == null ? void 0 : e.content) ?? {});
29
+ return Object.keys(((e = c.requestBody) == null ? void 0 : e.content) ?? {});
29
30
  }
30
- ), t = k("application/json");
31
- (q = d.requestBody) != null && q.content && v.value.length > 0 && (t.value = v.value[0]);
32
- const p = B(() => {
33
- var r, u, h;
34
- const e = (h = (u = (r = d.requestBody) == null ? void 0 : r.content) == null ? void 0 : u[t.value]) == null ? void 0 : h.schema;
31
+ ), t = C("application/json");
32
+ (q = c.requestBody) != null && q.content && v.value.length > 0 && (t.value = v.value[0]);
33
+ const m = f(() => {
34
+ var r, u, B;
35
+ const e = (B = (u = (r = c.requestBody) == null ? void 0 : r.content) == null ? void 0 : u[t.value]) == null ? void 0 : B.schema;
35
36
  if ((e == null ? void 0 : e.type) !== "object" || !e.properties)
36
37
  return null;
37
38
  const s = Object.entries(e.properties);
38
39
  if (s.length < 13)
39
40
  return null;
40
- const { properties: m, ...o } = e;
41
+ const { properties: p, ...o } = e;
41
42
  return {
42
43
  visibleProperties: {
43
44
  ...o,
@@ -48,48 +49,52 @@ const P = { key: 0 }, S = { class: "request-body-header" }, V = { class: "reques
48
49
  properties: Object.fromEntries(s.slice(12))
49
50
  }
50
51
  };
51
- });
52
+ }), h = (e) => {
53
+ V("update:modelValue", e);
54
+ };
52
55
  return (e, s) => {
53
- var m, o, r;
54
- return e.requestBody ? (n(), a("div", P, [
55
- f("div", S, [
56
- f("span", V, [
57
- j(e.$slots, "title", {}, void 0, !0),
58
- e.requestBody.required ? (n(), a("div", _, " required ")) : i("", !0)
56
+ var p, o, r;
57
+ return e.requestBody ? (l(), a("div", _, [
58
+ b("div", O, [
59
+ b("span", R, [
60
+ E(e.$slots, "title", {}, void 0, !0),
61
+ e.requestBody.required ? (l(), a("div", g, " required ")) : i("", !0)
59
62
  ]),
60
- l(E, {
63
+ n(S, {
61
64
  defaultValue: t.value,
62
65
  requestBody: e.requestBody,
63
66
  onSelectContentType: s[0] || (s[0] = ({ contentType: u }) => t.value = u)
64
67
  }, null, 8, ["defaultValue", "requestBody"]),
65
- e.requestBody.description ? (n(), a("div", O, [
66
- l(c(C), {
68
+ e.requestBody.description ? (l(), a("div", N, [
69
+ n(d(P), {
67
70
  value: e.requestBody.description
68
71
  }, null, 8, ["value"])
69
72
  ])) : i("", !0)
70
73
  ]),
71
- p.value ? (n(), a("div", R, [
72
- l(c(y), {
74
+ m.value ? (l(), a("div", T, [
75
+ n(d(y), {
73
76
  compact: "",
74
77
  name: "Request Body",
75
78
  noncollapsible: "",
76
79
  schemas: e.schemas,
77
- value: p.value.visibleProperties
80
+ value: m.value.visibleProperties,
81
+ "onUpdate:modelValue": h
78
82
  }, null, 8, ["schemas", "value"]),
79
- l(c(y), {
83
+ n(d(y), {
80
84
  additionalProperties: "",
81
85
  compact: "",
82
86
  name: "Request Body",
83
87
  schemas: e.schemas,
84
- value: p.value.collapsedProperties
88
+ value: m.value.collapsedProperties
85
89
  }, null, 8, ["schemas", "value"])
86
- ])) : (m = e.requestBody.content) != null && m[t.value] ? (n(), a("div", N, [
87
- l(c(y), {
90
+ ])) : (p = e.requestBody.content) != null && p[t.value] ? (l(), a("div", M, [
91
+ n(d(y), {
88
92
  compact: "",
89
93
  name: "Request Body",
90
94
  noncollapsible: "",
91
95
  schemas: e.schemas,
92
- value: (r = (o = e.requestBody.content) == null ? void 0 : o[t.value]) == null ? void 0 : r.schema
96
+ value: (r = (o = e.requestBody.content) == null ? void 0 : o[t.value]) == null ? void 0 : r.schema,
97
+ "onUpdate:modelValue": h
93
98
  }, null, 8, ["schemas", "value"])
94
99
  ])) : i("", !0)
95
100
  ])) : i("", !0);
@@ -97,5 +102,5 @@ const P = { key: 0 }, S = { class: "request-body-header" }, V = { class: "reques
97
102
  }
98
103
  });
99
104
  export {
100
- w as default
105
+ z as default
101
106
  };
@@ -10,6 +10,10 @@ type __VLS_Props = {
10
10
  transformedOperation: TransformedOperation;
11
11
  schemas?: Record<string, OpenAPIV3_1.SchemaObject> | unknown;
12
12
  };
13
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ "update:modelValue": (value: string) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
18
  export default _default;
15
19
  //# sourceMappingURL=ClassicLayout.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AA6TA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAwBhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;AAyQF,wBAOG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAoUA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAwBhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,OAAO,CAAA;CAC7D,CAAC;;;;;;AAqTF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ClassicLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-963f75f8"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f5174751"]]);
5
5
  export {
6
- s as default
6
+ f as default
7
7
  };
@@ -1,19 +1,19 @@
1
- import { defineComponent as C, computed as b, createBlock as a, openBlock as r, unref as e, createSlots as g, withCtx as n, createElementVNode as t, createVNode as i, createCommentVNode as c, withModifiers as k, toDisplayString as m, normalizeClass as O, createTextVNode as S } from "vue";
2
- import { ScalarIcon as _, ScalarIconButton as B, ScalarMarkdown as w } from "@scalar/components";
3
- import { useClipboard as R } from "@scalar/use-hooks/useClipboard";
4
- import T from "../../../components/OperationPath.vue.js";
5
- import { useConfig as I } from "../../../hooks/useConfig.js";
6
- import { isOperationDeprecated as N, getOperationStability as h, getOperationStabilityColor as P } from "../../../libs/openapi.js";
7
- import V from "../components/OperationParameters.vue.js";
8
- import $ from "../components/OperationResponses.vue.js";
9
- import q from "../../../components/Section/SectionAccordion.vue.js";
10
- import A from "../../ExampleResponses/ExampleResponses.vue.js";
11
- import E from "../../ExampleRequest/ExampleRequest.vue.js";
12
- import z from "../../TestRequestButton/TestRequestButton.vue.js";
13
- import D from "../../../components/HttpMethod/HttpMethod.vue.js";
14
- import L from "../../../components/Anchor/Anchor.vue.js";
15
- import M from "../../../components/Badge/Badge.vue.js";
16
- const U = { class: "operation-title" }, j = { class: "operation-details" }, F = { class: "endpoint-label" }, G = { class: "endpoint-label-path" }, H = { class: "endpoint-label-name" }, J = { class: "endpoint-content" }, K = { class: "operation-details-card" }, Q = { class: "operation-details-card-item" }, W = { class: "operation-details-card-item" }, ho = /* @__PURE__ */ C({
1
+ import { defineComponent as k, computed as O, createBlock as n, openBlock as r, unref as o, createSlots as S, withCtx as i, createElementVNode as t, createVNode as a, createCommentVNode as c, withModifiers as V, toDisplayString as h, normalizeClass as _, createTextVNode as B } from "vue";
2
+ import { ScalarIcon as w, ScalarIconButton as R, ScalarMarkdown as T } from "@scalar/components";
3
+ import { useClipboard as I } from "@scalar/use-hooks/useClipboard";
4
+ import N from "../../../components/OperationPath.vue.js";
5
+ import { useConfig as P } from "../../../hooks/useConfig.js";
6
+ import { isOperationDeprecated as $, getOperationStability as f, getOperationStabilityColor as q } from "../../../libs/openapi.js";
7
+ import z from "../components/OperationParameters.vue.js";
8
+ import A from "../components/OperationResponses.vue.js";
9
+ import D from "../../../components/Section/SectionAccordion.vue.js";
10
+ import E from "../../ExampleResponses/ExampleResponses.vue.js";
11
+ import U from "../../ExampleRequest/ExampleRequest.vue.js";
12
+ import L from "../../TestRequestButton/TestRequestButton.vue.js";
13
+ import M from "../../../components/HttpMethod/HttpMethod.vue.js";
14
+ import j from "../../../components/Anchor/Anchor.vue.js";
15
+ import F from "../../../components/Badge/Badge.vue.js";
16
+ const G = { class: "operation-title" }, H = { class: "operation-details" }, J = { class: "endpoint-label" }, K = { class: "endpoint-label-path" }, Q = { class: "endpoint-label-name" }, W = { class: "endpoint-content" }, X = { class: "operation-details-card" }, Y = { class: "operation-details-card-item" }, Z = { class: "operation-details-card-item" }, ue = /* @__PURE__ */ k({
17
17
  __name: "ClassicLayout",
18
18
  props: {
19
19
  id: {},
@@ -23,42 +23,45 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
23
23
  transformedOperation: {},
24
24
  schemas: {}
25
25
  },
26
- setup(s) {
27
- const { copyToClipboard: f } = R(), u = I(), v = b(() => s.operation.summary || s.operation.path);
28
- return (o, p) => {
29
- var l;
30
- return r(), a(e(q), {
31
- id: o.id,
26
+ emits: ["update:modelValue"],
27
+ setup(s, { emit: u }) {
28
+ const { copyToClipboard: v } = I(), y = P(), C = O(() => s.operation.summary || s.operation.path), b = u, p = (e) => {
29
+ b("update:modelValue", e);
30
+ };
31
+ return (e, l) => {
32
+ var d;
33
+ return r(), n(o(D), {
34
+ id: e.id,
32
35
  class: "reference-endpoint",
33
36
  transparent: ""
34
- }, g({
35
- title: n(() => [
36
- t("div", U, [
37
- t("div", j, [
38
- i(e(D), {
37
+ }, S({
38
+ title: i(() => [
39
+ t("div", G, [
40
+ t("div", H, [
41
+ a(o(M), {
39
42
  class: "endpoint-type",
40
- method: o.operation.method,
43
+ method: e.operation.method,
41
44
  short: ""
42
45
  }, null, 8, ["method"]),
43
- i(e(L), {
44
- id: o.id ?? "",
46
+ a(o(j), {
47
+ id: e.id ?? "",
45
48
  class: "endpoint-anchor"
46
49
  }, {
47
- default: n(() => [
48
- t("h3", F, [
49
- t("div", G, [
50
- i(T, {
51
- deprecated: e(N)(o.operation),
52
- path: o.operation.path
50
+ default: i(() => [
51
+ t("h3", J, [
52
+ t("div", K, [
53
+ a(N, {
54
+ deprecated: o($)(e.operation),
55
+ path: e.operation.path
53
56
  }, null, 8, ["deprecated", "path"])
54
57
  ]),
55
- t("div", H, m(v.value), 1),
56
- e(h)(o.operation) ? (r(), a(e(M), {
58
+ t("div", Q, h(C.value), 1),
59
+ o(f)(e.operation) ? (r(), n(o(F), {
57
60
  key: 0,
58
- class: O(e(P)(o.operation))
61
+ class: _(o(q)(e.operation))
59
62
  }, {
60
- default: n(() => [
61
- S(m(e(h)(o.operation)), 1)
63
+ default: i(() => [
64
+ B(h(o(f)(e.operation)), 1)
62
65
  ]),
63
66
  _: 1
64
67
  }, 8, ["class"])) : c("", !0)
@@ -69,67 +72,69 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
69
72
  ])
70
73
  ])
71
74
  ]),
72
- actions: n(({ active: y }) => {
73
- var d;
75
+ actions: i(({ active: g }) => {
76
+ var m;
74
77
  return [
75
- y ? (r(), a(e(z), {
78
+ g ? (r(), n(o(L), {
76
79
  key: 0,
77
- operation: o.operation
78
- }, null, 8, ["operation"])) : (d = e(u)) != null && d.hideTestRequestButton ? c("", !0) : (r(), a(e(_), {
80
+ operation: e.operation
81
+ }, null, 8, ["operation"])) : (m = o(y)) != null && m.hideTestRequestButton ? c("", !0) : (r(), n(o(w), {
79
82
  key: 1,
80
- class: "endpoint-try-hint",
83
+ class: "endpoint-try-hint size-6",
81
84
  icon: "Play",
82
85
  thickness: "1.75px"
83
86
  })),
84
- i(e(B), {
85
- class: "endpoint-copy",
87
+ a(o(R), {
88
+ class: "endpoint-copy p-0.5",
86
89
  icon: "Clipboard",
87
90
  label: "Copy endpoint URL",
88
91
  size: "xs",
89
92
  variant: "ghost",
90
- onClick: p[0] || (p[0] = k((X) => e(f)(o.operation.path), ["stop"]))
93
+ onClick: l[0] || (l[0] = V((x) => o(v)(e.operation.path), ["stop"]))
91
94
  })
92
95
  ];
93
96
  }),
94
- default: n(() => [
95
- t("div", J, [
96
- t("div", K, [
97
- t("div", Q, [
98
- i(V, {
99
- operation: o.operation,
100
- schemas: o.schemas
97
+ default: i(() => [
98
+ t("div", W, [
99
+ t("div", X, [
100
+ t("div", Y, [
101
+ a(z, {
102
+ operation: e.operation,
103
+ schemas: e.schemas,
104
+ "onUpdate:modelValue": p
101
105
  }, null, 8, ["operation", "schemas"])
102
106
  ]),
103
- t("div", W, [
104
- i($, {
107
+ t("div", Z, [
108
+ a(A, {
105
109
  collapsableItems: !1,
106
- operation: o.transformedOperation,
107
- schemas: o.schemas
110
+ operation: e.transformedOperation,
111
+ schemas: e.schemas
108
112
  }, null, 8, ["operation", "schemas"])
109
113
  ])
110
114
  ]),
111
- i(e(A), {
112
- responses: o.operation.responses
115
+ a(o(E), {
116
+ responses: e.operation.responses
113
117
  }, null, 8, ["responses"]),
114
- i(e(E), {
115
- collection: o.collection,
116
- operation: o.operation,
117
- server: o.server,
118
- transformedOperation: o.transformedOperation
118
+ a(o(U), {
119
+ collection: e.collection,
120
+ operation: e.operation,
121
+ server: e.server,
122
+ transformedOperation: e.transformedOperation,
123
+ "onUpdate:modelValue": p
119
124
  }, null, 8, ["collection", "operation", "server", "transformedOperation"])
120
125
  ])
121
126
  ]),
122
127
  _: 2
123
128
  }, [
124
- (l = o.operation) != null && l.description ? {
129
+ (d = e.operation) != null && d.description ? {
125
130
  name: "description",
126
- fn: n(() => [
127
- i(e(w), {
128
- value: o.operation.description,
131
+ fn: i(() => [
132
+ a(o(T), {
133
+ value: e.operation.description,
129
134
  withImages: "",
130
135
  withAnchors: "",
131
136
  transformType: "heading",
132
- anchorPrefix: o.id
137
+ anchorPrefix: e.id
133
138
  }, null, 8, ["value", "anchorPrefix"])
134
139
  ]),
135
140
  key: "0"
@@ -139,5 +144,5 @@ const U = { class: "operation-title" }, j = { class: "operation-details" }, F =
139
144
  }
140
145
  });
141
146
  export {
142
- ho as default
147
+ ue as default
143
148
  };
@@ -10,6 +10,10 @@ type __VLS_Props = {
10
10
  transformedOperation: TransformedOperation;
11
11
  schemas?: Schemas;
12
12
  };
13
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ "update:modelValue": (value: string) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
18
  export default _default;
15
19
  //# sourceMappingURL=ModernLayout.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AA2JA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAgBhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAejE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AA2PF,wBAOG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAuKA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AAExC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAgBhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAejE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,0CAA0C;IAC1C,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AAoSF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.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-e6c411b5"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8ef8ef87"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };