@scalar/api-client 2.3.18 → 2.3.20

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 (63) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  3. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +132 -120
  4. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  5. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  6. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +138 -125
  7. package/dist/components/ImportCollection/utils/import-collection.d.ts.map +1 -1
  8. package/dist/components/ImportCollection/utils/import-collection.js +17 -14
  9. package/dist/hooks/useClientConfig.d.ts +3 -3
  10. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  11. package/dist/layouts/App/create-api-client-app.d.ts +16 -19
  12. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  13. package/dist/layouts/App/create-api-client-app.js +10 -8
  14. package/dist/layouts/Modal/create-api-client-modal.d.ts +32 -38
  15. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  16. package/dist/layouts/Web/create-api-client-web.d.ts +16 -19
  17. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  18. package/dist/libs/create-client.d.ts +16 -19
  19. package/dist/libs/create-client.d.ts.map +1 -1
  20. package/dist/store/active-entities.d.ts +1 -1
  21. package/dist/store/active-entities.d.ts.map +1 -1
  22. package/dist/store/import-spec.d.ts +1 -1
  23. package/dist/store/import-spec.d.ts.map +1 -1
  24. package/dist/store/import-spec.js +7 -6
  25. package/dist/store/store.d.ts +16 -19
  26. package/dist/store/store.d.ts.map +1 -1
  27. package/dist/store/workspace.d.ts +10 -10
  28. package/dist/store/workspace.d.ts.map +1 -1
  29. package/dist/style.css +1 -1
  30. package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
  31. package/dist/views/Collection/CollectionAuthentication.vue.js +2 -2
  32. package/dist/views/Collection/CollectionAuthentication.vue2.js +22 -19
  33. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
  34. package/dist/views/Collection/CollectionSettings.vue.js +1 -1
  35. package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
  36. package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
  37. package/dist/views/Collection/components/MarkdownInput.vue.js +2 -2
  38. package/dist/views/Collection/components/MarkdownInput.vue2.js +11 -11
  39. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  40. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  41. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +29 -30
  42. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  43. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +3 -3
  44. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +33 -32
  45. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  46. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  47. package/dist/views/Request/RequestSection/RequestBody.vue2.js +129 -126
  48. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  49. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +1 -1
  50. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  51. package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
  52. package/dist/views/Request/RequestSidebarItem.vue2.js +235 -241
  53. package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -1
  54. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +12 -12
  55. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  56. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
  57. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  58. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
  59. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +9 -9
  60. package/dist/views/Request/hooks/useOpenApiWatcher.js +34 -34
  61. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  62. package/dist/views/Settings/SettingsGeneral.vue.js +2 -0
  63. package/package.json +11 -11
@@ -1,14 +1,14 @@
1
- import { defineComponent as ee, computed as h, ref as ae, watch as A, openBlock as b, createBlock as g, withCtx as m, createTextVNode as H, toDisplayString as F, createVNode as c, unref as v, createElementVNode as k, createCommentVNode as ne, createElementBlock as E, Fragment as te, nextTick as oe } from "vue";
1
+ import { defineComponent as ee, computed as h, ref as ne, watch as $, openBlock as b, createBlock as g, withCtx as m, createTextVNode as H, toDisplayString as F, createVNode as c, unref as v, createElementVNode as k, createCommentVNode as ae, createElementBlock as j, Fragment as te, nextTick as oe } from "vue";
2
2
  import { ScalarListbox as X, ScalarButton as D, ScalarIcon as C } from "@scalar/components";
3
3
  import { requestExampleParametersSchema as Y } from "@scalar/oas-utils/entities/spec";
4
4
  import { canMethodHaveBody as le } from "@scalar/oas-utils/helpers";
5
5
  import ie from "../../../components/CodeInput/CodeInput.vue.js";
6
6
  import re from "../../../components/DataTable/DataTable.vue.js";
7
7
  import de from "../../../components/DataTable/DataTableHeader.vue.js";
8
- import j from "../../../components/DataTable/DataTableRow.vue.js";
9
- import ue from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
8
+ import E from "../../../components/DataTable/DataTableRow.vue.js";
9
+ import se from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
10
10
  import G from "./RequestTable.vue.js";
11
- import { useWorkspace as se } from "../../../store/store.js";
11
+ import { useWorkspace as ue } from "../../../store/store.js";
12
12
  import { useFileDialog as K } from "../../../hooks/useFileDialog.js";
13
13
  const me = {
14
14
  key: 0,
@@ -27,7 +27,7 @@ const me = {
27
27
  title: {}
28
28
  },
29
29
  setup(l) {
30
- const { requestExampleMutators: d } = se(), Q = {
30
+ const { requestExampleMutators: d } = ue(), Q = {
31
31
  json: "json",
32
32
  xml: "xml",
33
33
  yaml: "yaml",
@@ -43,124 +43,127 @@ const me = {
43
43
  edn: "EDN",
44
44
  other: "Other",
45
45
  none: "None"
46
- }).map(([e, a]) => ({
46
+ }).map(([e, n]) => ({
47
47
  id: e,
48
- label: a
49
- })), R = h(() => {
48
+ label: n
49
+ })), T = h(() => {
50
50
  var o;
51
- const { activeBody: e, formData: a, raw: n } = l.example.body;
52
- return e === "formData" ? (a == null ? void 0 : a.encoding) === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && (n != null && n.encoding) ? n.encoding === "html" ? "other" : n.encoding : Object.keys(((o = l.operation.requestBody) == null ? void 0 : o.content) || {})[0] || "none";
51
+ const { activeBody: e, formData: n, raw: a } = l.example.body;
52
+ return e === "formData" ? (n == null ? void 0 : n.encoding) === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && (a != null && a.encoding) ? a.encoding === "html" ? "other" : a.encoding : Object.keys(((o = l.operation.requestBody) == null ? void 0 : o.content) || {})[0] || "none";
53
53
  }), p = h({
54
54
  get: () => x.find(
55
- (e) => e.id === R.value
55
+ (e) => e.id === T.value
56
56
  ) ?? x[x.length - 1] ?? x[0],
57
57
  set: (e) => {
58
- e != null && e.id && L(e.id);
58
+ e != null && e.id && M(e.id);
59
59
  }
60
- }), B = ae(null), Z = h(() => {
61
- var a;
62
- const e = (a = p.value) == null ? void 0 : a.id;
60
+ }), B = ne(null), Z = h(() => {
61
+ var n;
62
+ const e = (n = p.value) == null ? void 0 : n.id;
63
63
  return Q[e] ?? "plaintext";
64
64
  });
65
65
  function P() {
66
66
  console.log("deleteRow");
67
67
  }
68
- const N = (e, a, n) => {
69
- var o, i, s, r, f, V, J;
68
+ const N = (e, n, a) => {
69
+ var o, i, u, r, f, V, J;
70
70
  const t = y.value;
71
71
  if (t.length > e) {
72
- const u = [...t];
73
- u[e] = {
74
- ...u[e],
75
- value: ((o = u[e]) == null ? void 0 : o.value) || "",
76
- key: ((i = u[e]) == null ? void 0 : i.key) || "",
77
- enabled: ((s = u[e]) == null ? void 0 : s.enabled) ?? !1,
78
- [a]: n || ""
79
- }, (((r = u[e]) == null ? void 0 : r.key) !== "" || ((f = u[e]) == null ? void 0 : f.value) !== "") && (u[e].enabled = !0), ((V = u[e]) == null ? void 0 : V.key) === "" && ((J = u[e]) == null ? void 0 : J.value) === "" && u.splice(e, 1), d.edit(
72
+ const s = [...t];
73
+ s[e] = {
74
+ ...s[e],
75
+ value: ((o = s[e]) == null ? void 0 : o.value) || "",
76
+ key: ((i = s[e]) == null ? void 0 : i.key) || "",
77
+ enabled: ((u = s[e]) == null ? void 0 : u.enabled) ?? !1,
78
+ [n]: a || ""
79
+ }, (((r = s[e]) == null ? void 0 : r.key) !== "" || ((f = s[e]) == null ? void 0 : f.value) !== "") && (s[e].enabled = !0), ((V = s[e]) == null ? void 0 : V.key) === "" && ((J = s[e]) == null ? void 0 : J.value) === "" && s.splice(e, 1), d.edit(
80
80
  l.example.uid,
81
81
  "body.formData.value",
82
- u
82
+ s
83
83
  );
84
84
  } else {
85
- const u = [Y.parse({ [a]: n })];
86
- d.edit(l.example.uid, "body.formData.value", u), oe(() => {
87
- var $;
85
+ const s = [Y.parse({ [n]: a })];
86
+ d.edit(l.example.uid, "body.formData.value", s), oe(() => {
87
+ var A;
88
88
  if (!B.value)
89
89
  return;
90
- ($ = B.value.querySelectorAll("input")[a === "key" ? 0 : 1]) == null || $.focus();
90
+ (A = B.value.querySelectorAll("input")[n === "key" ? 0 : 1]) == null || A.focus();
91
91
  });
92
92
  }
93
93
  e === t.length - 1 && O();
94
94
  }, y = h(() => {
95
95
  var e;
96
96
  return ((e = l.example.body.formData) == null ? void 0 : e.value) ?? [];
97
- }), T = () => {
97
+ }), R = () => {
98
98
  const e = y.value[y.value.length - 1];
99
99
  (!e || e.key !== "" || e.value !== "") && O();
100
100
  }, O = () => {
101
101
  const e = Y.parse({
102
102
  enabled: !1
103
- }), a = [...y.value, e];
104
- l.example.body.formData ? d.edit(l.example.uid, "body.formData.value", a) : d.edit(l.example.uid, "body.formData", {
105
- value: a,
103
+ }), n = [...y.value, e];
104
+ l.example.body.formData ? d.edit(l.example.uid, "body.formData.value", n) : d.edit(l.example.uid, "body.formData", {
105
+ value: n,
106
106
  encoding: "form-data"
107
107
  });
108
- }, S = (e, a) => {
109
- const n = y.value;
110
- if (n.length > e) {
111
- const t = [...n];
112
- t[e] && (t[e].enabled = a), d.edit(
108
+ }, S = (e, n) => {
109
+ const a = y.value;
110
+ if (a.length > e) {
111
+ const t = [...a];
112
+ t[e] && (t[e].enabled = n), d.edit(
113
113
  l.example.uid,
114
114
  "body.formData.value",
115
115
  t
116
116
  );
117
117
  }
118
- }, q = (e) => d.edit(l.example.uid, "body.raw.value", e), W = (e) => e === "multipartForm" ? {
119
- activeBody: "formData",
120
- encoding: "form-data",
121
- header: "multipart/form-data"
122
- } : e === "formUrlEncoded" ? {
123
- activeBody: "formData",
124
- encoding: "urlencoded",
125
- header: "application/x-www-form-urlencoded"
126
- } : e === "binaryFile" ? {
127
- activeBody: "binary",
128
- encoding: void 0,
129
- header: "application/octet-stream"
130
- } : e === "json" || e.endsWith("+json") ? {
131
- activeBody: "raw",
132
- encoding: "json",
133
- header: e.endsWith("+json") ? `application/${e}` : "application/json"
134
- } : e === "xml" ? {
135
- activeBody: "raw",
136
- encoding: "xml",
137
- header: "application/xml"
138
- } : e === "yaml" ? {
139
- activeBody: "raw",
140
- encoding: "yaml",
141
- header: "application/yaml"
142
- } : e === "edn" ? {
143
- activeBody: "raw",
144
- encoding: "edn",
145
- header: "application/edn"
146
- } : e === "other" ? {
147
- activeBody: "raw",
148
- encoding: "html",
149
- header: "application/html"
150
- } : { activeBody: "raw", encoding: void 0, header: void 0 }, L = (e) => {
151
- var s, r;
152
- const { activeBody: a, encoding: n, header: t } = W(e);
153
- if (d.edit(l.example.uid, "body.activeBody", a), n && a === "raw")
118
+ }, q = (e) => d.edit(l.example.uid, "body.raw.value", e), L = (e) => {
119
+ var n;
120
+ return e === "multipartForm" ? {
121
+ activeBody: "formData",
122
+ encoding: "form-data",
123
+ header: "multipart/form-data"
124
+ } : e === "formUrlEncoded" ? {
125
+ activeBody: "formData",
126
+ encoding: "urlencoded",
127
+ header: "application/x-www-form-urlencoded"
128
+ } : e === "binaryFile" ? {
129
+ activeBody: "binary",
130
+ encoding: void 0,
131
+ header: "application/octet-stream"
132
+ } : e === "json" ? {
133
+ activeBody: "raw",
134
+ encoding: "json",
135
+ header: Object.keys(((n = l.operation.requestBody) == null ? void 0 : n.content) ?? {}).find((o) => o.includes("json") || o.endsWith("+json")) || "application/json"
136
+ } : e === "xml" ? {
137
+ activeBody: "raw",
138
+ encoding: "xml",
139
+ header: "application/xml"
140
+ } : e === "yaml" ? {
141
+ activeBody: "raw",
142
+ encoding: "yaml",
143
+ header: "application/yaml"
144
+ } : e === "edn" ? {
145
+ activeBody: "raw",
146
+ encoding: "edn",
147
+ header: "application/edn"
148
+ } : e === "other" ? {
149
+ activeBody: "raw",
150
+ encoding: "html",
151
+ header: "application/html"
152
+ } : { activeBody: "raw", encoding: void 0, header: void 0 };
153
+ }, M = (e) => {
154
+ var u, r;
155
+ const { activeBody: n, encoding: a, header: t } = L(e);
156
+ if (d.edit(l.example.uid, "body.activeBody", n), a && n === "raw")
154
157
  d.edit(l.example.uid, "body.raw", {
155
- encoding: n,
156
- value: ((s = l.example.body.raw) == null ? void 0 : s.value) ?? ""
158
+ encoding: a,
159
+ value: ((u = l.example.body.raw) == null ? void 0 : u.value) ?? ""
157
160
  });
158
- else if (n && a === "formData")
161
+ else if (a && n === "formData")
159
162
  d.edit(l.example.uid, "body.formData", {
160
- encoding: n,
163
+ encoding: a,
161
164
  value: ((r = l.example.body.formData) == null ? void 0 : r.value) ?? []
162
165
  });
163
- else if (!n && a !== "binary") {
166
+ else if (!a && n !== "binary") {
164
167
  const { raw: f, ...V } = l.example.body;
165
168
  d.edit(l.example.uid, "body", V);
166
169
  }
@@ -168,7 +171,7 @@ const me = {
168
171
  (f) => f.key.toLowerCase() === "content-type"
169
172
  );
170
173
  if (i >= 0)
171
- t && o[i] ? o[i].value = t : o[i] && (a !== "raw" || e === "none") && o.splice(i, 1);
174
+ t && o[i] ? o[i].value = t : o[i] && (n !== "raw" || e === "none") && o.splice(i, 1);
172
175
  else if (t) {
173
176
  const f = o[o.length - 1];
174
177
  f && f.key === "" && f.value === "" ? o.splice(o.length - 1, 0, {
@@ -182,11 +185,11 @@ const me = {
182
185
  });
183
186
  }
184
187
  d.edit(l.example.uid, "parameters.headers", o);
185
- }, M = async (e) => {
186
- const { open: a } = K({
187
- onChange: async (n) => {
188
+ }, W = async (e) => {
189
+ const { open: n } = K({
190
+ onChange: async (a) => {
188
191
  var o, i;
189
- const t = n == null ? void 0 : n[0];
192
+ const t = a == null ? void 0 : a[0];
190
193
  if (t) {
191
194
  const r = [...y.value];
192
195
  r[e] = {
@@ -199,47 +202,47 @@ const me = {
199
202
  l.example.uid,
200
203
  "body.formData.value",
201
204
  r
202
- ), T();
205
+ ), R();
203
206
  }
204
207
  },
205
208
  multiple: !1,
206
209
  accept: "*/*"
207
210
  });
208
- a();
211
+ n();
209
212
  }, I = () => d.edit(l.example.uid, "body.binary", void 0);
210
213
  function z(e) {
211
- const a = y.value, n = [...a], t = a[e], o = t == null ? void 0 : t.file;
212
- a.length > 1 && (!(t != null && t.key) && !(t != null && t.value) || o && (t == null ? void 0 : t.key) === o.name && (t == null ? void 0 : t.value) === o.name) ? n.splice(e, 1) : n[e] && (n[e].file = void 0), d.edit(l.example.uid, "body.formData.value", n);
214
+ const n = y.value, a = [...n], t = n[e], o = t == null ? void 0 : t.file;
215
+ n.length > 1 && (!(t != null && t.key) && !(t != null && t.value) || o && (t == null ? void 0 : t.key) === o.name && (t == null ? void 0 : t.value) === o.name) ? a.splice(e, 1) : a[e] && (a[e].file = void 0), d.edit(l.example.uid, "body.formData.value", a);
213
216
  }
214
217
  function _() {
215
218
  const { open: e } = K({
216
- onChange: async (a) => {
217
- const n = a == null ? void 0 : a[0];
218
- n && d.edit(l.example.uid, "body.binary", n);
219
+ onChange: async (n) => {
220
+ const a = n == null ? void 0 : n[0];
221
+ a && d.edit(l.example.uid, "body.binary", a);
219
222
  },
220
223
  multiple: !1,
221
224
  accept: "*/*"
222
225
  });
223
226
  e();
224
227
  }
225
- A(
228
+ $(
226
229
  p,
227
230
  (e) => {
228
- ["multipartForm", "formUrlEncoded"].includes((e == null ? void 0 : e.id) || "") && T();
231
+ ["multipartForm", "formUrlEncoded"].includes((e == null ? void 0 : e.id) || "") && R();
229
232
  },
230
233
  { immediate: !0 }
231
- ), A(
234
+ ), $(
232
235
  () => l.example.uid,
233
236
  () => {
234
- l.operation.method && le(l.operation.method) && L(R.value), ["multipartForm", "formUrlEncoded"].includes(
235
- R.value
236
- ) && T();
237
+ l.operation.method && le(l.operation.method) && M(T.value), ["multipartForm", "formUrlEncoded"].includes(
238
+ T.value
239
+ ) && R();
237
240
  },
238
241
  { immediate: !0 }
239
242
  );
240
243
  const w = h(() => {
241
- var o, i, s;
242
- const e = (o = p.value) == null ? void 0 : o.id, { header: a } = W(e), n = ((i = l.operation.requestBody) == null ? void 0 : i.content) || {}, t = a ? ((s = n[a]) == null ? void 0 : s.examples) || {} : {};
244
+ var o, i, u;
245
+ const e = (o = p.value) == null ? void 0 : o.id, { header: n } = L(e), a = ((i = l.operation.requestBody) == null ? void 0 : i.content) || {}, t = n ? ((u = a[n]) == null ? void 0 : u.examples) || {} : {};
243
246
  return Object.entries(t).map(([r, f]) => ({
244
247
  id: r,
245
248
  label: r,
@@ -248,23 +251,23 @@ const me = {
248
251
  }), U = h({
249
252
  get: () => {
250
253
  var t;
251
- const e = ((t = l.example.body.raw) == null ? void 0 : t.value) ?? "{}", a = JSON.parse(e);
254
+ const e = ((t = l.example.body.raw) == null ? void 0 : t.value) ?? "{}", n = JSON.parse(e);
252
255
  return w.value.find((o) => {
253
256
  const i = o.value;
254
- return JSON.stringify(i.value) === JSON.stringify(a);
257
+ return JSON.stringify(i.value) === JSON.stringify(n);
255
258
  }) ?? w.value[0];
256
259
  },
257
260
  set: (e) => {
258
261
  if (e != null && e.id) {
259
- const a = w.value.find((n) => n.id === e.id);
260
- if (a) {
261
- const n = a.value;
262
- q(JSON.stringify(n.value, null, 2));
262
+ const n = w.value.find((a) => a.id === e.id);
263
+ if (n) {
264
+ const a = n.value;
265
+ q(JSON.stringify(a.value, null, 2));
263
266
  }
264
267
  }
265
268
  }
266
269
  });
267
- return (e, a) => (b(), g(ue, null, {
270
+ return (e, n) => (b(), g(se, null, {
268
271
  title: m(() => [
269
272
  H(F(e.title), 1)
270
273
  ]),
@@ -274,13 +277,13 @@ const me = {
274
277
  presentational: ""
275
278
  }, {
276
279
  default: m(() => [
277
- c(j, null, {
280
+ c(E, null, {
278
281
  default: m(() => [
279
282
  c(de, { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0" }, {
280
283
  default: m(() => [
281
284
  c(v(X), {
282
285
  modelValue: p.value,
283
- "onUpdate:modelValue": a[0] || (a[0] = (n) => p.value = n),
286
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => p.value = a),
284
287
  options: v(x),
285
288
  teleport: ""
286
289
  }, {
@@ -291,9 +294,9 @@ const me = {
291
294
  variant: "ghost"
292
295
  }, {
293
296
  default: m(() => {
294
- var n;
297
+ var a;
295
298
  return [
296
- k("span", null, F((n = p.value) == null ? void 0 : n.label), 1),
299
+ k("span", null, F((a = p.value) == null ? void 0 : a.label), 1),
297
300
  c(v(C), {
298
301
  icon: "ChevronDown",
299
302
  size: "md"
@@ -308,7 +311,7 @@ const me = {
308
311
  w.value.length > 0 ? (b(), g(v(X), {
309
312
  key: 0,
310
313
  modelValue: U.value,
311
- "onUpdate:modelValue": a[1] || (a[1] = (n) => U.value = n),
314
+ "onUpdate:modelValue": n[1] || (n[1] = (a) => U.value = a),
312
315
  options: w.value,
313
316
  side: "left",
314
317
  teleport: ""
@@ -320,9 +323,9 @@ const me = {
320
323
  variant: "ghost"
321
324
  }, {
322
325
  default: m(() => {
323
- var n;
326
+ var a;
324
327
  return [
325
- k("span", null, F((n = U.value) == null ? void 0 : n.label), 1),
328
+ k("span", null, F((a = U.value) == null ? void 0 : a.label), 1),
326
329
  c(v(C), {
327
330
  icon: "ChevronDown",
328
331
  size: "md"
@@ -333,21 +336,21 @@ const me = {
333
336
  })
334
337
  ]),
335
338
  _: 1
336
- }, 8, ["modelValue", "options"])) : ne("", !0)
339
+ }, 8, ["modelValue", "options"])) : ae("", !0)
337
340
  ]),
338
341
  _: 1
339
342
  })
340
343
  ]),
341
344
  _: 1
342
345
  }),
343
- c(j, null, {
346
+ c(E, null, {
344
347
  default: m(() => {
345
- var n, t, o, i, s, r;
348
+ var a, t, o, i, u, r;
346
349
  return [
347
- ((n = p.value) == null ? void 0 : n.id) === "none" ? (b(), E("div", me, a[2] || (a[2] = [
350
+ ((a = p.value) == null ? void 0 : a.id) === "none" ? (b(), j("div", me, n[2] || (n[2] = [
348
351
  k("span", null, "No Body", -1)
349
- ]))) : ((t = p.value) == null ? void 0 : t.id) === "binaryFile" ? (b(), E("div", ce, [
350
- e.example.body.binary ? (b(), E(te, { key: 0 }, [
352
+ ]))) : ((t = p.value) == null ? void 0 : t.id) === "binaryFile" ? (b(), j("div", ce, [
353
+ e.example.body.binary ? (b(), j(te, { key: 0 }, [
351
354
  k("span", fe, F(e.example.body.binary.name), 1),
352
355
  c(v(D), {
353
356
  class: "bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",
@@ -355,7 +358,7 @@ const me = {
355
358
  variant: "outlined",
356
359
  onClick: I
357
360
  }, {
358
- default: m(() => a[3] || (a[3] = [
361
+ default: m(() => n[3] || (n[3] = [
359
362
  H(" Delete ")
360
363
  ])),
361
364
  _: 1
@@ -368,7 +371,7 @@ const me = {
368
371
  onClick: _
369
372
  }, {
370
373
  default: m(() => [
371
- a[4] || (a[4] = k("span", null, "Upload File", -1)),
374
+ n[4] || (n[4] = k("span", null, "Upload File", -1)),
372
375
  c(v(C), {
373
376
  class: "ml-1",
374
377
  icon: "Upload",
@@ -393,7 +396,7 @@ const me = {
393
396
  onRemoveFile: z,
394
397
  onToggleRow: S,
395
398
  onUpdateRow: N,
396
- onUploadFile: M
399
+ onUploadFile: W
397
400
  }, null, 8, ["envVariables", "environment", "items", "workspace"])) : ((i = p.value) == null ? void 0 : i.id) == "formUrlEncoded" ? (b(), g(G, {
398
401
  key: 3,
399
402
  ref_key: "tableWrapperRef",
@@ -409,7 +412,7 @@ const me = {
409
412
  onRemoveFile: z,
410
413
  onToggleRow: S,
411
414
  onUpdateRow: N,
412
- onUploadFile: M
415
+ onUploadFile: W
413
416
  }, null, 8, ["envVariables", "environment", "items", "workspace"])) : (b(), g(ie, {
414
417
  key: 4,
415
418
  class: "border-t-1/2 px-1",
@@ -419,7 +422,7 @@ const me = {
419
422
  language: Z.value,
420
423
  lineNumbers: "",
421
424
  lint: "",
422
- modelValue: ((r = (s = e.example.body) == null ? void 0 : s.raw) == null ? void 0 : r.value) ?? "",
425
+ modelValue: ((r = (u = e.example.body) == null ? void 0 : u.raw) == null ? void 0 : r.value) ?? "",
423
426
  workspace: e.workspace,
424
427
  "onUpdate:modelValue": q
425
428
  }, null, 8, ["envVariables", "environment", "language", "modelValue", "workspace"]))
@@ -427,7 +430,7 @@ const me = {
427
430
  }),
428
431
  _: 1
429
432
  }),
430
- c(j)
433
+ c(E)
431
434
  ]),
432
435
  _: 1
433
436
  })
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestCodeExample.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-eca26cbf"]]);
4
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ec5dd19c"]]);
5
5
  export {
6
- p as default
6
+ r as default
7
7
  };
@@ -106,7 +106,7 @@ const G = { class: "w-full" }, J = { class: "-mx-1 flex flex-1" }, L = { class:
106
106
  return (t, e) => (v(), j("div", G, [
107
107
  i(M, {
108
108
  class: "group/preview w-full border-b-0",
109
- defaultOpen: !0
109
+ defaultOpen: !1
110
110
  }, {
111
111
  title: c(() => e[0] || (e[0] = [
112
112
  D("Code Snippet")
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AAotBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EAAY,QAAQ,EAAO,MAAM,KAAK,CAAA;AAU7C,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIzE,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AA4VF,iBAAS,cAAc;WA0xBT,OAAO,IAA6B;;oBApmCpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjElB,KAjqBmB;;;;;;;oCAiqBnB,KA7pBO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA8xBA,GAAG,8CAEI,GAAG,yBACH,GAAG,6DAET,GAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoiCT;AAqCD,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;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA6sBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EAAY,QAAQ,EAAO,MAAM,KAAK,CAAA;AAU7C,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIzE,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AA4VF,iBAAS,cAAc;WAoxBT,OAAO,IAA6B;;oBA9lCpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjElB,KA1pBmB;;;;;;;oCA0pBnB,KAtpBO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4xB4D,GAAE,8CAC9C,GAAG,yBAAyB,GAAG,6DACpC,GACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2hCA;AAqCD,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;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import o from "../../_virtual/_plugin-vue_export-helper.js";
5
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-dd4727fd"]]);
4
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-5ceed67f"]]);
6
6
  export {
7
- p as default
7
+ a as default
8
8
  };