@scalar/api-reference 1.25.127 → 1.25.130

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 (128) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/dist/browser/standalone.js +13272 -13158
  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 +40 -64
  6. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +158 -159
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +69 -17
  13. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +5 -1
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  15. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  16. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +73 -94
  17. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +16 -0
  18. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -0
  19. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.js +36 -0
  20. package/dist/components/Content/Lazy/Loading.vue.js +15 -15
  21. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  23. package/dist/components/Content/Schema/Schema.vue2.js +4 -1
  24. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
  25. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  26. package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
  27. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  29. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +143 -124
  30. package/dist/components/Content/Tag/{Endpoints.vue.d.ts → OperationsList.vue.d.ts} +1 -3
  31. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -0
  32. package/dist/components/Content/Tag/OperationsList.vue.js +7 -0
  33. package/dist/components/Content/Tag/OperationsList.vue2.js +62 -0
  34. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +9 -0
  35. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -0
  36. package/dist/components/Content/Tag/OperationsListItem.vue.js +7 -0
  37. package/dist/components/Content/Tag/OperationsListItem.vue2.js +66 -0
  38. package/dist/components/Content/Tag/Tag.vue.d.ts +4 -64
  39. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Tag/Tag.vue.js +87 -5
  41. package/dist/components/Content/Tag/Tag.vue2.js +2 -63
  42. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/TagList.vue.js +11 -11
  44. package/dist/components/Content/Tag/TagSection.vue.d.ts +70 -0
  45. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -0
  46. package/dist/components/Content/Tag/TagSection.vue.js +7 -0
  47. package/dist/components/Content/Tag/TagSection.vue2.js +65 -0
  48. package/dist/components/Content/Tag/index.d.ts +1 -2
  49. package/dist/components/Content/Tag/index.d.ts.map +1 -1
  50. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  51. package/dist/components/GettingStarted.vue.js +1 -1
  52. package/dist/components/GettingStarted.vue2.js +13 -13
  53. package/dist/components/Layouts/ClassicLayout.vue.d.ts +3 -3
  54. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  55. package/dist/components/Layouts/Layouts.vue.d.ts +3 -3
  56. package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
  57. package/dist/components/Layouts/ModernLayout.vue.d.ts +3 -3
  58. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  59. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  60. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  61. package/dist/components/Section/CompactSection.vue.js +2 -2
  62. package/dist/components/Section/CompactSection.vue2.js +30 -29
  63. package/dist/esm.d.ts +5 -3
  64. package/dist/esm.d.ts.map +1 -1
  65. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
  66. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  67. package/dist/features/ApiClientModal/useApiClient.d.ts +386 -346
  68. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  69. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  70. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  71. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +82 -74
  72. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -1
  73. package/dist/features/ExampleResponses/ExampleResponse.vue.js +2 -2
  74. package/dist/features/ExampleResponses/ExampleResponse.vue2.js +11 -11
  75. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  76. package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
  77. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +90 -78
  78. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +1 -1
  79. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  80. package/dist/features/Operation/components/ContentTypeSelect.vue.js +1 -1
  81. package/dist/features/Operation/components/ContentTypeSelect.vue2.js +29 -25
  82. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  83. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  84. package/dist/features/Operation/components/ParameterListItem.vue2.js +40 -47
  85. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  86. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  87. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  88. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  89. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +54 -54
  90. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  91. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  92. package/dist/features/Operation/layouts/ModernLayout.vue2.js +65 -67
  93. package/dist/helpers/get-request.d.ts +2 -1
  94. package/dist/helpers/get-request.d.ts.map +1 -1
  95. package/dist/helpers/index.d.ts +0 -1
  96. package/dist/helpers/index.d.ts.map +1 -1
  97. package/dist/hooks/index.d.ts +0 -1
  98. package/dist/hooks/index.d.ts.map +1 -1
  99. package/dist/hooks/useConfig.d.ts +3 -3
  100. package/dist/hooks/useConfig.d.ts.map +1 -1
  101. package/dist/hooks/useConfig.js +5 -4
  102. package/dist/hooks/useReactiveSpec.d.ts +8 -8
  103. package/dist/hooks/useSidebar.d.ts.map +1 -1
  104. package/dist/hooks/useSidebar.js +126 -116
  105. package/dist/index.js +56 -62
  106. package/dist/libs/operation.d.ts +15 -0
  107. package/dist/libs/operation.d.ts.map +1 -0
  108. package/dist/libs/operation.js +16 -0
  109. package/dist/standalone/lib/html-api.d.ts +3 -3
  110. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  111. package/dist/stores/useHttpClientStore.d.ts +1 -1
  112. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  113. package/dist/style.css +1 -1
  114. package/dist/types.d.ts +20 -3
  115. package/dist/types.d.ts.map +1 -1
  116. package/package.json +13 -13
  117. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +0 -1
  118. package/dist/components/Content/Tag/Endpoints.vue.js +0 -7
  119. package/dist/components/Content/Tag/Endpoints.vue2.js +0 -161
  120. package/dist/helpers/operation.d.ts +0 -14
  121. package/dist/helpers/operation.d.ts.map +0 -1
  122. package/dist/helpers/operation.js +0 -18
  123. package/dist/hooks/useDeprecationWarnings.d.ts +0 -6
  124. package/dist/hooks/useDeprecationWarnings.d.ts.map +0 -1
  125. package/dist/hooks/useDeprecationWarnings.js +0 -20
  126. package/dist/standalone/lib/html-rendering.d.ts +0 -51
  127. package/dist/standalone/lib/html-rendering.d.ts.map +0 -1
  128. package/dist/standalone/lib/html-rendering.js +0 -54
@@ -1,33 +1,34 @@
1
- import { defineComponent as M, useId as N, ref as E, computed as d, openBlock as o, createBlock as r, unref as s, withCtx as c, createVNode as y, createElementBlock as v, createCommentVNode as x, createTextVNode as R, withDirectives as F, createElementVNode as S, vModelCheckbox as I, Fragment as _, renderList as O, toDisplayString as A } from "vue";
1
+ import { defineComponent as M, useId as N, ref as S, computed as d, openBlock as o, createBlock as t, unref as l, withCtx as u, createVNode as v, createElementBlock as x, createCommentVNode as f, createTextVNode as E, withDirectives as F, createElementVNode as R, vModelCheckbox as I, Fragment as T, renderList as O, toDisplayString as A } from "vue";
2
2
  import { ScalarIcon as D, ScalarCodeBlock as P, ScalarMarkdown as U } from "@scalar/components";
3
3
  import { normalizeMimeTypeObject as H } from "@scalar/oas-utils/helpers";
4
4
  import { useClipboard as J } from "@scalar/use-hooks/useClipboard";
5
- import T from "./ExampleResponse.vue.js";
6
- import K from "../../components/Card/Card.vue.js";
7
- import L from "../../components/Card/CardTabHeader.vue.js";
8
- import W from "../../components/Card/CardTab.vue.js";
9
- import q from "../../components/Card/CardContent.vue.js";
10
- import G from "../../components/Card/CardFooter.vue.js";
11
- import Q from "../ExampleRequest/ExamplePicker.vue.js";
12
- const X = {
5
+ import K from "../../components/ScreenReader.vue.js";
6
+ import V from "./ExampleResponse.vue.js";
7
+ import L from "../../components/Card/Card.vue.js";
8
+ import W from "../../components/Card/CardTabHeader.vue.js";
9
+ import q from "../../components/Card/CardTab.vue.js";
10
+ import G from "../../components/Card/CardContent.vue.js";
11
+ import Q from "../../components/Card/CardFooter.vue.js";
12
+ import X from "../ExampleRequest/ExamplePicker.vue.js";
13
+ const Y = {
13
14
  key: 1,
14
15
  class: "scalar-card-checkbox"
15
- }, Y = ["aria-controls"], Z = { class: "scalar-card-container custom-scroll" }, $ = {
16
+ }, Z = ["aria-controls"], $ = { class: "scalar-card-container custom-scroll" }, z = {
16
17
  key: 1,
17
18
  class: "response-description"
18
- }, pe = /* @__PURE__ */ M({
19
+ }, me = /* @__PURE__ */ M({
19
20
  __name: "ExampleResponses",
20
21
  props: {
21
22
  responses: {}
22
23
  },
23
- setup(C) {
24
- const n = N(), { copyToClipboard: V } = J(), p = E(), b = d(() => Object.keys(C.responses ?? {}).sort()), k = d(
25
- () => !!l.value.examples
26
- ), g = E(0), i = d(() => {
24
+ setup(g) {
25
+ const c = N(), { copyToClipboard: _ } = J(), p = S(), b = d(() => Object.keys(g.responses ?? {}).sort()), k = d(
26
+ () => !!s.value.examples
27
+ ), C = S(0), i = d(() => {
27
28
  var a;
28
- const e = b.value[g.value];
29
- return (a = C.responses) == null ? void 0 : a[e];
30
- }), l = d(() => {
29
+ const e = b.value[C.value];
30
+ return (a = g.responses) == null ? void 0 : a[e];
31
+ }), s = d(() => {
31
32
  var a;
32
33
  const e = H(
33
34
  (a = i.value) == null ? void 0 : a.content
@@ -39,127 +40,138 @@ const X = {
39
40
  );
40
41
  }), j = () => {
41
42
  if (k.value) {
42
- if (Array.isArray(l.value.examples))
43
- return l.value.examples[0];
43
+ if (Array.isArray(s.value.examples))
44
+ return s.value.examples[0];
44
45
  {
45
- const e = Object.keys(l.value.examples)[0];
46
- return l.value.examples[e];
46
+ const e = Object.keys(s.value.examples)[0];
47
+ return s.value.examples[e];
47
48
  }
48
- } else return l.value.example;
49
- }, f = d(() => ({
50
- ...l.value,
51
- example: k.value && p.value ? l.value.examples[p.value].value ?? l.value.examples[p.value] : j()
49
+ } else return s.value.example;
50
+ }, y = d(() => ({
51
+ ...s.value,
52
+ example: k.value && p.value ? s.value.examples[p.value].value ?? s.value.examples[p.value] : j()
52
53
  })), B = (e) => {
53
- g.value = e, p.value = void 0;
54
- }, h = E(!1);
55
- return (e, a) => b.value.length ? (o(), r(s(K), { key: 0 }, {
56
- default: c(() => {
54
+ C.value = e, p.value = void 0;
55
+ }, h = S(!1);
56
+ return (e, a) => b.value.length ? (o(), t(l(L), {
57
+ key: 0,
58
+ "aria-label": "Example Responses",
59
+ role: "region"
60
+ }, {
61
+ default: u(() => {
57
62
  var w;
58
63
  return [
59
- y(s(L), {
64
+ v(l(W), {
60
65
  muted: "",
61
66
  x: "as",
62
67
  onChange: B
63
68
  }, {
64
- actions: c(() => {
65
- var t, m;
69
+ actions: u(() => {
70
+ var r, m;
66
71
  return [
67
- (t = l.value) != null && t.example ? (o(), v("button", {
72
+ (r = s.value) != null && r.example ? (o(), x("button", {
68
73
  key: 0,
69
74
  class: "code-copy",
70
75
  type: "button",
71
76
  onClick: a[0] || (a[0] = () => {
72
- var u;
73
- return s(V)((u = l.value) == null ? void 0 : u.example);
77
+ var n;
78
+ return l(_)((n = s.value) == null ? void 0 : n.example);
74
79
  })
75
80
  }, [
76
- y(s(D), {
81
+ v(l(D), {
77
82
  icon: "Clipboard",
78
83
  width: "12px"
79
84
  })
80
- ])) : x("", !0),
81
- (m = l.value) != null && m.schema ? (o(), v("label", X, [
82
- a[3] || (a[3] = R(" Show Schema ")),
83
- F(S("input", {
84
- "onUpdate:modelValue": a[1] || (a[1] = (u) => h.value = u),
85
- "aria-controls": s(n),
85
+ ])) : f("", !0),
86
+ (m = s.value) != null && m.schema ? (o(), x("label", Y, [
87
+ a[4] || (a[4] = E(" Show Schema ")),
88
+ F(R("input", {
89
+ "onUpdate:modelValue": a[1] || (a[1] = (n) => h.value = n),
90
+ "aria-controls": l(c),
86
91
  class: "scalar-card-checkbox-input",
87
92
  type: "checkbox"
88
- }, null, 8, Y), [
93
+ }, null, 8, Z), [
89
94
  [I, h.value]
90
95
  ]),
91
- a[4] || (a[4] = S("span", { class: "scalar-card-checkbox-checkmark" }, null, -1))
92
- ])) : x("", !0)
96
+ a[5] || (a[5] = R("span", { class: "scalar-card-checkbox-checkmark" }, null, -1))
97
+ ])) : f("", !0)
93
98
  ];
94
99
  }),
95
- default: c(() => [
96
- (o(!0), v(_, null, O(b.value, (t) => (o(), r(s(W), {
97
- key: t,
98
- "aria-controls": s(n)
100
+ default: u(() => [
101
+ (o(!0), x(T, null, O(b.value, (r) => (o(), t(l(q), {
102
+ key: r,
103
+ "aria-controls": l(c)
99
104
  }, {
100
- default: c(() => [
101
- R(A(t), 1)
105
+ default: u(() => [
106
+ v(K, null, {
107
+ default: u(() => a[3] || (a[3] = [
108
+ E("Status:")
109
+ ])),
110
+ _: 1
111
+ }),
112
+ E(" " + A(r), 1)
102
113
  ]),
103
114
  _: 2
104
115
  }, 1032, ["aria-controls"]))), 128))
105
116
  ]),
106
117
  _: 1
107
118
  }),
108
- S("div", Z, [
109
- y(s(q), { muted: "" }, {
110
- default: c(() => {
111
- var t;
119
+ R("div", $, [
120
+ v(l(G), { muted: "" }, {
121
+ default: u(() => {
122
+ var r;
112
123
  return [
113
- (t = l.value) != null && t.schema ? (o(), v(_, { key: 0 }, [
114
- h.value && f.value ? (o(), r(s(P), {
124
+ (r = s.value) != null && r.schema ? (o(), x(T, { key: 0 }, [
125
+ h.value && y.value ? (o(), t(l(P), {
115
126
  key: 0,
116
- id: s(n),
117
- content: f.value,
127
+ id: l(c),
128
+ class: "-outline-offset-2",
129
+ content: y.value,
118
130
  lang: "json"
119
- }, null, 8, ["id", "content"])) : (o(), r(T, {
131
+ }, null, 8, ["id", "content"])) : (o(), t(V, {
120
132
  key: 1,
121
- id: s(n),
122
- response: f.value
133
+ id: l(c),
134
+ response: y.value
123
135
  }, null, 8, ["id", "response"]))
124
- ], 64)) : (o(), r(T, {
136
+ ], 64)) : (o(), t(V, {
125
137
  key: 1,
126
- id: s(n),
127
- response: f.value
138
+ id: l(c),
139
+ response: y.value
128
140
  }, null, 8, ["id", "response"]))
129
141
  ];
130
142
  }),
131
143
  _: 1
132
144
  })
133
145
  ]),
134
- (w = i.value) != null && w.description || k.value ? (o(), r(s(G), {
146
+ (w = i.value) != null && w.description || k.value ? (o(), t(l(Q), {
135
147
  key: 0,
136
148
  class: "response-card-footer",
137
149
  muted: ""
138
150
  }, {
139
- default: c(() => {
140
- var t, m;
151
+ default: u(() => {
152
+ var r, m;
141
153
  return [
142
- k.value ? (o(), r(s(Q), {
154
+ k.value ? (o(), t(l(X), {
143
155
  key: 0,
144
156
  class: "response-example-selector",
145
- examples: (t = l.value) == null ? void 0 : t.examples,
146
- "onUpdate:modelValue": a[2] || (a[2] = (u) => p.value = u)
147
- }, null, 8, ["examples"])) : (m = i.value) != null && m.description ? (o(), v("div", $, [
148
- y(s(U), {
157
+ examples: (r = s.value) == null ? void 0 : r.examples,
158
+ "onUpdate:modelValue": a[2] || (a[2] = (n) => p.value = n)
159
+ }, null, 8, ["examples"])) : (m = i.value) != null && m.description ? (o(), x("div", z, [
160
+ v(l(U), {
149
161
  class: "markdown",
150
162
  value: i.value.description
151
163
  }, null, 8, ["value"])
152
- ])) : x("", !0)
164
+ ])) : f("", !0)
153
165
  ];
154
166
  }),
155
167
  _: 1
156
- })) : x("", !0)
168
+ })) : f("", !0)
157
169
  ];
158
170
  }),
159
171
  _: 1
160
- })) : x("", !0);
172
+ })) : f("", !0);
161
173
  }
162
174
  });
163
175
  export {
164
- pe as default
176
+ me as default
165
177
  };
@@ -11,6 +11,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
11
11
  onSelectContentType?: ((payload: {
12
12
  contentType: ContentType;
13
13
  }) => any) | undefined;
14
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLLabelElement>;
15
15
  export default _default;
16
16
  //# sourceMappingURL=ContentTypeSelect.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ContentTypeSelect.vue"],"names":[],"mappings":"AA+HA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B,CAAC;;;qBAIiD,WAAW;;;;qBAAX,WAAW;;;AA2G9D,wBAQG"}
1
+ {"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ContentTypeSelect.vue"],"names":[],"mappings":"AAoIA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B,CAAC;;;qBAIiD,WAAW;;;;qBAAX,WAAW;;;AA4G9D,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./ContentTypeSelect.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-d8f8fe37"]]);
4
+ const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-3c443fc4"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,41 +1,45 @@
1
- import { defineComponent as v, computed as g, ref as C, openBlock as o, createElementBlock as l, normalizeClass as _, createElementVNode as f, toDisplayString as d, Fragment as B, renderList as h, createCommentVNode as T } from "vue";
2
- const q = ["value"], V = ["value"], k = /* @__PURE__ */ v({
1
+ import { defineComponent as f, computed as g, ref as C, openBlock as l, createElementBlock as s, normalizeClass as B, createElementVNode as T, toDisplayString as d, withModifiers as p, Fragment as q, renderList as _, createCommentVNode as V } from "vue";
2
+ const h = ["value"], w = ["value"], b = /* @__PURE__ */ f({
3
3
  __name: "ContentTypeSelect",
4
4
  props: {
5
5
  requestBody: {},
6
6
  defaultValue: {}
7
7
  },
8
8
  emits: ["selectContentType"],
9
- setup(p, { emit: i }) {
10
- const e = p, m = i, y = (t) => {
11
- const n = t.target.value;
12
- a.value = n, m("selectContentType", { contentType: n });
13
- }, s = g(() => {
14
- var t;
15
- return (t = e.requestBody) != null && t.content ? Object.keys(e.requestBody.content) : [];
16
- }), a = C(
17
- e.defaultValue || s.value[0]
18
- );
19
- return (t, c) => {
9
+ setup(i, { emit: y }) {
10
+ const e = i, m = y, v = (n) => {
11
+ const o = n.target.value;
12
+ u.value = o, m("selectContentType", { contentType: o });
13
+ }, r = g(() => {
20
14
  var n;
21
- return o(), l("div", {
22
- class: _(["content-type-select", { "content-type-no-select": s.value.length <= 1 }])
15
+ return (n = e.requestBody) != null && n.content ? Object.keys(e.requestBody.content) : [];
16
+ }), u = C(
17
+ e.defaultValue || r.value[0]
18
+ );
19
+ return (n, t) => {
20
+ var o;
21
+ return l(), s("label", {
22
+ class: B(["content-type-select", { "content-type-no-select": r.value.length <= 1 }])
23
23
  }, [
24
- f("span", null, d(a.value), 1),
25
- e != null && e.requestBody && s.value.length > 1 ? (o(), l("select", {
24
+ T("span", null, d(u.value), 1),
25
+ e != null && e.requestBody && r.value.length > 1 ? (l(), s("select", {
26
26
  key: 0,
27
- value: a.value,
28
- onChange: c[0] || (c[0] = (u) => y(u))
27
+ value: u.value,
28
+ onChange: t[1] || (t[1] = (c) => v(c)),
29
+ onKeydown: t[2] || (t[2] = p(() => {
30
+ }, ["stop"]))
29
31
  }, [
30
- (o(!0), l(B, null, h((n = e.requestBody) == null ? void 0 : n.content, (u, r) => (o(), l("option", {
31
- key: r,
32
- value: r
33
- }, d(r), 9, V))), 128))
34
- ], 40, q)) : T("", !0)
32
+ (l(!0), s(q, null, _((o = e.requestBody) == null ? void 0 : o.content, (c, a) => (l(), s("option", {
33
+ key: a,
34
+ value: a,
35
+ onKeydown: t[0] || (t[0] = p(() => {
36
+ }, ["stop"]))
37
+ }, d(a), 41, w))), 128))
38
+ ], 40, h)) : V("", !0)
35
39
  ], 2);
36
40
  };
37
41
  }
38
42
  });
39
43
  export {
40
- k as default
44
+ b as default
41
45
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AA2OA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAY/E,KAAK,WAAW,GAAG;IACf,SAAS,EACL,WAAW,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,GAChD,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;kBADe,OAAO;kBAFP,OAAO;sBACH,OAAO;;AAwQ9B,wBAOG"}
1
+ {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAwOA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAY/E,KAAK,WAAW,GAAG;IACf,SAAS,EACL,WAAW,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,GAChD,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC;;kBADe,OAAO;kBAFP,OAAO;sBACH,OAAO;;AA+P9B,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./ParameterListItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-4cb60599"]]);
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-18974874"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -1,14 +1,13 @@
1
- import { defineComponent as C, computed as c, ref as w, openBlock as o, createElementBlock as B, createVNode as n, unref as t, withCtx as p, createBlock as i, normalizeClass as S, createTextVNode as E, toDisplayString as y, createElementVNode as d, createCommentVNode as l } from "vue";
2
- import { Disclosure as b, DisclosureButton as V, DisclosurePanel as q } from "@headlessui/vue";
1
+ import { defineComponent as k, computed as i, ref as w, openBlock as o, createElementBlock as C, createVNode as m, unref as a, withCtx as u, createBlock as p, normalizeClass as B, createElementVNode as c, toDisplayString as S, createCommentVNode as n } from "vue";
2
+ import { Disclosure as b, DisclosureButton as E, DisclosurePanel as q } from "@headlessui/vue";
3
3
  import { ScalarIcon as D, ScalarMarkdown as P } from "@scalar/components";
4
- import T from "../../../components/ScreenReader.vue.js";
5
- import I from "./ContentTypeSelect.vue.js";
6
- import N from "./ParameterHeaders.vue.js";
7
- import j from "../../../components/Content/Schema/SchemaProperty.vue.js";
8
- const _ = {
4
+ import V from "./ContentTypeSelect.vue.js";
5
+ import I from "./ParameterHeaders.vue.js";
6
+ import T from "../../../components/Content/Schema/SchemaProperty.vue.js";
7
+ const j = {
9
8
  key: 0,
10
9
  class: "parameter-item"
11
- }, O = { class: "parameter-item-name" }, R = { class: "parameter-item-type" }, z = { class: "absolute right-0 top-2.5 opacity-0 group-hover/parameter-item-trigger:opacity-100" }, K = /* @__PURE__ */ C({
10
+ }, N = { class: "parameter-item-name" }, O = { class: "parameter-item-type" }, _ = { class: "absolute right-0 top-2.5 opacity-0 group-focus-within/parameter-item-trigger:opacity-100 group-hover/parameter-item-trigger:opacity-100" }, F = /* @__PURE__ */ k({
12
11
  __name: "ParameterListItem",
13
12
  props: {
14
13
  parameter: {},
@@ -16,69 +15,63 @@ const _ = {
16
15
  collapsableItems: { type: Boolean, default: !1 },
17
16
  withExamples: { type: Boolean, default: !0 }
18
17
  },
19
- setup(v) {
20
- const a = v, g = c(() => a.parameter.content ? Object.keys(a.parameter.content) : []), s = w(
21
- g.value[0]
18
+ setup(y) {
19
+ const t = y, v = i(() => t.parameter.content ? Object.keys(t.parameter.content) : []), l = w(
20
+ v.value[0]
22
21
  );
23
- a.parameter.content && "application/json" in a.parameter.content && (s.value = "application/json");
24
- const r = c(() => !!(a.collapsableItems && a.parameter.content)), k = c(() => a.parameter.readOnly !== !0);
25
- return (e, f) => k.value ? (o(), B("li", _, [
26
- n(t(b), null, {
27
- default: p(({ open: u }) => [
28
- r.value ? (o(), i(t(V), {
22
+ t.parameter.content && "application/json" in t.parameter.content && (l.value = "application/json");
23
+ const r = i(() => !!(t.collapsableItems && t.parameter.content)), g = i(() => t.parameter.readOnly !== !0);
24
+ return (e, d) => g.value ? (o(), C("li", j, [
25
+ m(a(b), null, {
26
+ default: u(({ open: h }) => [
27
+ r.value ? (o(), p(a(E), {
29
28
  key: 0,
30
- class: S(["parameter-item-trigger group/parameter-item-trigger flex", { "parameter-item-trigger-open": u }])
29
+ class: B(["parameter-item-trigger group/parameter-item-trigger flex", { "parameter-item-trigger-open": h }])
31
30
  }, {
32
- default: p(() => [
33
- n(t(D), {
31
+ default: u(() => [
32
+ m(a(D), {
34
33
  class: "parameter-item-icon",
35
- icon: u ? "ChevronDown" : "ChevronRight",
34
+ icon: h ? "ChevronDown" : "ChevronRight",
36
35
  thickness: "1.5"
37
36
  }, null, 8, ["icon"]),
38
- n(T, null, {
39
- default: p(() => [
40
- E(y(u ? "Collapse" : "Expand"), 1)
41
- ]),
42
- _: 2
43
- }, 1024),
44
- d("span", O, y(e.parameter.name), 1),
45
- d("span", R, [
46
- e.parameter.description ? (o(), i(t(P), {
37
+ c("span", N, S(e.parameter.name), 1),
38
+ c("span", O, [
39
+ e.parameter.description ? (o(), p(a(P), {
47
40
  key: 0,
48
41
  class: "markdown",
49
42
  value: e.parameter.description
50
- }, null, 8, ["value"])) : l("", !0)
43
+ }, null, 8, ["value"])) : n("", !0)
51
44
  ]),
52
- d("div", z, [
53
- r.value && a.parameter.content ? (o(), i(I, {
45
+ c("div", _, [
46
+ r.value && t.parameter.content ? (o(), p(V, {
54
47
  key: 0,
55
48
  class: "parameter-item-content-type",
56
- defaultValue: s.value,
57
- requestBody: a.parameter,
58
- onSelectContentType: f[0] || (f[0] = ({ contentType: m }) => s.value = m)
59
- }, null, 8, ["defaultValue", "requestBody"])) : l("", !0)
49
+ defaultValue: l.value,
50
+ requestBody: t.parameter,
51
+ onSelectContentType: d[0] || (d[0] = ({ contentType: s }) => l.value = s)
52
+ }, null, 8, ["defaultValue", "requestBody"])) : n("", !0)
60
53
  ])
61
54
  ]),
62
55
  _: 2
63
- }, 1032, ["class"])) : l("", !0),
64
- n(t(q), {
56
+ }, 1032, ["class"])) : n("", !0),
57
+ m(a(q), {
65
58
  class: "parameter-item-container parameter-item-container-markdown",
66
59
  static: !r.value
67
60
  }, {
68
- default: p(() => {
69
- var m, h;
61
+ default: u(() => {
62
+ var s, f;
70
63
  return [
71
- e.parameter.headers ? (o(), i(N, {
64
+ e.parameter.headers ? (o(), p(I, {
72
65
  key: 0,
73
66
  headers: e.parameter.headers
74
- }, null, 8, ["headers"])) : l("", !0),
75
- n(t(j), {
67
+ }, null, 8, ["headers"])) : n("", !0),
68
+ m(a(T), {
76
69
  compact: "",
77
70
  description: r.value ? "" : e.parameter.description,
78
71
  name: r.value ? "" : e.parameter.name,
79
72
  noncollapsible: e.showChildren,
80
73
  required: e.parameter.required,
81
- value: e.parameter.content ? (h = (m = e.parameter.content) == null ? void 0 : m[s.value]) == null ? void 0 : h.schema : e.parameter.schema,
74
+ value: e.parameter.content ? (f = (s = e.parameter.content) == null ? void 0 : s[l.value]) == null ? void 0 : f.schema : e.parameter.schema,
82
75
  withExamples: e.withExamples
83
76
  }, null, 8, ["description", "name", "noncollapsible", "required", "value", "withExamples"])
84
77
  ];
@@ -88,9 +81,9 @@ const _ = {
88
81
  ]),
89
82
  _: 1
90
83
  })
91
- ])) : l("", !0);
84
+ ])) : n("", !0);
92
85
  }
93
86
  });
94
87
  export {
95
- K as default
88
+ F as default
96
89
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBody.vue"],"names":[],"mappings":"AA+HA,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AAqBjD,iBAAS,cAAc;WAwFT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAWD,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":"AAkIA,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AASpE,KAAK,WAAW,GAAG;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AAqBjD,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAWD,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,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-33a8cfe4"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7637dd89"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAoTA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAuBhE,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;CAC3C,CAAC;;AAsQF,wBAOG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAwTA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,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;CAC3C,CAAC;;AA2QF,wBAOG"}
@@ -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-572e9cc0"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a183eb61"]]);
5
5
  export {
6
- s as default
6
+ m as default
7
7
  };