@scalar/api-client 2.0.47 → 2.0.49

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 (79) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +77 -71
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts +3 -1
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  7. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  8. package/dist/components/CodeInput/CodeInput.vue2.js +49 -44
  9. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  10. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  11. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +97 -106
  12. package/dist/components/Sidebar/Sidebar.vue.d.ts +23 -3
  13. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  14. package/dist/components/Sidebar/Sidebar.vue.js +55 -19
  15. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  16. package/dist/components/TopNav/TopNav.vue.js +1 -1
  17. package/dist/components/TopNav/TopNav.vue2.js +46 -43
  18. package/dist/components/TopNav/TopNavItem.vue.js +1 -1
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +9 -9
  22. package/dist/layouts/App/ApiClientApp.vue.js +1 -1
  23. package/dist/layouts/App/create-api-client-app.d.ts +56 -46
  24. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  25. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  26. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  27. package/dist/layouts/Modal/ApiClientModal.vue2.js +20 -20
  28. package/dist/layouts/Modal/create-api-client-modal.d.ts +112 -92
  29. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  30. package/dist/libs/create-client.d.ts +56 -46
  31. package/dist/libs/create-client.d.ts.map +1 -1
  32. package/dist/libs/event-busses/{command-palette.d.ts → command-palette-bus.d.ts} +1 -1
  33. package/dist/libs/event-busses/command-palette-bus.d.ts.map +1 -0
  34. package/dist/libs/event-busses/{execute-requestBus.d.ts → execute-request-bus.d.ts} +1 -1
  35. package/dist/libs/event-busses/execute-request-bus.d.ts.map +1 -0
  36. package/dist/libs/event-busses/hot-keys-bus.d.ts +33 -0
  37. package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -0
  38. package/dist/libs/event-busses/hot-keys-bus.js +33 -0
  39. package/dist/libs/event-busses/index.d.ts +3 -3
  40. package/dist/libs/event-busses/index.d.ts.map +1 -1
  41. package/dist/libs/event-busses/index.js +3 -3
  42. package/dist/libs/index.js +3 -3
  43. package/dist/libs/local-storage.d.ts +1 -1
  44. package/dist/libs/local-storage.d.ts.map +1 -1
  45. package/dist/libs/local-storage.js +15 -30
  46. package/dist/router.d.ts +2 -2
  47. package/dist/router.d.ts.map +1 -1
  48. package/dist/router.js +3 -3
  49. package/dist/store/workspace.d.ts +112 -92
  50. package/dist/store/workspace.d.ts.map +1 -1
  51. package/dist/store/workspace.js +140 -137
  52. package/dist/style.css +1 -1
  53. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  54. package/dist/views/Request/Request.vue.js +1 -1
  55. package/dist/views/Request/Request.vue2.js +135 -131
  56. package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
  57. package/dist/views/Request/RequestSection/RequestAuth.vue.js +2 -2
  58. package/dist/views/Request/RequestSection/RequestAuth.vue2.js +165 -148
  59. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  60. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  61. package/dist/views/Request/RequestSidebarItem.vue2.js +252 -138
  62. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +27 -5
  63. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  64. package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
  65. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +83 -158
  66. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  67. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  68. package/dist/views/Request/components/WorkspaceDropdown.vue.js +215 -70
  69. package/dist/views/Request/consts/new-auth-options.d.ts +0 -1
  70. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  71. package/dist/views/Request/consts/new-auth-options.js +5 -6
  72. package/package.json +7 -7
  73. package/dist/libs/event-busses/command-palette.d.ts.map +0 -1
  74. package/dist/libs/event-busses/execute-requestBus.d.ts.map +0 -1
  75. package/dist/libs/event-busses/hot-key.d.ts +0 -34
  76. package/dist/libs/event-busses/hot-key.d.ts.map +0 -1
  77. package/dist/libs/event-busses/hot-key.js +0 -25
  78. /package/dist/libs/event-busses/{command-palette.js → command-palette-bus.js} +0 -0
  79. /package/dist/libs/event-busses/{execute-requestBus.js → execute-request-bus.js} +0 -0
@@ -1,180 +1,200 @@
1
- import { defineComponent as j, ref as z, computed as I, openBlock as i, createBlock as k, withCtx as a, createElementVNode as h, toDisplayString as U, createVNode as u, unref as n, createElementBlock as c, Fragment as v, renderList as B, createTextVNode as p, withModifiers as E, createCommentVNode as w, capitalize as W, pushScopeId as H, popScopeId as Q } from "vue";
2
- import K from "../../../components/DataTable/DataTableCell.vue.js";
3
- import L from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
4
- import { useWorkspace as G } from "../../../store/workspace.js";
1
+ import { defineComponent as K, ref as L, computed as C, openBlock as i, createBlock as b, withCtx as o, createElementVNode as h, toDisplayString as g, createVNode as u, unref as n, createElementBlock as c, Fragment as v, renderList as q, createTextVNode as f, withModifiers as z, createCommentVNode as A, capitalize as E, pushScopeId as Q, popScopeId as G } from "vue";
2
+ import J from "../../../components/DataTable/DataTableCell.vue.js";
3
+ import X from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
4
+ import { useWorkspace as Y } from "../../../store/workspace.js";
5
5
  import V from "./RequestAuthDataTableInput.vue.js";
6
- import { ScalarComboboxMultiselect as J, ScalarButton as X, ScalarIcon as O } from "@scalar/components";
7
- import { camelToTitleWords as Y } from "@scalar/oas-utils/helpers";
8
- import { ADD_AUTH_OPTIONS as Z, ADD_AUTH_DICT as ee } from "../consts/new-auth-options.js";
9
- import te from "../../../components/DataTable/DataTable.vue.js";
10
- import f from "../../../components/DataTable/DataTableRow.vue.js";
11
- import le from "../../../components/DataTable/DataTableHeader.vue.js";
12
- import ae from "../components/OAuth2.vue.js";
13
- const C = (S) => (H("data-v-24e41ef0"), S = S(), Q(), S), oe = { class: "flex gap-1" }, ue = /* @__PURE__ */ C(() => /* @__PURE__ */ h("div", { class: "text-c-2 h-8 flex min-w-[120px] items-center border-r-1/2 pr-0 pl-2" }, " Auth Type ", -1)), ne = {
6
+ import { ScalarComboboxMultiselect as Z, ScalarButton as ee, ScalarIcon as F } from "@scalar/components";
7
+ import { camelToTitleWords as te } from "@scalar/oas-utils/helpers";
8
+ import { ADD_AUTH_OPTIONS as le, ADD_AUTH_DICT as ae } from "../consts/new-auth-options.js";
9
+ import oe from "../../../components/DataTable/DataTable.vue.js";
10
+ import _ from "../../../components/DataTable/DataTableRow.vue.js";
11
+ import ue from "../../../components/DataTable/DataTableHeader.vue.js";
12
+ import ne from "../components/OAuth2.vue.js";
13
+ const D = (S) => (Q("data-v-afbf407f"), S = S(), G(), S), ie = { class: "flex gap-1" }, se = /* @__PURE__ */ D(() => /* @__PURE__ */ h("div", { class: "text-c-2 h-8 flex min-w-[120px] items-center border-r-1/2 pr-0 pl-2" }, " Auth Type ", -1)), re = {
14
14
  key: 0,
15
15
  class: "flex relative scroll-timeline-x w-full"
16
- }, ie = /* @__PURE__ */ C(() => /* @__PURE__ */ h("div", { class: "fade-left" }, null, -1)), de = { class: "flex flex-1 gap-0.75 mr-1.5 items-center" }, re = /* @__PURE__ */ C(() => /* @__PURE__ */ h("div", { class: "fade-right" }, null, -1)), se = {
16
+ }, de = /* @__PURE__ */ D(() => /* @__PURE__ */ h("div", { class: "fade-left" }, null, -1)), ce = { class: "flex flex-1 gap-0.75 mr-1.5 items-center" }, pe = /* @__PURE__ */ D(() => /* @__PURE__ */ h("div", { class: "fade-right" }, null, -1)), me = {
17
17
  key: 1,
18
18
  class: "pl-2"
19
- }, Se = /* @__PURE__ */ j({
19
+ }, $ = "*sclrMulti*", Te = /* @__PURE__ */ K({
20
20
  __name: "RequestAuth",
21
21
  props: {
22
22
  title: {}
23
23
  },
24
24
  setup(S) {
25
25
  const {
26
- activeCollection: g,
27
- activeRequest: b,
28
- activeSecurityRequirements: q,
29
- activeSecuritySchemes: T,
30
- isReadOnly: $,
31
- requestMutators: F,
32
- securitySchemeMutators: D,
33
- securitySchemes: N
34
- } = G(), R = z(null), A = (l) => {
35
- switch (l == null ? void 0 : l.type) {
26
+ activeCollection: T,
27
+ activeRequest: k,
28
+ activeSecurityRequirements: O,
29
+ activeSecuritySchemes: R,
30
+ isReadOnly: w,
31
+ requestMutators: P,
32
+ securitySchemeMutators: N,
33
+ securitySchemes: U
34
+ } = Y(), B = L(null), I = (t) => {
35
+ switch (t == null ? void 0 : t.type) {
36
36
  case "apiKey":
37
- return `${W(l.in)}`;
37
+ return `${E(t.in)}`;
38
38
  case "http":
39
- return `${W(l.scheme)} Authentication`;
39
+ return `${E(t.scheme)} Authentication`;
40
40
  case "oauth2":
41
- return Y(l.flow.type);
41
+ return te(t.flow.type);
42
42
  case "openIdConnect":
43
43
  return "Open ID Connect";
44
44
  default:
45
45
  return "None";
46
46
  }
47
- }, M = I(
47
+ }, j = C(
48
48
  () => {
49
49
  var e;
50
- const l = (e = g.value) == null ? void 0 : e.securitySchemeDict, o = q.value.flatMap((r) => {
51
- const t = Object.keys(r);
52
- return t.length === 0 && $.value ? { id: "none", label: "None", labelWithoutId: "None" } : t.flatMap((m) => {
53
- if (!l) return [];
54
- const s = l[m], y = N[s], x = A(y);
50
+ const t = (e = T.value) == null ? void 0 : e.securitySchemeDict, l = O.value.flatMap((d) => {
51
+ const a = Object.keys(d);
52
+ if (a.length === 0 && w.value)
53
+ return { id: "none", label: "None" };
54
+ if (!t) return [];
55
+ if (a.length > 1) {
56
+ const p = a.map((r) => {
57
+ const x = t[r];
58
+ return U[x];
59
+ }), s = p.map((r) => r.nameKey).join(" & ");
60
+ return {
61
+ id: $ + p.map((r) => r.uid).join($),
62
+ label: s
63
+ };
64
+ }
65
+ return a.flatMap((p) => {
66
+ const s = t[p], r = U[s], x = I(r);
55
67
  return {
56
68
  id: s,
57
- label: `${x} (${m})`,
58
- labelWithoutId: x
69
+ label: x
59
70
  };
60
71
  });
61
72
  });
62
- if ($.value)
63
- return o;
73
+ if (w.value)
74
+ return l;
64
75
  {
65
- const r = b.value.securitySchemeUids.map((s) => {
66
- const y = N[s], x = A(y);
76
+ const d = k.value.securitySchemeUids.map((s) => {
77
+ const r = U[s], x = I(r);
67
78
  return {
68
79
  id: s,
69
- label: "name" in y && y.name.length ? `${x} (${y.name})` : x,
70
- labelWithoutId: x
80
+ label: "name" in r && r.name.length ? `${x} (${r.name})` : x
71
81
  };
72
- }), t = b.value.selectedSecuritySchemeUids, m = r.filter(
73
- (s) => t.includes(s.id)
82
+ }), a = k.value.selectedSecuritySchemeUids, p = d.filter(
83
+ (s) => a.includes(s.id)
74
84
  );
75
85
  return [
76
- { label: "Select auth", options: [...o, ...m] },
86
+ { label: "Select auth", options: [...l, ...p] },
77
87
  {
78
88
  label: "Add new auth",
79
- options: Z
89
+ options: le
80
90
  }
81
91
  ];
82
92
  }
83
93
  }
84
- ), d = I({
94
+ ), M = (t) => {
95
+ if (t.startsWith($)) {
96
+ const l = t.split($);
97
+ return l.shift(), l;
98
+ } else
99
+ return [t];
100
+ }, m = C({
85
101
  // Grab the selected OR first security scheme
86
- get: () => M.value.flatMap(
87
- (o) => "options" in o ? o.options : o
88
- ).filter(
89
- ({ id: o }) => {
90
- var e, r;
91
- return (r = (e = b.value) == null ? void 0 : e.selectedSecuritySchemeUids) == null ? void 0 : r.find(
92
- (t) => t === o
93
- );
94
- }
95
- ),
102
+ get: () => {
103
+ var l;
104
+ const t = new Set(
105
+ ((l = k.value) == null ? void 0 : l.selectedSecuritySchemeUids) || []
106
+ );
107
+ return j.value.flatMap(
108
+ (e) => "options" in e ? e.options : e
109
+ ).filter(
110
+ (e) => M(e.id).some((d) => t.has(d))
111
+ );
112
+ },
96
113
  // Update the selected auth per this request
97
- set: (l) => {
98
- var e, r, t, m;
99
- const o = l.find(
100
- (s) => ee[s.id]
114
+ set: (t) => {
115
+ var e, d, a, p;
116
+ const l = t.find(
117
+ (s) => ae[s.id]
101
118
  );
102
- o != null && o.payload && g.value ? ((m = (t = (r = (e = R.value) == null ? void 0 : e.comboboxPopoverRef) == null ? void 0 : r.popoverButtonRef) == null ? void 0 : t.el) == null || m.click(), D.add(
103
- o.payload,
104
- g.value.uid,
105
- b.value,
119
+ l != null && l.payload && T.value ? ((p = (a = (d = (e = B.value) == null ? void 0 : e.comboboxPopoverRef) == null ? void 0 : d.popoverButtonRef) == null ? void 0 : a.el) == null || p.click(), N.add(
120
+ l.payload,
121
+ T.value.uid,
122
+ k.value,
106
123
  !0
107
- )) : F.edit(
108
- b.value.uid,
124
+ )) : P.edit(
125
+ k.value.uid,
109
126
  "selectedSecuritySchemeUids",
110
- l.map((s) => s.id)
127
+ t.flatMap((s) => M(s.id))
111
128
  );
112
129
  }
113
- }), _ = (l, o, e) => D.edit(l.uid ?? "", o, e);
114
- I(() => d.value.length > 1 ? d.value.map(({ labelWithoutId: l }) => l).join(", ") : d.value.length ? d.value[0].label : "None");
115
- const P = (l) => {
116
- const o = d.value.filter(
117
- (e) => e.id !== l
130
+ }), W = C(
131
+ () => m.value.flatMap(({ id: t }) => M(t)).map((t) => {
132
+ const l = U[t];
133
+ return `${I(l)} (${l.nameKey})`;
134
+ })
135
+ ), y = (t, l, e) => N.edit(t.uid ?? "", l, e), H = (t) => {
136
+ const l = m.value.filter(
137
+ (e) => e.id !== t
118
138
  );
119
- d.value = o;
139
+ m.value = l;
120
140
  };
121
- return (l, o) => (i(), k(L, {
141
+ return (t, l) => (i(), b(X, {
122
142
  class: "group/params",
123
- itemCount: d.value.length
143
+ itemCount: m.value.length
124
144
  }, {
125
- title: a(() => [
126
- h("div", oe, U(l.title), 1)
145
+ title: o(() => [
146
+ h("div", ie, g(t.title), 1)
127
147
  ]),
128
- default: a(() => [
148
+ default: o(() => [
129
149
  h("form", null, [
130
- u(n(te), {
150
+ u(n(oe), {
131
151
  class: "flex-1",
132
152
  columns: [""]
133
153
  }, {
134
- default: a(() => [
135
- u(n(f), null, {
136
- default: a(() => [
137
- u(n(le), { class: "relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center" }, {
138
- default: a(() => [
139
- u(n(J), {
154
+ default: o(() => [
155
+ u(n(_), null, {
156
+ default: o(() => [
157
+ u(n(ue), { class: "relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center" }, {
158
+ default: o(() => [
159
+ u(n(Z), {
140
160
  ref_key: "comboboxRef",
141
- ref: R,
142
- modelValue: d.value,
143
- "onUpdate:modelValue": o[0] || (o[0] = (e) => d.value = e),
161
+ ref: B,
162
+ modelValue: m.value,
163
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => m.value = e),
144
164
  class: "text-xs w-full",
145
165
  fullWidth: "",
146
166
  multiple: "",
147
- options: M.value,
167
+ options: j.value,
148
168
  style: { "margin-left": "120px" },
149
169
  teleport: ""
150
170
  }, {
151
- default: a(() => [
152
- u(n(X), {
171
+ default: o(() => [
172
+ u(n(ee), {
153
173
  class: "h-auto py-0 px-0 text-c-2 hover:text-c-1 font-normal justify-start",
154
174
  fullWidth: "",
155
175
  variant: "ghost"
156
176
  }, {
157
- default: a(() => [
158
- ue,
159
- d.value.length ? (i(), c("div", ne, [
160
- ie,
161
- h("div", de, [
162
- (i(!0), c(v, null, B(d.value, (e) => (i(), c("span", {
177
+ default: o(() => [
178
+ se,
179
+ m.value.length ? (i(), c("div", re, [
180
+ de,
181
+ h("div", ce, [
182
+ (i(!0), c(v, null, q(m.value, (e) => (i(), c("span", {
163
183
  key: e.id,
164
184
  class: "cm-pill flex items-center mx-0 h-fit"
165
185
  }, [
166
- p(U(e.labelWithoutId) + " ", 1),
167
- u(n(O), {
186
+ f(g(e.label) + " ", 1),
187
+ u(n(F), {
168
188
  class: "ml-1 cursor-pointer text-c-3 hover:text-c-1",
169
189
  icon: "Close",
170
190
  size: "xs",
171
- onClick: E((r) => P(e.id), ["stop"])
191
+ onClick: z((d) => H(e.id), ["stop"])
172
192
  }, null, 8, ["onClick"])
173
193
  ]))), 128))
174
194
  ]),
175
- re
176
- ])) : (i(), c("div", se, " None ")),
177
- u(n(O), {
195
+ pe
196
+ ])) : (i(), c("div", me, " None ")),
197
+ u(n(F), {
178
198
  class: "min-w-3 ml-auto mr-2.5",
179
199
  icon: "ChevronDown",
180
200
  size: "xs"
@@ -191,123 +211,120 @@ const C = (S) => (H("data-v-24e41ef0"), S = S(), Q(), S), oe = { class: "flex ga
191
211
  ]),
192
212
  _: 1
193
213
  }),
194
- (i(!0), c(v, null, B(n(T), (e, r) => (i(), c(v, {
214
+ (i(!0), c(v, null, q(n(R), (e, d) => (i(), c(v, {
195
215
  key: e.uid
196
216
  }, [
197
- n(T).length > 1 ? (i(), k(n(f), {
217
+ n(R).length > 1 ? (i(), b(n(_), {
198
218
  key: 0,
199
219
  class: "group/delete"
200
220
  }, {
201
- default: a(() => [
202
- u(K, { class: "text-c-2 pl-2 text-xs font-medium flex items-center bg-b-2" }, {
203
- default: a(() => {
204
- var t;
205
- return [
206
- p(U((t = d.value[r]) == null ? void 0 : t.label), 1)
207
- ];
208
- }),
221
+ default: o(() => [
222
+ u(J, { class: "text-c-2 pl-2 text-xs font-medium flex items-center bg-b-2" }, {
223
+ default: o(() => [
224
+ f(g(W.value[d]), 1)
225
+ ]),
209
226
  _: 2
210
227
  }, 1024)
211
228
  ]),
212
229
  _: 2
213
- }, 1024)) : w("", !0),
230
+ }, 1024)) : A("", !0),
214
231
  e.type === "http" ? (i(), c(v, { key: 1 }, [
215
- e.scheme === "bearer" ? (i(), k(n(f), { key: 0 }, {
216
- default: a(() => [
232
+ e.scheme === "bearer" ? (i(), b(n(_), { key: 0 }, {
233
+ default: o(() => [
217
234
  u(V, {
218
235
  id: `http-bearer-token-${e.uid}`,
219
236
  modelValue: e.value,
220
237
  placeholder: "Token",
221
238
  type: "password",
222
- "onUpdate:modelValue": (t) => _(e, "value", t)
239
+ "onUpdate:modelValue": (a) => y(e, "value", a)
223
240
  }, {
224
- default: a(() => [
225
- p(" Bearer Token ")
241
+ default: o(() => [
242
+ f(" Bearer Token ")
226
243
  ]),
227
244
  _: 2
228
245
  }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
229
246
  ]),
230
247
  _: 2
231
248
  }, 1024)) : e.scheme === "basic" ? (i(), c(v, { key: 1 }, [
232
- u(n(f), null, {
233
- default: a(() => [
249
+ u(n(_), null, {
250
+ default: o(() => [
234
251
  u(V, {
235
252
  id: `http-basic-username-${e.uid}`,
236
253
  class: "text-c-2",
237
254
  modelValue: e.value,
238
255
  placeholder: "ScalarEnjoyer01",
239
256
  required: "",
240
- "onUpdate:modelValue": (t) => _(e, "value", t)
257
+ "onUpdate:modelValue": (a) => y(e, "value", a)
241
258
  }, {
242
- default: a(() => [
243
- p(" Username ")
259
+ default: o(() => [
260
+ f(" Username ")
244
261
  ]),
245
262
  _: 2
246
263
  }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
247
264
  ]),
248
265
  _: 2
249
266
  }, 1024),
250
- u(n(f), null, {
251
- default: a(() => [
267
+ u(n(_), null, {
268
+ default: o(() => [
252
269
  u(V, {
253
270
  id: `http-basic-password-${e.uid}`,
254
271
  modelValue: e.secondValue,
255
272
  placeholder: "xxxxxx",
256
273
  type: "password",
257
- "onUpdate:modelValue": (t) => _(e, "secondValue", t)
274
+ "onUpdate:modelValue": (a) => y(e, "secondValue", a)
258
275
  }, {
259
- default: a(() => [
260
- p(" Password ")
276
+ default: o(() => [
277
+ f(" Password ")
261
278
  ]),
262
279
  _: 2
263
280
  }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
264
281
  ]),
265
282
  _: 2
266
283
  }, 1024)
267
- ], 64)) : w("", !0)
284
+ ], 64)) : A("", !0)
268
285
  ], 64)) : e.type === "apiKey" ? (i(), c(v, { key: 2 }, [
269
- n($) ? (i(), k(n(f), { key: 1 }, {
270
- default: a(() => [
286
+ n(w) ? (i(), b(n(_), { key: 1 }, {
287
+ default: o(() => [
271
288
  u(V, {
272
289
  id: `api-key-value-${e.uid}`,
273
290
  modelValue: e.value,
274
291
  placeholder: "Value",
275
- "onUpdate:modelValue": (t) => _(e, "value", t)
292
+ "onUpdate:modelValue": (a) => y(e, "value", a)
276
293
  }, {
277
- default: a(() => [
278
- p(U(e.name), 1)
294
+ default: o(() => [
295
+ f(g(e.name), 1)
279
296
  ]),
280
297
  _: 2
281
298
  }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
282
299
  ]),
283
300
  _: 2
284
301
  }, 1024)) : (i(), c(v, { key: 0 }, [
285
- u(n(f), null, {
286
- default: a(() => [
302
+ u(n(_), null, {
303
+ default: o(() => [
287
304
  u(V, {
288
305
  id: `api-key-name-${e.uid}`,
289
306
  modelValue: e.name,
290
307
  placeholder: "api-key",
291
- "onUpdate:modelValue": (t) => _(e, "name", t)
308
+ "onUpdate:modelValue": (a) => y(e, "name", a)
292
309
  }, {
293
- default: a(() => [
294
- p(" Name ")
310
+ default: o(() => [
311
+ f(" Name ")
295
312
  ]),
296
313
  _: 2
297
314
  }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
298
315
  ]),
299
316
  _: 2
300
317
  }, 1024),
301
- u(n(f), null, {
302
- default: a(() => [
318
+ u(n(_), null, {
319
+ default: o(() => [
303
320
  u(V, {
304
321
  id: `api-key-value-add-${e.uid}`,
305
322
  modelValue: e.value,
306
323
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
307
- "onUpdate:modelValue": (t) => _(e, "value", t)
324
+ "onUpdate:modelValue": (a) => y(e, "value", a)
308
325
  }, {
309
- default: a(() => [
310
- p(" Value ")
326
+ default: o(() => [
327
+ f(" Value ")
311
328
  ]),
312
329
  _: 2
313
330
  }, 1032, ["id", "modelValue", "onUpdate:modelValue"])
@@ -315,10 +332,10 @@ const C = (S) => (H("data-v-24e41ef0"), S = S(), Q(), S), oe = { class: "flex ga
315
332
  _: 2
316
333
  }, 1024)
317
334
  ], 64))
318
- ], 64)) : e.type === "oauth2" ? (i(), k(n(ae), {
335
+ ], 64)) : e.type === "oauth2" ? (i(), b(n(ne), {
319
336
  key: 3,
320
337
  scheme: e
321
- }, null, 8, ["scheme"])) : w("", !0)
338
+ }, null, 8, ["scheme"])) : A("", !0)
322
339
  ], 64))), 128))
323
340
  ]),
324
341
  _: 1
@@ -330,5 +347,5 @@ const C = (S) => (H("data-v-24e41ef0"), S = S(), Q(), S), oe = { class: "flex ga
330
347
  }
331
348
  });
332
349
  export {
333
- Se as default
350
+ Te as default
334
351
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA+TA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;AAgKlD,iBAAS,cAAc;gBA7HT,IAAI;;gBAAJ,IAAI;EA0cjB;AACD,QAAA,MAAM,eAAe;I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I,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import o from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-481dd9cc"]]);
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-846321e2"]]);
6
6
  export {
7
7
  a as default
8
8
  };