@scalar/api-reference 1.25.71 → 1.25.74

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 (103) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/dist/browser/standalone.js +12267 -12210
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  5. package/dist/components/Anchor/Anchor.vue.js +2 -2
  6. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReference.vue.js +56 -57
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +3 -3
  10. package/dist/components/ApiReferenceLayout.vue2.js +160 -143
  11. package/dist/components/Content/Authentication/Authentication.vue.d.ts +1 -1
  12. package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
  14. package/dist/components/Content/Authentication/Authentication.vue2.js +20 -20
  15. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  16. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  17. package/dist/components/Content/Content.vue.d.ts +1 -1
  18. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Content.vue.js +2 -2
  20. package/dist/components/Content/Content.vue2.js +59 -53
  21. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  22. package/dist/components/Content/Introduction/Introduction.vue2.js +32 -32
  23. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Models/Models.vue.js +2 -2
  25. package/dist/components/Content/Models/Models.vue2.js +42 -36
  26. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  28. package/dist/components/Content/Schema/Schema.vue2.js +10 -11
  29. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  31. package/dist/components/Content/Schema/SchemaProperty.vue2.js +12 -12
  32. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  33. package/dist/components/Content/Tag/Endpoints.vue2.js +19 -19
  34. package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
  36. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  37. package/dist/components/Content/Tag/TagList.vue.js +34 -28
  38. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  39. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  40. package/dist/components/Layouts/ModernLayout.vue2.js +30 -29
  41. package/dist/components/Section/CompactSection.vue.js +2 -2
  42. package/dist/components/Section/CompactSection.vue2.js +9 -8
  43. package/dist/components/Section/SectionColumn.vue.d.ts.map +1 -1
  44. package/dist/components/Section/SectionColumn.vue.js +4 -4
  45. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  46. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  47. package/dist/components/Section/SectionHeader.vue.d.ts +2 -2
  48. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  49. package/dist/components/Section/SectionHeader.vue.js +1 -1
  50. package/dist/components/Section/SectionHeader.vue2.js +16 -14
  51. package/dist/components/ShowMoreButton.vue.js +2 -2
  52. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  53. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  54. package/dist/components/Sidebar/SidebarElement.vue2.js +3 -2
  55. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +22 -0
  56. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  57. package/dist/embeds/OpenApiDocument/types.d.ts +1 -1
  58. package/dist/embeds/OpenApiDocument/types.d.ts.map +1 -1
  59. package/dist/features/ApiClientModal/useApiClient.d.ts +6 -4
  60. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  61. package/dist/features/BaseUrl/ServerUrlSelect.vue.js +3 -3
  62. package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +5 -5
  63. package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +2 -2
  64. package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +3 -3
  65. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  66. package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
  67. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +124 -120
  68. package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
  69. package/dist/features/Operation/components/ParameterHeaders.vue2.js +7 -7
  70. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  71. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  72. package/dist/features/Operation/components/ParameterListItem.vue2.js +3 -4
  73. package/dist/features/Operation/components/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
  74. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  75. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  76. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  77. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  78. package/dist/features/Operation/layouts/ModernLayout.vue2.js +99 -89
  79. package/dist/helpers/getExampleCode.d.ts +2 -2
  80. package/dist/helpers/getExampleCode.d.ts.map +1 -1
  81. package/dist/helpers/getExampleCode.js +11 -11
  82. package/dist/helpers/parse.d.ts +2 -2
  83. package/dist/helpers/parse.d.ts.map +1 -1
  84. package/dist/helpers/parse.js +3 -3
  85. package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
  86. package/dist/hooks/useDeprecationWarnings.js +12 -15
  87. package/dist/hooks/useReactiveSpec.d.ts +24 -2
  88. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  89. package/dist/hooks/useReactiveSpec.js +4 -4
  90. package/dist/index.js +1 -1
  91. package/dist/legacy/components/SecurityScheme.vue.d.ts +1 -1
  92. package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -1
  93. package/dist/legacy/components/SecurityScheme.vue.js +2 -2
  94. package/dist/legacy/components/SecurityScheme.vue2.js +13 -13
  95. package/dist/legacy/components/SecuritySchemeSelector.vue.js +2 -2
  96. package/dist/legacy/components/SecuritySchemeSelector.vue2.js +3 -3
  97. package/dist/legacy/helpers/getUrlFromServerState.d.ts +2 -1
  98. package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
  99. package/dist/legacy/helpers/getUrlFromServerState.js +14 -14
  100. package/dist/legacy/stores/useOpenApiStore.d.ts +22 -0
  101. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  102. package/dist/style.css +1 -1
  103. package/package.json +11 -11
@@ -1,52 +1,52 @@
1
- import { defineComponent as Y, useId as D, computed as d, ref as z, watch as G, inject as Q, onServerPrefetch as W, useSSRContext as X, unref as r, openBlock as p, createBlock as g, withCtx as a, createVNode as l, createElementBlock as S, Fragment as O, createTextVNode as f, toDisplayString as K, createElementVNode as x, renderSlot as y, createCommentVNode as C } from "vue";
2
- import { ScalarCodeBlock as Z } from "@scalar/components";
3
- import { createHash as ee, ssrState as te } from "@scalar/oas-utils/helpers";
4
- import { getRequestFromOperation as oe } from "@scalar/oas-utils/spec-getters";
5
- import { asyncComputed as re } from "@vueuse/core";
6
- import R from "../../components/ScreenReader.vue.js";
7
- import ae from "./ExamplePicker.vue.js";
8
- import le from "./TextSelect.vue.js";
1
+ import { defineComponent as G, useId as Q, computed as f, ref as W, watch as X, inject as Z, onServerPrefetch as ee, useSSRContext as te, unref as r, openBlock as p, createBlock as K, withCtx as a, createVNode as s, createElementBlock as x, Fragment as N, createTextVNode as y, toDisplayString as C, createElementVNode as k, renderSlot as v, createCommentVNode as E } from "vue";
2
+ import { ScalarCodeBlock as oe } from "@scalar/components";
3
+ import { createHash as re, ssrState as ae } from "@scalar/oas-utils/helpers";
4
+ import { getRequestFromOperation as se } from "@scalar/oas-utils/spec-getters";
5
+ import { asyncComputed as le } from "@vueuse/core";
6
+ import T from "../../components/ScreenReader.vue.js";
7
+ import ne from "./ExamplePicker.vue.js";
8
+ import ie from "./TextSelect.vue.js";
9
9
  /* empty css */
10
- import { GLOBAL_SECURITY_SYMBOL as se } from "../../helpers/provideSymbols.js";
11
- import B from "../../components/Card/Card.vue.js";
12
- import ne from "../../components/Card/CardHeader.vue.js";
13
- import N from "../../components/HttpMethod/HttpMethod.vue.js";
14
- import T from "../../components/Card/CardContent.vue.js";
15
- import { getSecretCredentialsFromAuthentication as ie, getRequestFromAuthentication as ue } from "../../legacy/helpers/getRequestFromAuthentication.js";
16
- import me from "../../components/Card/CardFooter.vue.js";
17
- import { getExampleCode as pe } from "../../helpers/getExampleCode.js";
18
- import { useHttpClientStore as ce } from "../../stores/useHttpClientStore.js";
19
- import { useServerStore as de } from "../../legacy/stores/useServerStore.js";
20
- import { useExampleStore as fe } from "../../legacy/stores/useExampleStore.js";
21
- import { useAuthenticationStore as ye } from "../../legacy/stores/useAuthenticationStore.js";
22
- import { getHarRequest as ve } from "../../helpers/getHarRequest.js";
23
- import { getUrlFromServerState as he } from "../../legacy/helpers/getUrlFromServerState.js";
24
- const ge = ["id"], Se = ["id"], Ke = {
10
+ import { GLOBAL_SECURITY_SYMBOL as ue } from "../../helpers/provideSymbols.js";
11
+ import j from "../../components/Card/Card.vue.js";
12
+ import me from "../../components/Card/CardHeader.vue.js";
13
+ import F from "../../components/HttpMethod/HttpMethod.vue.js";
14
+ import U from "../../components/Card/CardContent.vue.js";
15
+ import { getSecretCredentialsFromAuthentication as pe, getRequestFromAuthentication as ce } from "../../legacy/helpers/getRequestFromAuthentication.js";
16
+ import de from "../../components/Card/CardFooter.vue.js";
17
+ import { getExampleCode as fe } from "../../helpers/getExampleCode.js";
18
+ import { useHttpClientStore as ye } from "../../stores/useHttpClientStore.js";
19
+ import { useServerStore as ve } from "../../legacy/stores/useServerStore.js";
20
+ import { useExampleStore as he } from "../../legacy/stores/useExampleStore.js";
21
+ import { useAuthenticationStore as ge } from "../../legacy/stores/useAuthenticationStore.js";
22
+ import { getUrlFromServerState as Se } from "../../legacy/helpers/getUrlFromServerState.js";
23
+ import { getHarRequest as Ke } from "../../helpers/getHarRequest.js";
24
+ const xe = ["id"], Ce = ["id"], ke = {
25
25
  key: 0,
26
26
  class: "request-card-footer-addon"
27
- }, xe = { class: "request-header" }, Ye = /* @__PURE__ */ Y({
27
+ }, Ee = { class: "request-header" }, Ge = /* @__PURE__ */ G({
28
28
  __name: "ExampleRequest",
29
29
  props: {
30
30
  operation: {},
31
31
  fallback: { type: Boolean }
32
32
  },
33
- setup(j) {
34
- const i = j, k = `components-Content-Operation-Example-Request${ee(
35
- i.operation.path + i.operation.httpVerb + i.operation.operationId
36
- )}`, { selectedExampleKey: E, operationId: F } = fe(), {
37
- httpClient: u,
38
- setHttpClient: w,
39
- availableTargets: b,
40
- httpTargetTitle: I,
41
- httpClientTitle: U
42
- } = ce(), { server: A } = de(), { authentication: q } = ye(), v = D(), m = d(() => {
33
+ setup(w) {
34
+ const l = w, b = `components-Content-Operation-Example-Request${re(
35
+ l.operation.path + l.operation.httpVerb + l.operation.operationId
36
+ )}`, { selectedExampleKey: q, operationId: I } = he(), {
37
+ httpClient: i,
38
+ setHttpClient: A,
39
+ availableTargets: _,
40
+ httpTargetTitle: J,
41
+ httpClientTitle: L
42
+ } = ye(), { server: P } = ve(), { authentication: V } = ge(), h = Q(), m = f(() => {
43
43
  var t;
44
44
  const e = ["x-custom-examples", "x-codeSamples", "x-code-samples"];
45
45
  for (const o of e)
46
- if ((t = i.operation.information) != null && t[o])
47
- return [...i.operation.information[o]];
46
+ if ((t = l.operation.information) != null && t[o])
47
+ return [...l.operation.information[o]];
48
48
  return [];
49
- }), s = z(
49
+ }), n = W(
50
50
  // Default to first custom example
51
51
  m.value.length ? {
52
52
  targetKey: "customExamples",
@@ -54,71 +54,75 @@ const ge = ["id"], Se = ["id"], Ke = {
54
54
  } : (
55
55
  // Otherwise use the globally selected HTTP client
56
56
  {
57
- targetKey: u.targetKey,
58
- clientKey: u.clientKey
57
+ targetKey: i.targetKey,
58
+ clientKey: i.clientKey
59
59
  }
60
60
  )
61
61
  );
62
- G(u, () => {
63
- s.value = {
64
- targetKey: u.targetKey,
65
- clientKey: u.clientKey
62
+ X(i, () => {
63
+ n.value = {
64
+ targetKey: i.targetKey,
65
+ clientKey: i.clientKey
66
66
  };
67
67
  });
68
- const _ = d(
68
+ const $ = f(
69
69
  () => {
70
- var e, t, o, n;
70
+ var e, t, o, u;
71
71
  return Object.keys(
72
- ((n = (o = (t = (e = i.operation.information) == null ? void 0 : e.requestBody) == null ? void 0 : t.content) == null ? void 0 : o["application/json"]) == null ? void 0 : n.examples) ?? {}
72
+ ((u = (o = (t = (e = l.operation.information) == null ? void 0 : e.requestBody) == null ? void 0 : t.content) == null ? void 0 : o["application/json"]) == null ? void 0 : u.examples) ?? {}
73
73
  ).length > 1;
74
74
  }
75
- ), h = Q(se);
76
- async function V() {
77
- var n, c;
78
- if (s.value.targetKey === "customExamples")
79
- return ((n = m.value[s.value.clientKey]) == null ? void 0 : n.source) ?? "";
80
- const e = ve(
75
+ ), g = Z(ue);
76
+ async function H() {
77
+ var c, d;
78
+ if (n.value.targetKey === "customExamples")
79
+ return ((c = m.value[n.value.clientKey]) == null ? void 0 : c.source) ?? "";
80
+ const e = f(() => {
81
+ var R, B;
82
+ const S = (B = (R = l.operation.information) == null ? void 0 : R.servers) == null ? void 0 : B[0], { modifiedUrl: z } = Se(P, S);
83
+ return z;
84
+ }), t = Ke(
81
85
  {
82
- url: he(A).modifiedUrl
86
+ url: e.value
83
87
  },
84
- oe(
85
- i.operation,
88
+ se(
89
+ l.operation,
86
90
  {
87
91
  replaceVariables: !0
88
92
  },
89
- E.value,
93
+ q.value,
90
94
  !0
91
95
  ),
92
- ue(
93
- q,
94
- ((c = i.operation.information) == null ? void 0 : c.security) ?? (h == null ? void 0 : h())
96
+ ce(
97
+ V,
98
+ ((d = l.operation.information) == null ? void 0 : d.security) ?? (g == null ? void 0 : g())
95
99
  )
96
- ), t = u.clientKey, o = u.targetKey;
97
- return await pe(e, o, t) ?? "";
100
+ ), o = i.clientKey, u = i.targetKey;
101
+ return await fe(t, u, o) ?? "";
98
102
  }
99
- const $ = re(async () => {
103
+ const O = le(async () => {
100
104
  try {
101
- return await V();
105
+ return await H();
102
106
  } catch (e) {
103
107
  return console.error("[generateSnippet]", e), "";
104
108
  }
105
- }, te[k] ?? "");
106
- W(async () => {
107
- const e = X();
108
- e.payload.data[k] = await V();
109
+ }, ae[b] ?? "");
110
+ ee(async () => {
111
+ const e = te();
112
+ e.payload.data[b] = await H();
109
113
  });
110
- const J = d(() => {
114
+ const M = f(() => {
111
115
  var t, o;
112
116
  const e = (
113
117
  // Specified language
114
- ((t = s.value) == null ? void 0 : t.targetKey) === "customExamples" ? ((o = m.value[s.value.clientKey]) == null ? void 0 : o.lang) ?? "plaintext" : (
118
+ ((t = n.value) == null ? void 0 : t.targetKey) === "customExamples" ? ((o = m.value[n.value.clientKey]) == null ? void 0 : o.lang) ?? "plaintext" : (
115
119
  // Or language for the globally selected HTTP client
116
- u.targetKey
120
+ i.targetKey
117
121
  )
118
122
  );
119
- return e === "shell" && $.value.includes("curl") ? "curl" : e === "Objective-C" ? "objc" : e;
120
- }), L = d(() => {
121
- const e = b.value.map((t) => ({
123
+ return e === "shell" && O.value.includes("curl") ? "curl" : e === "Objective-C" ? "objc" : e;
124
+ }), Y = f(() => {
125
+ const e = _.value.map((t) => ({
122
126
  value: t.key,
123
127
  label: t.title,
124
128
  options: t.clients.map((o) => ({
@@ -141,128 +145,128 @@ const ge = ["id"], Se = ["id"], Ke = {
141
145
  }))
142
146
  }), e;
143
147
  });
144
- function P(e) {
148
+ function D(e) {
145
149
  const t = JSON.parse(e);
146
- t.targetKey === "customExamples" ? s.value = t : w(t);
150
+ t.targetKey === "customExamples" ? n.value = t : A(t);
147
151
  }
148
- return (e, t) => r(b).length || m.value.length ? (p(), g(r(B), {
152
+ return (e, t) => r(_).length || m.value.length ? (p(), K(r(j), {
149
153
  key: 0,
150
154
  class: "dark-mode"
151
155
  }, {
152
156
  default: a(() => [
153
- l(r(ne), { muted: "" }, {
157
+ s(r(me), { muted: "" }, {
154
158
  actions: a(() => [
155
- l(le, {
159
+ s(ie, {
156
160
  class: "request-client-picker",
157
- controls: `${r(v)}-example`,
158
- modelValue: JSON.stringify(s.value),
159
- options: L.value,
160
- "onUpdate:modelValue": P
161
+ controls: `${r(h)}-example`,
162
+ modelValue: JSON.stringify(n.value),
163
+ options: Y.value,
164
+ "onUpdate:modelValue": D
161
165
  }, {
162
166
  default: a(() => [
163
- s.value.targetKey === "customExamples" ? (p(), S(O, { key: 0 }, [
164
- l(R, null, {
167
+ n.value.targetKey === "customExamples" ? (p(), x(N, { key: 0 }, [
168
+ s(T, null, {
165
169
  default: a(() => t[1] || (t[1] = [
166
- f("Selected Example:")
170
+ y("Selected Example:")
167
171
  ])),
168
172
  _: 1
169
173
  }),
170
- f(" " + K(m.value[s.value.clientKey].label ?? "Example"), 1)
171
- ], 64)) : (p(), S(O, { key: 1 }, [
172
- l(R, null, {
174
+ y(" " + C(m.value[n.value.clientKey].label ?? "Example"), 1)
175
+ ], 64)) : (p(), x(N, { key: 1 }, [
176
+ s(T, null, {
173
177
  default: a(() => t[2] || (t[2] = [
174
- f("Selected HTTP client:")
178
+ y("Selected HTTP client:")
175
179
  ])),
176
180
  _: 1
177
181
  }),
178
- f(" " + K(r(I)) + " " + K(r(U)), 1)
182
+ y(" " + C(r(J)) + " " + C(r(L)), 1)
179
183
  ], 64))
180
184
  ]),
181
185
  _: 1
182
186
  }, 8, ["controls", "modelValue", "options"])
183
187
  ]),
184
188
  default: a(() => [
185
- x("div", {
186
- id: `${r(v)}-header`,
189
+ k("div", {
190
+ id: `${r(h)}-header`,
187
191
  class: "request-header"
188
192
  }, [
189
- l(r(N), {
193
+ s(r(F), {
190
194
  as: "span",
191
195
  class: "request-method",
192
196
  method: e.operation.httpVerb
193
197
  }, null, 8, ["method"]),
194
- y(e.$slots, "header", {}, void 0, !0)
195
- ], 8, ge)
198
+ v(e.$slots, "header", {}, void 0, !0)
199
+ ], 8, xe)
196
200
  ]),
197
201
  _: 3
198
202
  }),
199
- l(r(T), {
203
+ s(r(U), {
200
204
  borderless: "",
201
205
  class: "request-editor-section custom-scroll",
202
206
  frameless: ""
203
207
  }, {
204
208
  default: a(() => [
205
- x("div", {
206
- id: `${r(v)}-example`,
209
+ k("div", {
210
+ id: `${r(h)}-example`,
207
211
  class: "code-snippet"
208
212
  }, [
209
- l(r(Z), {
213
+ s(r(oe), {
210
214
  class: "bg-b-2",
211
- content: r($),
212
- hideCredentials: r(ie)(r(q)),
213
- lang: J.value,
215
+ content: r(O),
216
+ hideCredentials: r(pe)(r(V)),
217
+ lang: M.value,
214
218
  lineNumbers: ""
215
219
  }, null, 8, ["content", "hideCredentials", "lang"])
216
- ], 8, Se)
220
+ ], 8, Ce)
217
221
  ]),
218
222
  _: 1
219
223
  }),
220
- _.value || e.$slots.footer ? (p(), g(r(me), {
224
+ $.value || e.$slots.footer ? (p(), K(r(de), {
221
225
  key: 0,
222
226
  class: "request-card-footer",
223
227
  contrast: ""
224
228
  }, {
225
229
  default: a(() => {
226
- var o, n, c, H;
230
+ var o, u, c, d;
227
231
  return [
228
- _.value ? (p(), S("div", Ke, [
229
- l(ae, {
232
+ $.value ? (p(), x("div", ke, [
233
+ s(ne, {
230
234
  class: "request-example-selector",
231
- examples: ((H = (c = (n = (o = e.operation.information) == null ? void 0 : o.requestBody) == null ? void 0 : n.content) == null ? void 0 : c["application/json"]) == null ? void 0 : H.examples) ?? [],
232
- "onUpdate:modelValue": t[0] || (t[0] = (M) => (E.value = M, F.value = e.operation.operationId))
235
+ examples: ((d = (c = (u = (o = e.operation.information) == null ? void 0 : o.requestBody) == null ? void 0 : u.content) == null ? void 0 : c["application/json"]) == null ? void 0 : d.examples) ?? [],
236
+ "onUpdate:modelValue": t[0] || (t[0] = (S) => (q.value = S, I.value = e.operation.operationId))
233
237
  }, null, 8, ["examples"])
234
- ])) : C("", !0),
235
- y(e.$slots, "footer", {}, void 0, !0)
238
+ ])) : E("", !0),
239
+ v(e.$slots, "footer", {}, void 0, !0)
236
240
  ];
237
241
  }),
238
242
  _: 3
239
- })) : C("", !0)
243
+ })) : E("", !0)
240
244
  ]),
241
245
  _: 3
242
- })) : e.fallback ? (p(), g(r(B), {
246
+ })) : e.fallback ? (p(), K(r(j), {
243
247
  key: 1,
244
248
  class: "dark-mode"
245
249
  }, {
246
250
  default: a(() => [
247
- l(r(T), { class: "request-card-simple" }, {
251
+ s(r(U), { class: "request-card-simple" }, {
248
252
  default: a(() => [
249
- x("div", xe, [
250
- l(r(N), {
253
+ k("div", Ee, [
254
+ s(r(F), {
251
255
  as: "span",
252
256
  class: "request-method",
253
257
  method: e.operation.httpVerb
254
258
  }, null, 8, ["method"]),
255
- y(e.$slots, "header", {}, void 0, !0)
259
+ v(e.$slots, "header", {}, void 0, !0)
256
260
  ]),
257
- y(e.$slots, "footer", {}, void 0, !0)
261
+ v(e.$slots, "footer", {}, void 0, !0)
258
262
  ]),
259
263
  _: 3
260
264
  })
261
265
  ]),
262
266
  _: 3
263
- })) : C("", !0);
267
+ })) : E("", !0);
264
268
  }
265
269
  });
266
270
  export {
267
- Ye as default
271
+ Ge as default
268
272
  };
@@ -1,7 +1,7 @@
1
- import r from "./ParameterHeaders.vue2.js";
1
+ import e from "./ParameterHeaders.vue2.js";
2
2
  /* empty css */
3
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ e(r, [["__scopeId", "data-v-1bed0576"]]);
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(e, [["__scopeId", "data-v-2f99eae6"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, openBlock as e, createBlock as m, unref as a, withCtx as c, createElementVNode as p, normalizeClass as o, createVNode as d, createElementBlock as l, Fragment as n, createTextVNode as u, renderList as _ } from "vue";
1
+ import { defineComponent as f, openBlock as e, createBlock as m, unref as a, withCtx as c, createElementVNode as p, normalizeClass as o, createVNode as d, createElementBlock as l, Fragment as i, createTextVNode as u, renderList as _ } from "vue";
2
2
  import v from "../../../components/Content/Schema/SchemaProperty.vue.js";
3
3
  import { Disclosure as k, DisclosureButton as B, DisclosurePanel as H } from "@headlessui/vue";
4
4
  import { ScalarIcon as S } from "@scalar/components";
@@ -29,11 +29,11 @@ const V = /* @__PURE__ */ f({
29
29
  d(a(S), {
30
30
  class: o(["headers-card-title-icon", { "headers-card-title-icon--open": r }]),
31
31
  icon: "Add",
32
- thickness: "3"
32
+ size: "sm"
33
33
  }, null, 8, ["class"]),
34
- r ? (e(), l(n, { key: 0 }, [
34
+ r ? (e(), l(i, { key: 0 }, [
35
35
  u(" Hide Headers ")
36
- ], 64)) : (e(), l(n, { key: 1 }, [
36
+ ], 64)) : (e(), l(i, { key: 1 }, [
37
37
  u(" Show Headers ")
38
38
  ], 64))
39
39
  ]),
@@ -41,10 +41,10 @@ const V = /* @__PURE__ */ f({
41
41
  }, 1024),
42
42
  d(a(H), null, {
43
43
  default: c(() => [
44
- (e(!0), l(n, null, _(t.headers, (s, i) => (e(), m(v, {
45
- key: i,
44
+ (e(!0), l(i, null, _(t.headers, (s, n) => (e(), m(v, {
45
+ key: n,
46
46
  description: s.description,
47
- name: `${i}`,
47
+ name: `${n}`,
48
48
  value: h(s) ? s.schema : void 0
49
49
  }, null, 8, ["description", "name", "value"]))), 128))
50
50
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAiOA,OAAO,KAAK,EAAe,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAQlE,KAAK,WAAW,GAAG;IACf,SAAS,EAAE,SAAS,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;;kBAFe,OAAO;sBACH,OAAO;;AA6O9B,wBAQG"}
1
+ {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAmOA,OAAO,KAAK,EAAe,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAQlE,KAAK,WAAW,GAAG;IACf,SAAS,EAAE,SAAS,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;;kBAFe,OAAO;sBACH,OAAO;;AA6O9B,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./ParameterListItem.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ a(t, [["__scopeId", "data-v-4f7aa604"]]);
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9508a2d2"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -5,7 +5,7 @@ import { ScalarIcon as T } from "@scalar/components";
5
5
  import _ from "./ContentTypeSelect.vue.js";
6
6
  import I from "./ParameterHeaders.vue.js";
7
7
  import N from "../../../components/Content/Schema/SchemaProperty.vue.js";
8
- const P = { class: "parameter-item" }, j = { class: "parameter-item-name" }, E = { class: "parameter-item-type" }, z = { class: "absolute right-0" }, J = /* @__PURE__ */ k({
8
+ const P = { class: "parameter-item" }, j = { class: "parameter-item-name" }, E = { class: "parameter-item-type" }, R = { class: "absolute right-0" }, J = /* @__PURE__ */ k({
9
9
  __name: "ParameterListItem",
10
10
  props: {
11
11
  parameter: {},
@@ -29,8 +29,7 @@ const P = { class: "parameter-item" }, j = { class: "parameter-item-name" }, E =
29
29
  r(n(T), {
30
30
  class: "parameter-item-icon",
31
31
  icon: p ? "ChevronDown" : "ChevronRight",
32
- size: "md",
33
- thickness: "1.75"
32
+ thickness: "1.5"
34
33
  }, null, 8, ["icon"]),
35
34
  r(V, null, {
36
35
  default: m(() => [
@@ -40,7 +39,7 @@ const P = { class: "parameter-item" }, j = { class: "parameter-item-name" }, E =
40
39
  }, 1024),
41
40
  u("span", j, c(e.parameter.name), 1),
42
41
  u("span", E, c(e.parameter.description), 1),
43
- u("div", z, [
42
+ u("div", R, [
44
43
  a.value && t.parameter.content ? (s(), i(_, {
45
44
  key: 0,
46
45
  class: "parameter-item-content-type",
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBodyPropertiesChild.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBodyPropertiesChild.vue"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,KAAK,WAAW,GAAG;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE,CAAC;;AAsF5D,wBAMG"}
1
+ {"version":3,"file":"RequestBodyPropertiesChild.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/RequestBodyPropertiesChild.vue"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAKhD,KAAK,WAAW,GAAG;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE,CAAC;;AAqF5D,wBAMG"}
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AA4RA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAShE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC;;AAsPF,wBAOG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ClassicLayout.vue"],"names":[],"mappings":"AAkSA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAShE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC;;AAuPF,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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d9c1078a"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5753de10"]]);
5
5
  export {
6
- c as default
6
+ m as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAOhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC;;AAoMF,wBAOG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAOhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC;;AAoNF,wBAOG"}
@@ -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 e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f5ec41fb"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-aec31ba9"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };