@scalar/api-reference 1.28.19 → 1.28.21

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 (26) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/browser/standalone.js +514 -514
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
  5. package/dist/components/DocumentSelector/DocumentSelector.vue.js +1 -1
  6. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  7. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  8. package/dist/components/Layouts/ModernLayout.vue2.js +18 -18
  9. package/dist/features/ApiClientModal/useApiClient.d.ts +5302 -5302
  10. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  11. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  12. package/dist/features/ExampleRequest/ExampleRequest.vue.js +3 -3
  13. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +145 -133
  14. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  15. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  16. package/dist/features/Operation/components/ParameterListItem.vue2.js +1 -1
  17. package/dist/helpers/get-request.d.ts.map +1 -1
  18. package/dist/hooks/useMultipleDocuments.d.ts +1 -1
  19. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/style.css +1 -1
  22. package/package.json +9 -9
  23. package/dist/components/Spinner/Spinner.vue.d.ts +0 -3
  24. package/dist/components/Spinner/Spinner.vue.d.ts.map +0 -1
  25. package/dist/components/Spinner/index.d.ts +0 -2
  26. package/dist/components/Spinner/index.d.ts.map +0 -1
@@ -1,25 +1,25 @@
1
- import { defineComponent as G, useId as L, computed as c, ref as T, watch as Q, unref as o, openBlock as d, createBlock as k, withCtx as a, createVNode as n, createElementBlock as b, Fragment as B, createTextVNode as f, toDisplayString as E, createElementVNode as h, renderSlot as K, createCommentVNode as C } from "vue";
2
- import { useWorkspace as X } from "@scalar/api-client/store";
3
- import { getSnippet as Y } from "@scalar/api-client/views/Components/CodeSnippet";
4
- import { filterSecurityRequirements as Z } from "@scalar/api-client/views/Request/RequestSection";
5
- import { ScalarCodeBlock as _ } from "@scalar/components";
6
- import S from "../../components/ScreenReader.vue.js";
7
- import { freezeElement as ee } from "../../helpers/freeze-element.js";
8
- import { useConfig as te } from "../../hooks/useConfig.js";
9
- import le from "./ExamplePicker.vue.js";
10
- import oe from "./TextSelect.vue.js";
1
+ import { defineComponent as X, useId as Y, computed as m, ref as B, watch as Z, unref as a, openBlock as d, createBlock as x, withCtx as n, createVNode as s, createElementBlock as K, Fragment as j, createTextVNode as p, toDisplayString as h, createElementVNode as k, renderSlot as y, createCommentVNode as E } from "vue";
2
+ import { useWorkspace as _ } from "@scalar/api-client/store";
3
+ import { getSnippet as ee } from "@scalar/api-client/views/Components/CodeSnippet";
4
+ import { filterSecurityRequirements as te } from "@scalar/api-client/views/Request/RequestSection";
5
+ import { ScalarCodeBlock as le } from "@scalar/components";
6
+ import b from "../../components/ScreenReader.vue.js";
7
+ import { freezeElement as ae } from "../../helpers/freeze-element.js";
8
+ import { useConfig as oe } from "../../hooks/useConfig.js";
9
+ import re from "./ExamplePicker.vue.js";
10
+ import ne from "./TextSelect.vue.js";
11
11
  /* empty css */
12
- import V from "../../components/Card/Card.vue.js";
13
- import re from "../../components/Card/CardHeader.vue.js";
14
- import j from "../../components/HttpMethod/HttpMethod.vue.js";
15
- import H from "../../components/Card/CardContent.vue.js";
16
- import ae from "../../components/Card/CardFooter.vue.js";
17
- import { useExampleStore as ne } from "../../legacy/stores/useExampleStore.js";
18
- import { useHttpClientStore as se } from "../../stores/useHttpClientStore.js";
19
- const ie = ["id"], ue = ["id"], me = {
12
+ import w from "../../components/Card/Card.vue.js";
13
+ import se from "../../components/Card/CardHeader.vue.js";
14
+ import H from "../../components/HttpMethod/HttpMethod.vue.js";
15
+ import R from "../../components/Card/CardContent.vue.js";
16
+ import ie from "../../components/Card/CardFooter.vue.js";
17
+ import { useExampleStore as ue } from "../../legacy/stores/useExampleStore.js";
18
+ import { useHttpClientStore as ce } from "../../stores/useHttpClientStore.js";
19
+ const me = ["id"], de = ["id"], pe = {
20
20
  key: 0,
21
21
  class: "request-card-footer-addon"
22
- }, ce = { class: "request-header" }, Te = /* @__PURE__ */ G({
22
+ }, fe = { class: "request-header" }, je = /* @__PURE__ */ X({
23
23
  __name: "ExampleRequest",
24
24
  props: {
25
25
  operation: {},
@@ -28,88 +28,88 @@ const ie = ["id"], ue = ["id"], me = {
28
28
  fallback: { type: Boolean },
29
29
  transformedOperation: {}
30
30
  },
31
- setup(i) {
32
- const { selectedExampleKey: R, operationId: w } = ne(), { requestExamples: J, securitySchemes: q } = X(), I = te(), {
33
- httpClient: s,
34
- setHttpClient: U,
35
- availableTargets: $,
36
- httpTargetTitle: z,
37
- httpClientTitle: F
38
- } = se(), y = L(), m = c(() => {
31
+ setup(o) {
32
+ const { selectedExampleKey: S, operationId: J } = ue(), { requestExamples: C, securitySchemes: q, requestExampleMutators: U } = _(), F = oe(), {
33
+ httpClient: i,
34
+ setHttpClient: I,
35
+ availableTargets: O,
36
+ httpTargetTitle: M,
37
+ httpClientTitle: z
38
+ } = ce(), f = Y(), u = m(() => {
39
39
  var t;
40
40
  const e = ["x-custom-examples", "x-codeSamples", "x-code-samples"];
41
41
  for (const l of e)
42
- if ((t = i.transformedOperation.information) != null && t[l])
43
- return [...i.transformedOperation.information[l]];
42
+ if ((t = o.transformedOperation.information) != null && t[l])
43
+ return [...o.transformedOperation.information[l]];
44
44
  return [];
45
- }), r = T(
45
+ }), r = B(
46
46
  // Default to first custom example
47
- m.value.length ? {
47
+ u.value.length ? {
48
48
  targetKey: "customExamples",
49
49
  clientKey: 0
50
50
  } : (
51
51
  // Otherwise use the globally selected HTTP client
52
52
  {
53
- targetKey: s.targetKey,
54
- clientKey: s.clientKey
53
+ targetKey: i.targetKey,
54
+ clientKey: i.clientKey
55
55
  }
56
56
  )
57
57
  );
58
- Q(s, () => {
58
+ Z(i, () => {
59
59
  r.value = {
60
- targetKey: s.targetKey,
61
- clientKey: s.clientKey
60
+ targetKey: i.targetKey,
61
+ clientKey: i.clientKey
62
62
  };
63
63
  });
64
- const O = c(
65
- () => {
66
- var e, t, l, u;
67
- return Object.keys(
68
- ((u = (l = (t = (e = i.transformedOperation.information) == null ? void 0 : e.requestBody) == null ? void 0 : t.content) == null ? void 0 : l["application/json"]) == null ? void 0 : u.examples) ?? {}
69
- ).length > 1;
70
- }
71
- ), M = () => {
72
- var g;
64
+ const $ = m(() => {
65
+ const e = v.value;
66
+ return Object.keys(e).length > 1;
67
+ }), P = () => {
68
+ var T;
73
69
  if (r.value.targetKey === "customExamples")
74
- return ((g = m.value[r.value.clientKey]) == null ? void 0 : g.source) ?? "";
75
- const e = s.clientKey, t = s.targetKey, l = J[i.operation.examples[0]];
70
+ return ((T = u.value[r.value.clientKey]) == null ? void 0 : T.source) ?? "";
71
+ const e = i.clientKey, t = i.targetKey, l = C[o.operation.examples[0]];
76
72
  if (!l)
77
73
  return "";
78
- const u = Z(
79
- i.operation.security || i.collection.security,
80
- i.collection.selectedSecuritySchemeUids,
74
+ const c = te(
75
+ o.operation.security || o.collection.security,
76
+ o.collection.selectedSecuritySchemeUids,
81
77
  q
82
- ), [p, v] = Y(t, e, {
83
- operation: i.operation,
78
+ ), [V, Q] = ee(t, e, {
79
+ operation: o.operation,
84
80
  example: l,
85
- server: i.server,
86
- securitySchemes: u
81
+ server: o.server,
82
+ securitySchemes: c
87
83
  });
88
- return p ? p.message ?? "" : v;
89
- }, N = c(() => {
84
+ return V ? V.message ?? "" : Q;
85
+ }, N = m(() => {
90
86
  try {
91
- return M();
87
+ return P();
92
88
  } catch (e) {
93
89
  return console.error("[generateSnippet]", e), "";
94
90
  }
95
- }), P = c(() => {
91
+ }), v = m(() => {
92
+ var l, c;
93
+ const e = ((c = (l = o.transformedOperation.information) == null ? void 0 : l.requestBody) == null ? void 0 : c.content) ?? {}, t = Object.values(e)[0];
94
+ return (t == null ? void 0 : t.examples) ?? {};
95
+ }), D = m(() => {
96
96
  var t, l;
97
97
  const e = (
98
98
  // Specified language
99
- ((t = r.value) == null ? void 0 : t.targetKey) === "customExamples" ? ((l = m.value[r.value.clientKey]) == null ? void 0 : l.lang) ?? "plaintext" : (
99
+ ((t = r.value) == null ? void 0 : t.targetKey) === "customExamples" ? ((l = u.value[r.value.clientKey]) == null ? void 0 : l.lang) ?? "plaintext" : (
100
100
  // Or language for the globally selected HTTP client
101
- s.targetKey
101
+ i.targetKey
102
102
  )
103
103
  );
104
104
  return e === "shell" && N.value.includes("curl") ? "curl" : e === "Objective-C" ? "objc" : e;
105
- }), D = c(
105
+ }), W = m(
106
106
  () => Object.values(q).flatMap((e) => e.type === "apiKey" ? e.value : (e == null ? void 0 : e.type) === "http" ? [
107
107
  e.token,
108
108
  e.password,
109
109
  btoa(`${e.username}:${e.password}`)
110
110
  ] : e.type === "oauth2" ? Object.values(e.flows).map((t) => t.token) : [])
111
- ), W = c(() => {
112
- const e = $.value.map((t) => ({
111
+ ), A = m(() => {
112
+ const e = O.value.map((t) => ({
113
113
  value: t.key,
114
114
  label: t.title,
115
115
  options: t.clients.map((l) => ({
@@ -120,10 +120,10 @@ const ie = ["id"], ue = ["id"], me = {
120
120
  label: l.title
121
121
  }))
122
122
  }));
123
- return m.value.length && e.unshift({
123
+ return u.value.length && e.unshift({
124
124
  value: "customExamples",
125
125
  label: "Examples",
126
- options: m.value.map((t, l) => ({
126
+ options: u.value.map((t, l) => ({
127
127
  value: JSON.stringify({
128
128
  targetKey: "customExamples",
129
129
  clientKey: l
@@ -131,145 +131,157 @@ const ie = ["id"], ue = ["id"], me = {
131
131
  label: t.label ?? t.lang ?? `Example #${l + 1}`
132
132
  }))
133
133
  }), e;
134
- }), x = T(null);
135
- function A(e) {
134
+ }), g = B(null);
135
+ function G(e) {
136
136
  const t = JSON.parse(e);
137
- if (x.value) {
138
- const l = ee(x.value.$el);
137
+ if (g.value) {
138
+ const l = ae(g.value.$el);
139
139
  setTimeout(() => {
140
140
  l();
141
141
  }, 300);
142
142
  }
143
- t.targetKey === "customExamples" || r.value.targetKey === "customExamples" && t.targetKey === s.targetKey && t.clientKey === s.clientKey ? r.value = t : U(t);
143
+ t.targetKey === "customExamples" || r.value.targetKey === "customExamples" && t.targetKey === i.targetKey && t.clientKey === i.clientKey ? r.value = t : I(t);
144
+ }
145
+ function L(e) {
146
+ S.value = e, J.value = o.operation.operationId;
147
+ const t = C[o.operation.examples[0]], l = v.value[e];
148
+ if (t && (l != null && l.value))
149
+ try {
150
+ U.edit(
151
+ t.uid,
152
+ "body.raw.value",
153
+ JSON.stringify(l.value, null, 2)
154
+ );
155
+ } catch (c) {
156
+ console.error("[handleExampleUpdate]", c);
157
+ }
144
158
  }
145
- return (e, t) => o($).length || m.value.length ? (d(), k(o(V), {
159
+ return (e, t) => a(O).length || u.value.length ? (d(), x(a(w), {
146
160
  key: 0,
147
- "aria-labelledby": `${o(y)}-header`,
161
+ "aria-labelledby": `${a(f)}-header`,
148
162
  class: "dark-mode",
149
163
  ref_key: "elem",
150
- ref: x,
164
+ ref: g,
151
165
  role: "region"
152
166
  }, {
153
- default: a(() => [
154
- n(o(re), { muted: "" }, {
155
- actions: a(() => [
156
- n(oe, {
167
+ default: n(() => [
168
+ s(a(se), { muted: "" }, {
169
+ actions: n(() => [
170
+ s(ne, {
157
171
  class: "request-client-picker",
158
- controls: `${o(y)}-example`,
172
+ controls: `${a(f)}-example`,
159
173
  modelValue: JSON.stringify(r.value),
160
- options: W.value,
161
- "onUpdate:modelValue": A
174
+ options: A.value,
175
+ "onUpdate:modelValue": G
162
176
  }, {
163
- default: a(() => [
164
- r.value.targetKey === "customExamples" ? (d(), b(B, { key: 0 }, [
165
- n(S, null, {
166
- default: a(() => t[2] || (t[2] = [
167
- f("Selected Example:")
177
+ default: n(() => [
178
+ r.value.targetKey === "customExamples" ? (d(), K(j, { key: 0 }, [
179
+ s(b, null, {
180
+ default: n(() => t[1] || (t[1] = [
181
+ p("Selected Example:")
168
182
  ])),
169
183
  _: 1
170
184
  }),
171
- f(" " + E(m.value[r.value.clientKey].label ?? "Example"), 1)
172
- ], 64)) : (d(), b(B, { key: 1 }, [
173
- n(S, null, {
174
- default: a(() => t[3] || (t[3] = [
175
- f("Selected HTTP client:")
185
+ p(" " + h(u.value[r.value.clientKey].label ?? "Example"), 1)
186
+ ], 64)) : (d(), K(j, { key: 1 }, [
187
+ s(b, null, {
188
+ default: n(() => t[2] || (t[2] = [
189
+ p("Selected HTTP client:")
176
190
  ])),
177
191
  _: 1
178
192
  }),
179
- f(" " + E(o(z)) + " " + E(o(F)), 1)
193
+ p(" " + h(a(M)) + " " + h(a(z)), 1)
180
194
  ], 64))
181
195
  ]),
182
196
  _: 1
183
197
  }, 8, ["controls", "modelValue", "options"])
184
198
  ]),
185
- default: a(() => [
186
- h("div", {
187
- id: `${o(y)}-header`,
199
+ default: n(() => [
200
+ k("div", {
201
+ id: `${a(f)}-header`,
188
202
  class: "request-header"
189
203
  }, [
190
- n(S, null, {
191
- default: a(() => t[1] || (t[1] = [
192
- f("Request Example for")
204
+ s(b, null, {
205
+ default: n(() => t[0] || (t[0] = [
206
+ p("Request Example for")
193
207
  ])),
194
208
  _: 1
195
209
  }),
196
- n(o(j), {
210
+ s(a(H), {
197
211
  as: "span",
198
212
  class: "request-method",
199
213
  method: e.operation.method
200
214
  }, null, 8, ["method"]),
201
- K(e.$slots, "header", {}, void 0, !0)
202
- ], 8, ie)
215
+ y(e.$slots, "header", {}, void 0, !0)
216
+ ], 8, me)
203
217
  ]),
204
218
  _: 3
205
219
  }),
206
- n(o(H), {
220
+ s(a(R), {
207
221
  borderless: "",
208
222
  class: "request-editor-section custom-scroll",
209
223
  frameless: ""
210
224
  }, {
211
- default: a(() => [
212
- h("div", {
213
- id: `${o(y)}-example`,
225
+ default: n(() => [
226
+ k("div", {
227
+ id: `${a(f)}-example`,
214
228
  class: "code-snippet"
215
229
  }, [
216
- n(o(_), {
230
+ s(a(le), {
217
231
  class: "bg-b-2 -outline-offset-2",
218
232
  content: N.value,
219
- hideCredentials: D.value,
220
- lang: P.value,
233
+ hideCredentials: W.value,
234
+ lang: D.value,
221
235
  lineNumbers: ""
222
236
  }, null, 8, ["content", "hideCredentials", "lang"])
223
- ], 8, ue)
237
+ ], 8, de)
224
238
  ]),
225
239
  _: 1
226
240
  }),
227
- (O.value || !o(I).hideTestRequestButton) && e.$slots.footer ? (d(), k(o(ae), {
241
+ ($.value || !a(F).hideTestRequestButton) && e.$slots.footer ? (d(), x(a(ie), {
228
242
  key: 0,
229
243
  class: "request-card-footer",
230
244
  contrast: ""
231
245
  }, {
232
- default: a(() => {
233
- var l, u, p, v;
234
- return [
235
- O.value ? (d(), b("div", me, [
236
- n(le, {
237
- class: "request-example-selector",
238
- examples: ((v = (p = (u = (l = e.transformedOperation.information) == null ? void 0 : l.requestBody) == null ? void 0 : u.content) == null ? void 0 : p["application/json"]) == null ? void 0 : v.examples) ?? [],
239
- "onUpdate:modelValue": t[0] || (t[0] = (g) => (R.value = g, w.value = e.operation.operationId))
240
- }, null, 8, ["examples"])
241
- ])) : C("", !0),
242
- K(e.$slots, "footer", {}, void 0, !0)
243
- ];
244
- }),
246
+ default: n(() => [
247
+ $.value ? (d(), K("div", pe, [
248
+ s(re, {
249
+ class: "request-example-selector",
250
+ examples: v.value,
251
+ modelValue: a(S),
252
+ "onUpdate:modelValue": L
253
+ }, null, 8, ["examples", "modelValue"])
254
+ ])) : E("", !0),
255
+ y(e.$slots, "footer", {}, void 0, !0)
256
+ ]),
245
257
  _: 3
246
- })) : C("", !0)
258
+ })) : E("", !0)
247
259
  ]),
248
260
  _: 3
249
- }, 8, ["aria-labelledby"])) : e.fallback ? (d(), k(o(V), {
261
+ }, 8, ["aria-labelledby"])) : e.fallback ? (d(), x(a(w), {
250
262
  key: 1,
251
263
  class: "dark-mode"
252
264
  }, {
253
- default: a(() => [
254
- n(o(H), { class: "request-card-simple" }, {
255
- default: a(() => [
256
- h("div", ce, [
257
- n(o(j), {
265
+ default: n(() => [
266
+ s(a(R), { class: "request-card-simple" }, {
267
+ default: n(() => [
268
+ k("div", fe, [
269
+ s(a(H), {
258
270
  as: "span",
259
271
  class: "request-method",
260
272
  method: e.operation.method
261
273
  }, null, 8, ["method"]),
262
- K(e.$slots, "header", {}, void 0, !0)
274
+ y(e.$slots, "header", {}, void 0, !0)
263
275
  ]),
264
- K(e.$slots, "footer", {}, void 0, !0)
276
+ y(e.$slots, "footer", {}, void 0, !0)
265
277
  ]),
266
278
  _: 3
267
279
  })
268
280
  ]),
269
281
  _: 3
270
- })) : C("", !0);
282
+ })) : E("", !0);
271
283
  }
272
284
  });
273
285
  export {
274
- Te as default
286
+ je as default
275
287
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAgPA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAW9E,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;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;kBANe,OAAO;kBAFP,OAAO;sBACH,OAAO;;AAuQ9B,wBAOG"}
1
+ {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAmPA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAW9E,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;IACtB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;kBANe,OAAO;kBAFP,OAAO;sBACH,OAAO;;AA0Q9B,wBAOG"}
@@ -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-b0aacc52"]]);
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-7ad4f6c6"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -21,7 +21,7 @@ const N = {
21
21
  v.value[0]
22
22
  );
23
23
  a.parameter.content && "application/json" in a.parameter.content && (s.value = "application/json");
24
- const r = i(() => !!(a.collapsableItems && a.parameter.content)), k = i(() => a.parameter.readOnly !== !0);
24
+ const r = i(() => !!(a.collapsableItems && (a.parameter.content || a.parameter.headers))), k = i(() => a.parameter.readOnly !== !0);
25
25
  return (e, d) => k.value ? (o(), C("li", N, [
26
26
  m(t(S), null, {
27
27
  default: c(({ open: l }) => [
@@ -1 +1 @@
1
- {"version":3,"file":"get-request.d.ts","sourceRoot":"","sources":["../../src/helpers/get-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,6CAA6C;AAC7C,eAAO,MAAM,UAAU,aAAc,cAAc,CAAC,UAAU,CAAC,QAAQ,MAAM,UAAU,MAAM;yBAEoyT,KAAK;;;kDAA2H,KAAK,8CAA8C,KAAK;wCAA6E,KAAK;8BAA6D,KAAK;+BAAyD,KAAK;;;;;;mBAAwR,CAAC;;;;;;;;;;;;;mBAA8f,CAAC;eAAyC,CAAC;cAA6B,CAAC;eAA8B,CAAC;aAA4B,CAAC;gBAA8H,CAAC;iBAAoD,CAAC;mBAAkC,CAAC;;;;;;;aAAoO,CAAC;YAAsC,CAAC;;;;aAAyH,CAAC;YAAsC,CAAC;;;;aAA4H,CAAC;YAAsC,CAAC;;kCAAqF,eAAe;aAD18X,CAAA"}
1
+ {"version":3,"file":"get-request.d.ts","sourceRoot":"","sources":["../../src/helpers/get-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,6CAA6C;AAC7C,eAAO,MAAM,UAAU,aAAc,cAAc,CAAC,UAAU,CAAC,QAAQ,MAAM,UAAU,MAAM;yBAEkzT,KAAK;;;kDAA2H,KAAK,8CAA8C,KAAK;wCAA6E,KAAK;8BAA6D,KAAK;+BAAyD,KAAK;;;;;;mBAAwR,CAAC;;;;;;;;;;;;;mBAA8f,CAAC;eAAyC,CAAC;cAA6B,CAAC;eAA8B,CAAC;aAA4B,CAAC;gBAA8H,CAAC;iBAAoD,CAAC;mBAAkC,CAAC;;;;;;;aAAoO,CAAC;YAAsC,CAAC;;;;aAAyH,CAAC;YAAsC,CAAC;;;;aAA4H,CAAC;YAAsC,CAAC;;kCAAqF,eAAe;aADx9X,CAAA"}
@@ -23,7 +23,7 @@ export declare const useMultipleDocuments: ({ configuration, initialIndex, isInt
23
23
  default?: boolean;
24
24
  hideClientButton?: boolean | undefined;
25
25
  showSidebar?: boolean | undefined;
26
- theme?: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none" | undefined;
26
+ theme?: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none" | undefined;
27
27
  layout?: "modern" | "classic" | undefined;
28
28
  isEditable?: boolean | undefined;
29
29
  isLoading?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useMultipleDocuments.d.ts","sourceRoot":"","sources":["../../src/hooks/useMultipleDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEnD,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAA;AAGpC,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAKpD,KAAK,yBAAyB,GAAG;IAC/B;;;OAGG;IACH,aAAa,EAAE,GAAG,CAAC,4BAA4B,GAAG,SAAS,CAAC,CAAA;IAC5D,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,QAAQ,CAAA;AAIZ;;GAEG;AACH,eAAO,MAAM,uBAAuB,kBACnB,4BAA4B,GAAG,SAAS,KACtD,iBAAiB,EA6BnB,CAAA;AA0CD,eAAO,MAAM,oBAAoB,8EAM9B,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;0CA8HqwoB,GAAI;oBAAuF,GAAG;;;;yBAAiH,CAAC;;;;;;;;;;;;;yCAAymB,GAAI;2CAA6E,GAAI;6BAAgE,GAAG;qBAAwE,GAAG;uCAAyF,GAAI;2CAA6F,GAAI;;;;;gBAA0K,CAAC;WAA4B,GAAI;;gBAAyF,CAAC;WAA4B,GAAI;;gBAAuF,CAAC;WAA4B,GAAI;;;;uBAAkJ,CAAC;mBAAqC,CAAC;WAA4B,GAAI;;;kBAAmH,CAAC;WAA4B,GAAI;qCAAyE,GAAI;;2DAAgK,GAAI;4EAAgH,GAAI;;;uDA/KvltB,GAAG;;;;;;;;;mDAAH,GAAG;;;;;;;;CA8KrD,CAAA"}
1
+ {"version":3,"file":"useMultipleDocuments.d.ts","sourceRoot":"","sources":["../../src/hooks/useMultipleDocuments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAEnD,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EAEvB,MAAM,6BAA6B,CAAA;AAGpC,OAAO,EAAE,KAAK,GAAG,EAAwB,MAAM,KAAK,CAAA;AAKpD,KAAK,yBAAyB,GAAG;IAC/B;;;OAGG;IACH,aAAa,EAAE,GAAG,CAAC,4BAA4B,GAAG,SAAS,CAAC,CAAA;IAC5D,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,GAAG,QAAQ,CAAA;AAIZ;;GAEG;AACH,eAAO,MAAM,uBAAuB,kBACnB,4BAA4B,GAAG,SAAS,KACtD,iBAAiB,EA6BnB,CAAA;AA0CD,eAAO,MAAM,oBAAoB,8EAM9B,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;0CA8H2zoB,GAAI;oBAAuF,GAAG;;;;yBAAiH,CAAC;;;;;;;;;;;;;yCAAymB,GAAI;2CAA6E,GAAI;6BAAgE,GAAG;qBAAwE,GAAG;uCAAyF,GAAI;2CAA6F,GAAI;;;;;gBAA0K,CAAC;WAA4B,GAAI;;gBAAyF,CAAC;WAA4B,GAAI;;gBAAuF,CAAC;WAA4B,GAAI;;;;uBAAkJ,CAAC;mBAAqC,CAAC;WAA4B,GAAI;;;kBAAmH,CAAC;WAA4B,GAAI;qCAAyE,GAAI;;2DAAgK,GAAI;4EAAgH,GAAI;;;uDA/K7otB,GAAG;;;;;;;;;mDAAH,GAAG;;;;;;;;CA8KrD,CAAA"}