@scalar/api-client 2.0.39 → 2.0.40

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 (54) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  3. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  4. package/dist/layouts/App/create-api-client-app.d.ts +20 -20
  5. package/dist/layouts/Modal/create-api-client-modal.d.ts +40 -40
  6. package/dist/libs/create-client.d.ts +20 -20
  7. package/dist/libs/sendRequest.d.ts.map +1 -1
  8. package/dist/libs/sendRequest.js +87 -70
  9. package/dist/store/workspace.d.ts +64 -64
  10. package/dist/store/workspace.d.ts.map +1 -1
  11. package/dist/store/workspace.js +129 -132
  12. package/dist/style.css +1 -1
  13. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  14. package/dist/views/Request/Request.vue.js +2 -2
  15. package/dist/views/Request/Request.vue2.js +196 -142
  16. package/dist/views/Request/RequestSidebarItem.vue.d.ts +4 -4
  17. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  18. package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
  19. package/dist/views/Request/RequestSidebarItem.vue2.js +105 -92
  20. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  21. package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
  22. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +44 -44
  23. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +3 -17
  24. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  25. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +89 -5
  26. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +2 -37
  27. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts +18 -0
  28. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -0
  29. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +34 -0
  30. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue2.js +4 -0
  31. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts +12 -0
  32. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.d.ts.map +1 -0
  33. package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +14 -0
  34. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts +23 -0
  35. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -0
  36. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +7 -0
  37. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +65 -0
  38. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts +19 -0
  39. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -0
  40. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +7 -0
  41. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +29 -0
  42. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts +20 -0
  43. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.d.ts.map +1 -0
  44. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +25 -0
  45. package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue2.js +4 -0
  46. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  47. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +61 -63
  48. package/dist/views/Request/consts/index.d.ts +2 -0
  49. package/dist/views/Request/consts/index.d.ts.map +1 -1
  50. package/dist/views/Request/consts/index.js +6 -3
  51. package/dist/views/Request/consts/mediaTypes.d.ts +16 -0
  52. package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -0
  53. package/dist/views/Request/consts/mediaTypes.js +108 -0
  54. package/package.json +8 -6
@@ -1,219 +1,273 @@
1
- import { defineComponent as P, ref as A, onMounted as H, onBeforeUnmount as J, openBlock as f, createElementBlock as y, Fragment as O, createElementVNode as m, normalizeClass as x, createVNode as r, unref as e, createCommentVNode as _, withCtx as u, withDirectives as K, createSlots as Q, withModifiers as D, renderList as G, createBlock as w, createTextVNode as X, vShow as Y, pushScopeId as Z, popScopeId as ee } from "vue";
2
- import te from "../../components/AddressBar/AddressBar.vue.js";
3
- import oe from "../../components/Search/SearchButton.vue.js";
4
- import re from "../../components/Search/SearchModal.vue.js";
5
- import se from "../../components/Sidebar/SidebarButton.vue.js";
6
- import ae from "../../components/Sidebar/SidebarToggle.vue.js";
7
- import le from "../../components/ViewLayout/ViewLayout.vue.js";
8
- import ne from "../../components/ViewLayout/ViewLayoutContent.vue.js";
9
- import { commandPaletteBus as E } from "../../libs/eventBusses/command-palette.js";
10
- import { useWorkspace as ie } from "../../store/workspace.js";
11
- import ce from "./RequestSection/RequestSection.vue.js";
1
+ import { defineComponent as te, ref as oe, watch as re, onMounted as se, onBeforeUnmount as ie, openBlock as x, createElementBlock as S, Fragment as V, createElementVNode as h, normalizeClass as y, createVNode as n, unref as l, createCommentVNode as U, withCtx as v, withDirectives as le, createSlots as ae, withModifiers as $, renderList as ne, createBlock as C, createTextVNode as de, vShow as ce, pushScopeId as ue, popScopeId as me } from "vue";
2
+ import fe from "../../components/AddressBar/AddressBar.vue.js";
3
+ import pe from "../../components/Search/SearchButton.vue.js";
4
+ import ve from "../../components/Search/SearchModal.vue.js";
5
+ import he from "../../components/Sidebar/SidebarButton.vue.js";
6
+ import xe from "../../components/Sidebar/SidebarToggle.vue.js";
7
+ import be from "../../components/ViewLayout/ViewLayout.vue.js";
8
+ import ge from "../../components/ViewLayout/ViewLayoutContent.vue.js";
9
+ import { commandPaletteBus as N } from "../../libs/eventBusses/command-palette.js";
10
+ import { useWorkspace as _e } from "../../store/workspace.js";
11
+ import we from "./RequestSection/RequestSection.vue.js";
12
12
  /* empty css */
13
- import ue from "./ResponseSection/ResponseSection.vue.js";
14
- import { useModal as me, ScalarIcon as k } from "@scalar/components";
15
- import { REQUEST_METHODS as de } from "@scalar/oas-utils/helpers";
16
- import { isMacOS as q } from "@scalar/use-tooltip";
17
- import { useMagicKeys as pe, useEventListener as fe } from "@vueuse/core";
18
- import ve from "./RequestSidebarItem.vue.js";
19
- import ge from "../../components/Sidebar/Sidebar.vue.js";
13
+ import ye from "./ResponseSection/ResponseSection.vue.js";
14
+ import { useModal as ke, ScalarIcon as R } from "@scalar/components";
15
+ import { REQUEST_METHODS as Se } from "@scalar/oas-utils/helpers";
16
+ import { isMacOS as F } from "@scalar/use-tooltip";
17
+ import { useMagicKeys as Ue, useEventListener as Ce } from "@vueuse/core";
18
+ import Re from "./RequestSidebarItem.vue.js";
19
+ import De from "../../components/Sidebar/Sidebar.vue.js";
20
20
  /* empty css */
21
- import he from "./components/WorkspaceDropdown.vue.js";
22
- import { useSidebar as be } from "../../hooks/useSidebar.js";
23
- import { sendRequest as xe } from "../../libs/sendRequest.js";
24
- import { executeRequestBus as B } from "../../libs/eventBusses/executeRequestBus.js";
25
- const ye = (g) => (Z("data-v-1eb6d142"), g = g(), ee(), g), _e = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container" }, we = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, ke = /* @__PURE__ */ ye(() => /* @__PURE__ */ m("a", {
21
+ import Me from "./components/WorkspaceDropdown.vue.js";
22
+ import { useSidebar as Oe } from "../../hooks/useSidebar.js";
23
+ import { sendRequest as Ee } from "../../libs/sendRequest.js";
24
+ import { executeRequestBus as P } from "../../libs/eventBusses/executeRequestBus.js";
25
+ const qe = (g) => (ue("data-v-a88db4d1"), g = g(), me(), g), Be = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container" }, Ie = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, Ve = /* @__PURE__ */ qe(() => /* @__PURE__ */ h("a", {
26
26
  class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
27
27
  href: "https://scalar.com/",
28
28
  target: "_blank"
29
- }, " Powered by Scalar.com ", -1)), Se = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, Qe = /* @__PURE__ */ P({
29
+ }, " Powered by Scalar.com ", -1)), $e = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, at = /* @__PURE__ */ te({
30
30
  __name: "Request",
31
31
  setup(g) {
32
- var R;
32
+ var I;
33
33
  const {
34
- activeExample: h,
35
- activeRequest: l,
36
- activeSecuritySchemes: M,
37
- activeWorkspaceServers: I,
38
- activeWorkspace: n,
39
- environments: V,
40
- requestMutators: $,
41
- activeWorkspaceCollections: N,
42
- modalState: U,
43
- cookies: z
44
- } = ie(), { collapsedSidebarFolders: L } = be(), S = me(), i = A(!((R = n.value) != null && R.isReadOnly)), C = async () => {
45
- var v;
46
- if (!l.value || !h.value) {
34
+ activeExample: _,
35
+ activeRequest: u,
36
+ activeSecuritySchemes: z,
37
+ activeWorkspace: a,
38
+ activeWorkspaceCollections: L,
39
+ activeWorkspaceServers: T,
40
+ collectionMutators: D,
41
+ collections: m,
42
+ cookies: W,
43
+ environments: j,
44
+ findRequestFolders: A,
45
+ folders: b,
46
+ folderMutators: M,
47
+ modalState: H,
48
+ requestMutators: J,
49
+ workspaceMutators: O
50
+ } = _e(), { collapsedSidebarFolders: K, setCollapsedSidebarFolder: Q } = Oe(), E = ke(), f = oe(!((I = a.value) != null && I.isReadOnly));
51
+ re(
52
+ u,
53
+ (e) => {
54
+ e && A(e.uid).forEach(
55
+ (t) => Q(t, !0)
56
+ );
57
+ },
58
+ { immediate: !0 }
59
+ );
60
+ const q = async () => {
61
+ var d;
62
+ if (!u.value || !_.value) {
47
63
  console.warn(
48
64
  "There is no request active at the moment. Please select one then try again."
49
65
  );
50
66
  return;
51
67
  }
52
- let s = h.value.url;
53
- const o = Object.values(V).reduce(
54
- (d, p) => {
68
+ let e = _.value.url;
69
+ const t = Object.values(j).reduce(
70
+ (c, s) => {
55
71
  try {
56
- return { ...d, ...JSON.parse(p.raw) };
72
+ return { ...c, ...JSON.parse(s.raw) };
57
73
  } catch {
58
- return d;
74
+ return c;
59
75
  }
60
76
  },
61
77
  {}
62
- ), t = /\{\{(.*?)\}\}/g;
63
- s = s.replace(t, (d, p) => (I.value.forEach((F) => {
64
- if (F.url === p)
65
- return p;
66
- }), o[p] || p));
67
- const { request: a, response: c } = await xe(
68
- l.value,
69
- h.value,
70
- s,
71
- M.value,
72
- (v = n.value) == null ? void 0 : v.proxyUrl,
73
- z
78
+ ), o = /\{\{(.*?)\}\}/g;
79
+ e = e.replace(o, (c, s) => (T.value.forEach((p) => {
80
+ if (p.url === s)
81
+ return s;
82
+ }), t[s] || s));
83
+ const { request: r, response: i } = await Ee(
84
+ u.value,
85
+ _.value,
86
+ e,
87
+ z.value,
88
+ (d = a.value) == null ? void 0 : d.proxyUrl,
89
+ W
74
90
  );
75
- a && c ? $.edit(l.value.uid, "history", [
76
- ...l.value.history,
91
+ r && i ? J.edit(u.value.uid, "history", [
92
+ ...u.value.history,
77
93
  {
78
- request: a,
79
- response: c,
94
+ request: r,
95
+ response: i,
80
96
  timestamp: Date.now()
81
97
  }
82
98
  ]) : console.warn("No response or request was returned");
83
99
  };
84
- H(() => B.on(C)), J(() => B.off(C));
85
- const T = (s, o, t, a) => {
86
- }, W = () => E.emit(), b = pe();
87
- fe(document, "keydown", (s) => {
88
- (q() ? b.meta.value : b.ctrl.value) && s.key === "b" && (i.value = !i.value), !n.value.isReadOnly && (q() ? b.meta.value : b.ctrl.value) && s.key === "k" && E.emit();
100
+ se(() => P.on(q)), ie(() => P.off(q));
101
+ const B = (e, t) => {
102
+ m[e] ? D.edit(e, "childUids", t) : b[e] && M.edit(e, "childUids", t);
103
+ }, G = (e, t) => {
104
+ if (!e || !t) return;
105
+ const { id: o, parentId: r } = e, { id: i, parentId: d, offset: c } = t;
106
+ if (r ? m[r] ? D.edit(
107
+ r,
108
+ "childUids",
109
+ m[r].childUids.filter(
110
+ (s) => s !== o
111
+ )
112
+ ) : b[r] && M.edit(
113
+ r,
114
+ "childUids",
115
+ b[r].childUids.filter((s) => s !== o)
116
+ ) : O.edit(
117
+ a.value.uid,
118
+ "collectionUids",
119
+ a.value.collectionUids.filter((s) => s !== o)
120
+ ), c === 2) {
121
+ const s = m[i] || b[i];
122
+ B(i, [...s.childUids, o]);
123
+ } else if (d) {
124
+ const p = [...(m[d] || b[d]).childUids], k = p.findIndex((ee) => i === ee) ?? 0;
125
+ p.splice(k + c, 0, o), B(d, p);
126
+ } else {
127
+ const s = [...a.value.collectionUids], p = s.findIndex((k) => i === k) ?? 0;
128
+ s.splice(p + c, 0, o), O.edit(
129
+ a.value.uid,
130
+ "collectionUids",
131
+ s
132
+ );
133
+ }
134
+ }, X = () => N.emit(), w = Ue();
135
+ Ce(document, "keydown", (e) => {
136
+ (F() ? w.meta.value : w.ctrl.value) && e.key === "b" && (f.value = !f.value), !a.value.isReadOnly && (F() ? w.meta.value : w.ctrl.value) && e.key === "k" && N.emit();
89
137
  });
90
- const j = () => {
91
- if (!l.value) return "";
92
- const { method: s } = l.value;
93
- return de[s].backgroundColor;
138
+ const Y = () => {
139
+ if (!u.value) return "";
140
+ const { method: e } = u.value;
141
+ return Se[e].backgroundColor;
142
+ }, Z = (e, t) => {
143
+ var o, r, i;
144
+ return !(a.value.isReadOnly || !m[e.id] && t.offset !== 2 || m[e.id] && ((i = (r = (o = m[t.id]) == null ? void 0 : o.spec) == null ? void 0 : r.info) == null ? void 0 : i.title) === "Drafts");
94
145
  };
95
- return (s, o) => (f(), y(O, null, [
96
- m("div", {
97
- class: x(["flex flex-1 flex-col rounded rounded-b-none rounded-r-none pt-0 h-full client-wrapper-bg-color relative", j()])
146
+ return (e, t) => (x(), S(V, null, [
147
+ h("div", {
148
+ class: y(["flex flex-1 flex-col rounded rounded-b-none rounded-r-none pt-0 h-full client-wrapper-bg-color relative", Y()])
98
149
  }, [
99
- m("div", _e, [
100
- m("div", we, [
101
- r(ae, {
102
- modelValue: i.value,
103
- "onUpdate:modelValue": o[0] || (o[0] = (t) => i.value = t),
150
+ h("div", Be, [
151
+ h("div", Ie, [
152
+ n(xe, {
153
+ modelValue: f.value,
154
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => f.value = o),
104
155
  class: "gitbook-hidden"
105
156
  }, null, 8, ["modelValue"]),
106
- ke
157
+ Ve
107
158
  ]),
108
- r(te),
109
- m("div", Se, [
110
- e(n).isReadOnly ? (f(), y("button", {
159
+ n(fe),
160
+ h("div", $e, [
161
+ l(a).isReadOnly ? (x(), S("button", {
111
162
  key: 0,
112
163
  class: "text-c-3 hover:bg-b-3 active:text-c-1 p-2 rounded",
113
164
  type: "button",
114
- onClick: o[1] || (o[1] = (t) => e(U).hide())
165
+ onClick: t[1] || (t[1] = (o) => l(H).hide())
115
166
  }, [
116
- r(e(k), {
167
+ n(l(R), {
117
168
  icon: "Close",
118
169
  size: "lg",
119
170
  thickness: "1.75"
120
171
  })
121
- ])) : _("", !0)
172
+ ])) : U("", !0)
122
173
  ])
123
174
  ]),
124
- r(le, null, {
125
- default: u(() => [
126
- K(r(e(ge), {
127
- class: x([i.value ? "sidebar-active-width" : ""])
128
- }, Q({
129
- content: u(() => [
130
- r(oe, {
131
- onOpenSearchModal: o[2] || (o[2] = (t) => e(S).show())
175
+ n(be, null, {
176
+ default: v(() => [
177
+ le(n(l(De), {
178
+ class: y([f.value ? "sidebar-active-width" : ""])
179
+ }, ae({
180
+ content: v(() => [
181
+ n(pe, {
182
+ onOpenSearchModal: t[2] || (t[2] = (o) => l(E).show())
132
183
  }),
133
- m("div", {
184
+ h("div", {
134
185
  class: "custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-12 pt-2.5",
135
- onDragenter: o[3] || (o[3] = D(() => {
186
+ onDragenter: t[3] || (t[3] = $(() => {
136
187
  }, ["prevent"])),
137
- onDragover: o[4] || (o[4] = D(() => {
188
+ onDragover: t[4] || (t[4] = $(() => {
138
189
  }, ["prevent"]))
139
190
  }, [
140
- (f(!0), y(O, null, G(e(N), (t, a) => (f(), w(ve, {
141
- key: t.uid,
142
- isDraggable: !e(n).isReadOnly,
143
- isDroppable: !e(n).isReadOnly,
144
- item: t,
145
- parentUids: [],
146
- onOnDragEnd: (...c) => T(t, a, ...c)
147
- }, {
148
- leftIcon: u(() => [
149
- r(e(k), {
150
- class: "text-sidebar-c-2 text-sm group-hover:hidden",
151
- icon: "CodeFolder",
152
- size: "sm",
153
- thickness: "2"
154
- }),
155
- m("div", {
156
- class: x({
157
- "rotate-90": e(L)[t.uid]
158
- })
159
- }, [
160
- r(e(k), {
161
- class: "text-c-3 hidden text-sm group-hover:block",
162
- icon: "ChevronRight",
163
- size: "sm"
164
- })
165
- ], 2)
166
- ]),
167
- _: 2
168
- }, 1032, ["isDraggable", "isDroppable", "item", "onOnDragEnd"]))), 128))
191
+ (x(!0), S(V, null, ne(l(L), (o) => {
192
+ var r, i;
193
+ return x(), C(Re, {
194
+ key: o.uid,
195
+ isDraggable: !l(a).isReadOnly && ((i = (r = o.spec) == null ? void 0 : r.info) == null ? void 0 : i.title) !== "Drafts",
196
+ isDroppable: Z,
197
+ item: o,
198
+ parentUids: [],
199
+ onOnDragEnd: G
200
+ }, {
201
+ leftIcon: v(() => [
202
+ n(l(R), {
203
+ class: "text-sidebar-c-2 text-sm group-hover:hidden",
204
+ icon: "CodeFolder",
205
+ size: "sm",
206
+ thickness: "2"
207
+ }),
208
+ h("div", {
209
+ class: y({
210
+ "rotate-90": l(K)[o.uid]
211
+ })
212
+ }, [
213
+ n(l(R), {
214
+ class: "text-c-3 hidden text-sm group-hover:block",
215
+ icon: "ChevronRight",
216
+ size: "sm"
217
+ })
218
+ ], 2)
219
+ ]),
220
+ _: 2
221
+ }, 1032, ["isDraggable", "item"]);
222
+ }), 128))
169
223
  ], 32)
170
224
  ]),
171
- button: u(() => [
172
- e(n).isReadOnly ? _("", !0) : (f(), w(se, {
225
+ button: v(() => [
226
+ l(a).isReadOnly ? U("", !0) : (x(), C(he, {
173
227
  key: 0,
174
- click: W
228
+ click: X
175
229
  }, {
176
- title: u(() => [
177
- X("Add Item")
230
+ title: v(() => [
231
+ de("Add Item")
178
232
  ]),
179
233
  _: 1
180
234
  }))
181
235
  ]),
182
236
  _: 2
183
237
  }, [
184
- e(n).isReadOnly ? void 0 : {
238
+ l(a).isReadOnly ? void 0 : {
185
239
  name: "header",
186
- fn: u(() => [
187
- r(e(he))
240
+ fn: v(() => [
241
+ n(l(Me))
188
242
  ]),
189
243
  key: "0"
190
244
  }
191
245
  ]), 1032, ["class"]), [
192
- [Y, i.value]
246
+ [ce, f.value]
193
247
  ]),
194
- e(h) ? (f(), w(ne, {
248
+ l(_) ? (x(), C(ge, {
195
249
  key: 0,
196
- class: x(["flex-1", [i.value ? "sidebar-active-hide-layout" : ""]])
250
+ class: y(["flex-1", [f.value ? "sidebar-active-hide-layout" : ""]])
197
251
  }, {
198
- default: u(() => {
199
- var t, a, c, v, d;
252
+ default: v(() => {
253
+ var o, r, i, d, c;
200
254
  return [
201
- r(ce),
202
- r(ue, {
203
- response: (d = (v = (t = e(l)) == null ? void 0 : t.history) == null ? void 0 : v[((c = (a = e(l)) == null ? void 0 : a.history) == null ? void 0 : c.length) - 1]) == null ? void 0 : d.response
255
+ n(we),
256
+ n(ye, {
257
+ response: (c = (d = (o = l(u)) == null ? void 0 : o.history) == null ? void 0 : d[((i = (r = l(u)) == null ? void 0 : r.history) == null ? void 0 : i.length) - 1]) == null ? void 0 : c.response
204
258
  }, null, 8, ["response"])
205
259
  ];
206
260
  }),
207
261
  _: 1
208
- }, 8, ["class"])) : _("", !0)
262
+ }, 8, ["class"])) : U("", !0)
209
263
  ]),
210
264
  _: 1
211
265
  })
212
266
  ], 2),
213
- r(re, { modalState: e(S) }, null, 8, ["modalState"])
267
+ n(ve, { modalState: l(E) }, null, 8, ["modalState"])
214
268
  ], 64));
215
269
  }
216
270
  });
217
271
  export {
218
- Qe as default
272
+ at as default
219
273
  };
@@ -1,4 +1,4 @@
1
- import { type DraggingItem, type HoveredItem } from '@scalar/draggable';
1
+ import { type DraggableProps, type DraggingItem, type HoveredItem } from '@scalar/draggable';
2
2
  import type { Collection } from '@scalar/oas-utils/entities/workspace/collection';
3
3
  import type { Folder } from '@scalar/oas-utils/entities/workspace/folder';
4
4
  import type { Request, RequestExample } from '@scalar/oas-utils/entities/workspace/spec';
@@ -19,7 +19,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
19
19
  *
20
20
  * @default false
21
21
  */
22
- isDroppable?: boolean;
22
+ isDroppable?: DraggableProps["isDroppable"];
23
23
  /** Both inidicate the level and provide a way to traverse upwards */
24
24
  parentUids: string[];
25
25
  item: Collection | Folder | Request | RequestExample;
@@ -41,7 +41,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
41
41
  *
42
42
  * @default false
43
43
  */
44
- isDroppable?: boolean;
44
+ isDroppable?: DraggableProps["isDroppable"];
45
45
  /** Both inidicate the level and provide a way to traverse upwards */
46
46
  parentUids: string[];
47
47
  item: Collection | Folder | Request | RequestExample;
@@ -52,8 +52,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
52
52
  }>>> & {
53
53
  onOnDragEnd?: ((draggingItem: DraggingItem, hoveredItem: HoveredItem) => any) | undefined;
54
54
  }, {
55
+ isDroppable: boolean | ((draggingItem: DraggingItem, hoveredItem: HoveredItem) => boolean);
55
56
  isDraggable: boolean;
56
- isDroppable: boolean;
57
57
  }, {}>;
58
58
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
59
59
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","source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AAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import e from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-ec2878eb"]]);
4
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
5
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0285aba2"]]);
6
6
  export {
7
- a as default
7
+ p as default
8
8
  };