@scalar/api-client 2.0.39 → 2.0.41

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