@scalar/api-client 2.2.28 → 2.2.29
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.
- package/CHANGELOG.md +17 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +1 -1
- package/dist/components/DataTable/DataTableInput.vue2.js +31 -32
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +4 -4
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +2 -0
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +39 -28
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +49 -43
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +56 -51
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +3 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +0 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +38 -41
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +6 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +154 -44
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +53 -192
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +84 -88
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -2
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +2 -2
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +89 -90
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +8 -8
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as ce, useId as pe, reactive as me,
|
|
1
|
+
import { defineComponent as ce, useId as pe, reactive as me, ref as fe, watch as B, onMounted as be, onBeforeUnmount as ve, computed as he, openBlock as r, createElementBlock as g, Fragment as O, withDirectives as F, createVNode as p, unref as t, normalizeClass as f, createSlots as Se, withCtx as c, createElementVNode as n, createBlock as u, createCommentVNode as b, isRef as ke, withKeys as $, withModifiers as v, vShow as K, renderList as N, createTextVNode as D, toDisplayString as ge, nextTick as Re } from "vue";
|
|
2
2
|
import ye from "../../assets/rabbit.ascii.js";
|
|
3
3
|
import xe from "../../assets/rabbitjump.ascii.js";
|
|
4
4
|
import we from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
|
|
5
5
|
import Ie from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
6
6
|
import L from "../../components/ScalarAsciiArt.vue.js";
|
|
7
7
|
import { useSearch as Ce } from "../../components/Search/useSearch.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import Oe from "../../components/Sidebar/SidebarButton.vue.js";
|
|
9
|
+
import $e from "../../components/Sidebar/SidebarToggle.vue.js";
|
|
10
10
|
import { useActiveEntities as De } from "../../store/active-entities.js";
|
|
11
11
|
import { createInitialRequest as qe } from "../../store/requests.js";
|
|
12
12
|
import Me from "./RequestSidebarItemMenu.vue.js";
|
|
13
13
|
import { dragHandlerFactory as Ve } from "./handle-drag.js";
|
|
14
|
-
import { ScalarIcon as q, ScalarSearchInput as Te, ScalarSearchResultList as Pe, ScalarSearchResultItem as Ee, ScalarButton as
|
|
15
|
-
import { LibraryIcon as
|
|
16
|
-
import { useToasts as
|
|
17
|
-
import { useRouter as
|
|
14
|
+
import { ScalarIcon as q, ScalarSearchInput as Te, ScalarSearchResultList as Pe, ScalarSearchResultItem as Ee, ScalarButton as We } from "@scalar/components";
|
|
15
|
+
import { LibraryIcon as ze } from "@scalar/icons";
|
|
16
|
+
import { useToasts as Ae } from "@scalar/use-toasts";
|
|
17
|
+
import { useRouter as Be } from "vue-router";
|
|
18
18
|
import Fe from "./RequestSidebarItem.vue.js";
|
|
19
19
|
import Ke from "../../components/Sidebar/Sidebar.vue.js";
|
|
20
20
|
import Ne from "./components/WorkspaceDropdown.vue.js";
|
|
@@ -38,19 +38,19 @@ const je = { class: "flex items-center h-[48px] px-3 top-0 bg-b-1 sticky z-20" }
|
|
|
38
38
|
emits: ["update:modelValue", "update:isSidebarOpen", "newTab", "clearDrafts"],
|
|
39
39
|
setup(U, { emit: H }) {
|
|
40
40
|
const j = U, M = H, { layout: G } = Le(), V = Ue(), {
|
|
41
|
-
activeWorkspaceCollections:
|
|
41
|
+
activeWorkspaceCollections: m,
|
|
42
42
|
activeRequest: J,
|
|
43
43
|
activeWorkspaceRequests: y,
|
|
44
44
|
activeWorkspace: x
|
|
45
45
|
} = De(), { findRequestParents: Q, isReadOnly: l, events: R, requestMutators: T, requests: P } = V, { handleDragEnd: X, isDroppable: Y } = Ve(
|
|
46
46
|
x,
|
|
47
47
|
V
|
|
48
|
-
), { collapsedSidebarFolders: Z, setCollapsedSidebarFolder: _ } = He(), { replace: E } =
|
|
48
|
+
), { collapsedSidebarFolders: Z, setCollapsedSidebarFolder: _ } = He(), { replace: E } = Be(), ee = () => {
|
|
49
49
|
R.commandPalette.emit({
|
|
50
50
|
commandName: "Import from OpenAPI/Swagger/Postman"
|
|
51
51
|
});
|
|
52
|
-
},
|
|
53
|
-
|
|
52
|
+
}, W = pe(), { toast: te } = Ae(), h = me({ open: !1 }), S = fe(!1);
|
|
53
|
+
B(
|
|
54
54
|
J,
|
|
55
55
|
(s) => {
|
|
56
56
|
s && Q(s).forEach(
|
|
@@ -60,38 +60,38 @@ const je = { class: "flex items-center h-[48px] px-3 top-0 bg-b-1 sticky z-20" }
|
|
|
60
60
|
{ immediate: !0 }
|
|
61
61
|
);
|
|
62
62
|
const {
|
|
63
|
-
searchText:
|
|
63
|
+
searchText: k,
|
|
64
64
|
searchResultsWithPlaceholderResults: w,
|
|
65
65
|
selectedSearchResult: I,
|
|
66
66
|
onSearchResultClick: se,
|
|
67
67
|
fuseSearch: oe,
|
|
68
68
|
searchInputRef: C,
|
|
69
69
|
searchResultRefs: ae,
|
|
70
|
-
navigateSearchResults:
|
|
70
|
+
navigateSearchResults: z,
|
|
71
71
|
selectSearchResult: re
|
|
72
|
-
} = Ce(),
|
|
72
|
+
} = Ce(), A = (s) => {
|
|
73
73
|
var e;
|
|
74
74
|
s && (s.toggleSidebar && M("update:isSidebarOpen", j.isSidebarOpen), s.focusRequestSearch && ((e = C.value) == null || e.focus()));
|
|
75
75
|
};
|
|
76
|
-
|
|
77
|
-
R.hotKeys.off(
|
|
76
|
+
be(() => R.hotKeys.on(A)), ve(() => {
|
|
77
|
+
R.hotKeys.off(A);
|
|
78
78
|
});
|
|
79
|
-
const
|
|
79
|
+
const ie = (s) => {
|
|
80
80
|
if (s != null && s.documentUrl) {
|
|
81
81
|
s.watchMode = !s.watchMode;
|
|
82
|
-
const e =
|
|
82
|
+
const e = m.value.find(
|
|
83
83
|
(o) => o.uid === s.entity.uid
|
|
84
84
|
);
|
|
85
85
|
e && (e.watchMode = s.watchMode);
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
|
-
|
|
89
|
-
() =>
|
|
88
|
+
B(
|
|
89
|
+
() => m.value.map((s) => s.watchMode),
|
|
90
90
|
(s, e) => {
|
|
91
|
-
s.forEach((o,
|
|
91
|
+
s.forEach((o, i) => {
|
|
92
92
|
var a;
|
|
93
|
-
if (!l && o !== e[
|
|
94
|
-
const d =
|
|
93
|
+
if (!l && o !== e[i]) {
|
|
94
|
+
const d = m.value[i];
|
|
95
95
|
if (!d) return;
|
|
96
96
|
const ue = `${(a = d.info) == null ? void 0 : a.title}: Watch Mode ${o ? "enabled" : "disabled"}`;
|
|
97
97
|
te(ue, "info");
|
|
@@ -99,13 +99,13 @@ const je = { class: "flex items-center h-[48px] px-3 top-0 bg-b-1 sticky z-20" }
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
);
|
|
102
|
-
const
|
|
102
|
+
const ne = he(() => {
|
|
103
103
|
var e;
|
|
104
104
|
const s = w.value[I.value];
|
|
105
105
|
return (e = s == null ? void 0 : s.item) != null && e.id ? `#search-input-${s.item.id}` : void 0;
|
|
106
106
|
}), le = () => {
|
|
107
|
-
var o,
|
|
108
|
-
const s =
|
|
107
|
+
var o, i;
|
|
108
|
+
const s = m.value.find(
|
|
109
109
|
(a) => {
|
|
110
110
|
var d;
|
|
111
111
|
return ((d = a.info) == null ? void 0 : d.title) === "Drafts";
|
|
@@ -114,37 +114,37 @@ const je = { class: "flex items-center h-[48px] px-3 top-0 bg-b-1 sticky z-20" }
|
|
|
114
114
|
if (s && s.requests.forEach((a) => {
|
|
115
115
|
P[a] && T.delete(P[a], s.uid);
|
|
116
116
|
}), y.value.length) {
|
|
117
|
-
const a =
|
|
117
|
+
const a = m.value[0], d = a == null ? void 0 : a.requests[0];
|
|
118
118
|
d && E(
|
|
119
|
-
`/workspace/${(
|
|
119
|
+
`/workspace/${(i = x.value) == null ? void 0 : i.uid}/request/${d}`
|
|
120
120
|
);
|
|
121
121
|
} else {
|
|
122
122
|
const { request: a } = qe();
|
|
123
123
|
s && (T.add(a, s.uid), E(`/workspace/${(o = x.value) == null ? void 0 : o.uid}/request/${a.uid}`));
|
|
124
124
|
}
|
|
125
|
-
},
|
|
126
|
-
|
|
125
|
+
}, de = () => {
|
|
126
|
+
S.value = !S.value, S.value || (k.value = ""), S.value && Re(() => {
|
|
127
127
|
var s;
|
|
128
128
|
(s = C.value) == null || s.focus();
|
|
129
129
|
});
|
|
130
130
|
};
|
|
131
|
-
return (s, e) => (r(),
|
|
131
|
+
return (s, e) => (r(), g(O, null, [
|
|
132
132
|
F(p(t(Ke), {
|
|
133
|
-
class:
|
|
133
|
+
class: f([s.isSidebarOpen ? "sidebar-active-width" : ""]),
|
|
134
134
|
isSidebarOpen: s.isSidebarOpen,
|
|
135
|
-
"onUpdate:isSidebarOpen": e[
|
|
135
|
+
"onUpdate:isSidebarOpen": e[9] || (e[9] = (o) => s.$emit("update:isSidebarOpen", o))
|
|
136
136
|
}, Se({
|
|
137
137
|
content: c(() => [
|
|
138
|
-
|
|
139
|
-
p(
|
|
140
|
-
class:
|
|
138
|
+
n("div", je, [
|
|
139
|
+
p($e, {
|
|
140
|
+
class: f(["xl:hidden", [{ "!flex": t(G) === "modal" }]]),
|
|
141
141
|
modelValue: s.isSidebarOpen,
|
|
142
142
|
"onUpdate:modelValue": e[0] || (e[0] = (o) => s.$emit("update:isSidebarOpen", o))
|
|
143
143
|
}, null, 8, ["class", "modelValue"]),
|
|
144
|
-
t(l) ?
|
|
145
|
-
t(l) ?
|
|
146
|
-
t(l) ?
|
|
147
|
-
|
|
144
|
+
t(l) ? b("", !0) : (r(), u(t(Ne), { key: 0 })),
|
|
145
|
+
t(l) ? b("", !0) : (r(), g("span", Ge, " / ")),
|
|
146
|
+
t(l) ? b("", !0) : (r(), u(we, { key: 2 })),
|
|
147
|
+
n("button", {
|
|
148
148
|
class: "ml-auto",
|
|
149
149
|
type: "button",
|
|
150
150
|
onClick: de
|
|
@@ -155,81 +155,80 @@ const je = { class: "flex items-center h-[48px] px-3 top-0 bg-b-1 sticky z-20" }
|
|
|
155
155
|
})
|
|
156
156
|
])
|
|
157
157
|
]),
|
|
158
|
-
F(
|
|
158
|
+
F(n("div", Je, [
|
|
159
159
|
p(t(Te), {
|
|
160
160
|
ref_key: "searchInputRef",
|
|
161
161
|
ref: C,
|
|
162
|
-
modelValue: t(
|
|
163
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) =>
|
|
164
|
-
"aria-activedescendant":
|
|
165
|
-
"aria-controls": t(
|
|
162
|
+
modelValue: t(k),
|
|
163
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => ke(k) ? k.value = o : null),
|
|
164
|
+
"aria-activedescendant": ne.value,
|
|
165
|
+
"aria-controls": t(W),
|
|
166
166
|
sidebar: "",
|
|
167
|
-
onBlur: e[2] || (e[2] = (o) => b.value = t(m).length > 0),
|
|
168
167
|
onInput: t(oe),
|
|
169
168
|
onKeydown: [
|
|
170
|
-
e[
|
|
171
|
-
e[
|
|
172
|
-
e[
|
|
169
|
+
e[2] || (e[2] = $(v((o) => t(z)("down"), ["stop"]), ["down"])),
|
|
170
|
+
e[3] || (e[3] = $(v((o) => t(re)(), ["stop"]), ["enter"])),
|
|
171
|
+
e[4] || (e[4] = $(v((o) => t(z)("up"), ["stop"]), ["up"]))
|
|
173
172
|
]
|
|
174
173
|
}, null, 8, ["modelValue", "aria-activedescendant", "aria-controls", "onInput"])
|
|
175
174
|
], 512), [
|
|
176
|
-
[K,
|
|
175
|
+
[K, S.value]
|
|
177
176
|
]),
|
|
178
|
-
|
|
179
|
-
class:
|
|
177
|
+
n("div", {
|
|
178
|
+
class: f(["flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
|
|
180
179
|
"pb-14": !t(l)
|
|
181
180
|
}]),
|
|
182
|
-
onDragenter: e[
|
|
181
|
+
onDragenter: e[7] || (e[7] = v(() => {
|
|
183
182
|
}, ["prevent"])),
|
|
184
|
-
onDragover: e[
|
|
183
|
+
onDragover: e[8] || (e[8] = v(() => {
|
|
185
184
|
}, ["prevent"]))
|
|
186
185
|
}, [
|
|
187
|
-
t(
|
|
186
|
+
t(k) ? (r(), u(t(Pe), {
|
|
188
187
|
key: 0,
|
|
189
|
-
id: t(
|
|
188
|
+
id: t(W),
|
|
190
189
|
"aria-label": "Search Results",
|
|
191
190
|
class: "gap-px",
|
|
192
191
|
noResults: !t(w).length
|
|
193
192
|
}, {
|
|
194
193
|
default: c(() => [
|
|
195
|
-
(r(!0),
|
|
194
|
+
(r(!0), g(O, null, N(t(w), (o, i) => (r(), u(t(Ee), {
|
|
196
195
|
id: `#search-input-${o.item.id}`,
|
|
197
196
|
key: o.refIndex,
|
|
198
197
|
ref_for: !0,
|
|
199
|
-
ref: (a) => t(ae)[
|
|
200
|
-
active: t(I) ===
|
|
198
|
+
ref: (a) => t(ae)[i] = a,
|
|
199
|
+
active: t(I) === i,
|
|
201
200
|
class: "px-2",
|
|
202
201
|
href: o.item.link,
|
|
203
|
-
onClick:
|
|
204
|
-
onFocus: (a) => I.value =
|
|
202
|
+
onClick: v((a) => t(se)(o), ["prevent"]),
|
|
203
|
+
onFocus: (a) => I.value = i
|
|
205
204
|
}, {
|
|
206
205
|
addon: c(() => [
|
|
207
|
-
e[
|
|
206
|
+
e[11] || (e[11] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
208
207
|
p(Ie, {
|
|
209
208
|
class: "font-bold",
|
|
210
209
|
method: o.item.httpVerb ?? "get"
|
|
211
210
|
}, null, 8, ["method"])
|
|
212
211
|
]),
|
|
213
212
|
default: c(() => [
|
|
214
|
-
D(
|
|
213
|
+
D(ge(o.item.title) + " ", 1)
|
|
215
214
|
]),
|
|
216
215
|
_: 2
|
|
217
216
|
}, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
|
|
218
217
|
]),
|
|
219
218
|
_: 1
|
|
220
|
-
}, 8, ["id", "noResults"])) : (r(),
|
|
221
|
-
(r(!0),
|
|
222
|
-
var
|
|
219
|
+
}, 8, ["id", "noResults"])) : (r(), g("nav", Qe, [
|
|
220
|
+
(r(!0), g(O, null, N(t(m), (o) => {
|
|
221
|
+
var i;
|
|
223
222
|
return r(), u(Fe, {
|
|
224
223
|
key: o.uid,
|
|
225
|
-
isDraggable: !t(l) && ((
|
|
224
|
+
isDraggable: !t(l) && ((i = o.info) == null ? void 0 : i.title) !== "Drafts",
|
|
226
225
|
isDroppable: t(Y),
|
|
227
|
-
menuItem:
|
|
226
|
+
menuItem: h,
|
|
228
227
|
parentUids: [],
|
|
229
228
|
uid: o.uid,
|
|
230
|
-
onNewTab: e[
|
|
229
|
+
onNewTab: e[5] || (e[5] = (a, d) => M("newTab", { name: a, uid: d })),
|
|
231
230
|
onOnDragEnd: t(X),
|
|
232
|
-
onOpenMenu: e[
|
|
231
|
+
onOpenMenu: e[6] || (e[6] = (a) => Object.assign(h, a))
|
|
233
232
|
}, {
|
|
234
233
|
leftIcon: c(() => {
|
|
235
234
|
var a;
|
|
@@ -239,13 +238,13 @@ const je = { class: "flex items-center h-[48px] px-3 top-0 bg-b-1 sticky z-20" }
|
|
|
239
238
|
class: "text-sidebar-c-2 group-hover:hidden",
|
|
240
239
|
icon: "Scribble",
|
|
241
240
|
thickness: "2.25"
|
|
242
|
-
})) : (r(), u(t(
|
|
241
|
+
})) : (r(), u(t(ze), {
|
|
243
242
|
key: 1,
|
|
244
243
|
class: "min-w-3.5 text-sidebar-c-2 size-3.5 stroke-2 group-hover:hidden",
|
|
245
244
|
src: o["x-scalar-icon"] || "interface-content-folder"
|
|
246
245
|
}, null, 8, ["src"])),
|
|
247
|
-
|
|
248
|
-
class:
|
|
246
|
+
n("div", {
|
|
247
|
+
class: f({
|
|
249
248
|
"rotate-90": t(Z)[o.uid]
|
|
250
249
|
})
|
|
251
250
|
}, [
|
|
@@ -264,13 +263,13 @@ const je = { class: "flex items-center h-[48px] px-3 top-0 bg-b-1 sticky z-20" }
|
|
|
264
263
|
], 34)
|
|
265
264
|
]),
|
|
266
265
|
button: c(() => [
|
|
267
|
-
|
|
268
|
-
class:
|
|
266
|
+
n("div", {
|
|
267
|
+
class: f({
|
|
269
268
|
"empty-sidebar-item": t(y).length <= 1
|
|
270
269
|
})
|
|
271
270
|
}, [
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
n("div", Xe, [
|
|
272
|
+
n("div", Ye, [
|
|
274
273
|
p(L, {
|
|
275
274
|
art: t(ye),
|
|
276
275
|
class: "font-bold rabbitsit"
|
|
@@ -280,29 +279,29 @@ const je = { class: "flex items-center h-[48px] px-3 top-0 bg-b-1 sticky z-20" }
|
|
|
280
279
|
class: "font-bold absolute top-0 left-0 rabbitjump"
|
|
281
280
|
}, null, 8, ["art"])
|
|
282
281
|
]),
|
|
283
|
-
e[
|
|
284
|
-
|
|
285
|
-
|
|
282
|
+
e[12] || (e[12] = n("div", { class: "text-center text-balance text-sm mb-2 mt-2" }, [
|
|
283
|
+
n("b", { class: "font-medium" }, "Let's Get Started"),
|
|
284
|
+
n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
|
|
286
285
|
], -1))
|
|
287
286
|
]),
|
|
288
|
-
t(l) ?
|
|
287
|
+
t(l) ? b("", !0) : (r(), u(t(We), {
|
|
289
288
|
key: 0,
|
|
290
|
-
class:
|
|
289
|
+
class: f(["mb-1.5 w-full h-fit hidden opacity-0 p-1.5", {
|
|
291
290
|
"flex opacity-100": t(y).length <= 1
|
|
292
291
|
}]),
|
|
293
292
|
onClick: ee
|
|
294
293
|
}, {
|
|
295
|
-
default: c(() => e[
|
|
294
|
+
default: c(() => e[13] || (e[13] = [
|
|
296
295
|
D(" Import Collection ")
|
|
297
296
|
])),
|
|
298
297
|
_: 1
|
|
299
298
|
}, 8, ["class"])),
|
|
300
|
-
t(l) ?
|
|
299
|
+
t(l) ? b("", !0) : (r(), u(Oe, {
|
|
301
300
|
key: 1,
|
|
302
301
|
click: t(R).commandPalette.emit,
|
|
303
302
|
hotkey: "K"
|
|
304
303
|
}, {
|
|
305
|
-
title: c(() => e[
|
|
304
|
+
title: c(() => e[14] || (e[14] = [
|
|
306
305
|
D("Add Item")
|
|
307
306
|
])),
|
|
308
307
|
_: 1
|
|
@@ -319,13 +318,13 @@ const je = { class: "flex items-center h-[48px] px-3 top-0 bg-b-1 sticky z-20" }
|
|
|
319
318
|
]), 1032, ["class", "isSidebarOpen"]), [
|
|
320
319
|
[K, s.isSidebarOpen]
|
|
321
320
|
]),
|
|
322
|
-
!t(l) &&
|
|
321
|
+
!t(l) && h ? (r(), u(Me, {
|
|
323
322
|
key: 0,
|
|
324
|
-
menuItem:
|
|
323
|
+
menuItem: h,
|
|
325
324
|
onClearDrafts: le,
|
|
326
|
-
onCloseMenu: e[
|
|
327
|
-
onToggleWatchMode:
|
|
328
|
-
}, null, 8, ["menuItem"])) :
|
|
325
|
+
onCloseMenu: e[10] || (e[10] = (o) => h.open = !1),
|
|
326
|
+
onToggleWatchMode: ie
|
|
327
|
+
}, null, 8, ["menuItem"])) : b("", !0)
|
|
329
328
|
], 64));
|
|
330
329
|
}
|
|
331
330
|
});
|
|
@@ -17,7 +17,7 @@ const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
|
|
|
17
17
|
a.commandPalette.emit({ commandName: "Create Request" });
|
|
18
18
|
}, y = (i) => {
|
|
19
19
|
i != null && i.createNew && v.name === "request" && f();
|
|
20
|
-
}, h = "2.2.
|
|
20
|
+
}, h = "2.2.29";
|
|
21
21
|
return R(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (r(), l("div", K, [
|
|
22
22
|
o("div", {
|
|
23
23
|
class: k(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.2.
|
|
21
|
+
"version": "2.2.29",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -169,10 +169,10 @@
|
|
|
169
169
|
"whatwg-mimetype": "^4.0.0",
|
|
170
170
|
"yaml": "^2.4.5",
|
|
171
171
|
"zod": "^3.23.8",
|
|
172
|
-
"@scalar/components": "0.13.11",
|
|
173
|
-
"@scalar/icons": "0.1.2",
|
|
174
|
-
"@scalar/import": "0.2.15",
|
|
175
172
|
"@scalar/draggable": "0.1.8",
|
|
173
|
+
"@scalar/components": "0.13.12",
|
|
174
|
+
"@scalar/import": "0.2.15",
|
|
175
|
+
"@scalar/icons": "0.1.2",
|
|
176
176
|
"@scalar/oas-utils": "0.2.95",
|
|
177
177
|
"@scalar/object-utils": "1.1.12",
|
|
178
178
|
"@scalar/openapi-parser": "0.10.2",
|
|
@@ -180,10 +180,10 @@
|
|
|
180
180
|
"@scalar/postman-to-openapi": "0.1.18",
|
|
181
181
|
"@scalar/themes": "0.9.58",
|
|
182
182
|
"@scalar/types": "0.0.25",
|
|
183
|
-
"@scalar/use-
|
|
184
|
-
"@scalar/use-
|
|
185
|
-
"@scalar/use-toasts": "0.7.
|
|
186
|
-
"@scalar/use-tooltip": "1.0.
|
|
183
|
+
"@scalar/use-hooks": "0.1.12",
|
|
184
|
+
"@scalar/use-codemirror": "0.11.56",
|
|
185
|
+
"@scalar/use-toasts": "0.7.8",
|
|
186
|
+
"@scalar/use-tooltip": "1.0.5"
|
|
187
187
|
},
|
|
188
188
|
"devDependencies": {
|
|
189
189
|
"@types/js-cookie": "^3.0.6",
|