@scalar/api-client 2.3.2 → 2.3.3
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 +19 -0
- package/dist/layouts/App/create-api-client-app.d.ts +3 -3
- package/dist/layouts/Modal/create-api-client-modal.d.ts +6 -6
- package/dist/layouts/Web/create-api-client-web.d.ts +3 -3
- package/dist/libs/create-client.d.ts +3 -3
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +50 -50
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/store.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +60 -62
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +142 -141
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +11 -11
|
@@ -1,85 +1,86 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import { LibraryIcon as
|
|
4
|
-
import { useToasts as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useSearch as
|
|
12
|
-
import
|
|
13
|
-
import { useLayout as
|
|
14
|
-
import { useSidebar as
|
|
15
|
-
import { PathId as
|
|
16
|
-
import { useActiveEntities as
|
|
17
|
-
import { createInitialRequest as
|
|
18
|
-
import { dragHandlerFactory as
|
|
19
|
-
import
|
|
20
|
-
import { isGettingStarted as
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { useWorkspace as
|
|
25
|
-
const
|
|
1
|
+
import { defineComponent as ge, useId as Se, reactive as ke, ref as Re, watch as H, onMounted as ye, onBeforeUnmount as xe, computed as D, openBlock as l, createElementBlock as k, Fragment as $, withDirectives as K, createVNode as p, unref as t, normalizeClass as h, createSlots as we, withCtx as d, createElementVNode as n, createBlock as u, createCommentVNode as b, toDisplayString as B, isRef as Ie, withKeys as q, withModifiers as g, vShow as U, renderList as G, createTextVNode as M, nextTick as Ce } from "vue";
|
|
2
|
+
import { ScalarIcon as P, ScalarSearchInput as De, ScalarSearchResultList as $e, ScalarSearchResultItem as qe, ScalarButton as Me } from "@scalar/components";
|
|
3
|
+
import { LibraryIcon as Pe } from "@scalar/icons";
|
|
4
|
+
import { useToasts as Te } from "@scalar/use-toasts";
|
|
5
|
+
import { useRouter as _e } from "vue-router";
|
|
6
|
+
import Ve from "../../assets/rabbit.ascii.js";
|
|
7
|
+
import Ee from "../../assets/rabbitjump.ascii.js";
|
|
8
|
+
import Le from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
|
|
9
|
+
import Ne from "../../components/HttpMethod/HttpMethod.vue.js";
|
|
10
|
+
import j from "../../components/ScalarAsciiArt.vue.js";
|
|
11
|
+
import { useSearch as Oe } from "../../components/Search/useSearch.js";
|
|
12
|
+
import ze from "../../components/Sidebar/SidebarButton.vue.js";
|
|
13
|
+
import { useLayout as Fe } from "../../hooks/useLayout.js";
|
|
14
|
+
import { useSidebar as We } from "../../hooks/useSidebar.js";
|
|
15
|
+
import { PathId as J } from "../../routes.js";
|
|
16
|
+
import { useActiveEntities as Ae } from "../../store/active-entities.js";
|
|
17
|
+
import { createInitialRequest as He } from "../../store/requests.js";
|
|
18
|
+
import { dragHandlerFactory as Ke } from "./handle-drag.js";
|
|
19
|
+
import Be from "./RequestSidebarItemMenu.vue.js";
|
|
20
|
+
import { isGettingStarted as Ue } from "./RequestSection/helpers/getting-started.js";
|
|
21
|
+
import Ge from "./RequestSidebarItem.vue.js";
|
|
22
|
+
import je from "../../components/Sidebar/Sidebar.vue.js";
|
|
23
|
+
import Je from "./components/WorkspaceDropdown.vue.js";
|
|
24
|
+
import { useWorkspace as Qe } from "../../store/store.js";
|
|
25
|
+
const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye = {
|
|
26
26
|
key: 1,
|
|
27
27
|
class: "text-c-3"
|
|
28
|
-
},
|
|
28
|
+
}, Ze = ["aria-pressed"], et = { class: "sr-only" }, tt = {
|
|
29
29
|
class: "search-button-fade sticky top-12 z-10 px-3 py-2.5 pt-0 focus-within:z-20",
|
|
30
30
|
role: "search"
|
|
31
|
-
},
|
|
31
|
+
}, ot = {
|
|
32
32
|
key: 1,
|
|
33
33
|
class: "contents"
|
|
34
|
-
},
|
|
34
|
+
}, st = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, at = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, Mt = /* @__PURE__ */ ge({
|
|
35
35
|
__name: "RequestSidebar",
|
|
36
36
|
emits: ["newTab", "clearDrafts"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
39
|
-
collapsedSidebarFolders:
|
|
40
|
-
isSidebarOpen:
|
|
41
|
-
setCollapsedSidebarFolder:
|
|
42
|
-
toggleSidebarOpen:
|
|
43
|
-
} =
|
|
37
|
+
setup(rt, { emit: Q }) {
|
|
38
|
+
const X = Q, {
|
|
39
|
+
collapsedSidebarFolders: Y,
|
|
40
|
+
isSidebarOpen: T,
|
|
41
|
+
setCollapsedSidebarFolder: Z,
|
|
42
|
+
toggleSidebarOpen: ee
|
|
43
|
+
} = We(), { layout: i } = Fe(), _ = Qe(), {
|
|
44
|
+
activeCollection: V,
|
|
44
45
|
activeWorkspaceCollections: c,
|
|
45
|
-
activeRequest:
|
|
46
|
-
activeWorkspaceRequests:
|
|
47
|
-
activeWorkspace:
|
|
48
|
-
} =
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
), { replace:
|
|
46
|
+
activeRequest: te,
|
|
47
|
+
activeWorkspaceRequests: E,
|
|
48
|
+
activeWorkspace: oe
|
|
49
|
+
} = Ae(), { findRequestParents: se, events: R, requestMutators: L, requests: y } = _, { handleDragEnd: ae, isDroppable: re } = Ke(
|
|
50
|
+
oe,
|
|
51
|
+
_
|
|
52
|
+
), { replace: N } = _e(), le = () => {
|
|
52
53
|
R.commandPalette.emit({
|
|
53
54
|
commandName: "Import from OpenAPI/Swagger/Postman/cURL"
|
|
54
55
|
});
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
}, O = Se(), { toast: ne } = Te(), S = ke({ open: !1 }), m = Re(!1);
|
|
57
|
+
H(
|
|
58
|
+
te,
|
|
58
59
|
(s) => {
|
|
59
|
-
s &&
|
|
60
|
-
(e) =>
|
|
60
|
+
s && se(s).forEach(
|
|
61
|
+
(e) => Z(e, !0)
|
|
61
62
|
);
|
|
62
63
|
},
|
|
63
64
|
{ immediate: !0 }
|
|
64
65
|
);
|
|
65
66
|
const {
|
|
66
|
-
searchText:
|
|
67
|
+
searchText: v,
|
|
67
68
|
searchResultsWithPlaceholderResults: x,
|
|
68
69
|
selectedSearchResult: w,
|
|
69
|
-
onSearchResultClick:
|
|
70
|
-
fuseSearch:
|
|
70
|
+
onSearchResultClick: ie,
|
|
71
|
+
fuseSearch: ue,
|
|
71
72
|
searchInputRef: I,
|
|
72
|
-
searchResultRefs:
|
|
73
|
-
navigateSearchResults:
|
|
74
|
-
selectSearchResult:
|
|
75
|
-
} =
|
|
73
|
+
searchResultRefs: ce,
|
|
74
|
+
navigateSearchResults: z,
|
|
75
|
+
selectSearchResult: de
|
|
76
|
+
} = Oe(), F = (s) => {
|
|
76
77
|
var e;
|
|
77
|
-
s && (s.toggleSidebar &&
|
|
78
|
+
s && (s.toggleSidebar && ee(), s.focusRequestSearch && ((e = I.value) == null || e.focus()));
|
|
78
79
|
};
|
|
79
|
-
|
|
80
|
-
R.hotKeys.off(
|
|
80
|
+
ye(() => R.hotKeys.on(F)), xe(() => {
|
|
81
|
+
R.hotKeys.off(F);
|
|
81
82
|
});
|
|
82
|
-
const
|
|
83
|
+
const me = (s) => {
|
|
83
84
|
if (s != null && s.documentUrl) {
|
|
84
85
|
s.watchMode = !s.watchMode;
|
|
85
86
|
const e = c.value.find(
|
|
@@ -88,31 +89,31 @@ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe
|
|
|
88
89
|
e && (e.watchMode = s.watchMode);
|
|
89
90
|
}
|
|
90
91
|
};
|
|
91
|
-
|
|
92
|
+
H(
|
|
92
93
|
() => c.value.map(
|
|
93
94
|
(s) => s.watchMode
|
|
94
95
|
),
|
|
95
96
|
(s, e) => {
|
|
96
97
|
s.forEach((o, a) => {
|
|
97
|
-
var r, f,
|
|
98
|
+
var r, f, W;
|
|
98
99
|
if (i !== "modal" && o !== e[a] && ((f = (r = c.value[a]) == null ? void 0 : r.info) == null ? void 0 : f.title) !== "Drafts" && c.value[a]) {
|
|
99
|
-
const
|
|
100
|
-
if (!
|
|
101
|
-
const
|
|
102
|
-
|
|
100
|
+
const A = c.value[a];
|
|
101
|
+
if (!A) return;
|
|
102
|
+
const be = `${(W = A.info) == null ? void 0 : W.title}: Watch Mode ${o ? "enabled" : "disabled"}`;
|
|
103
|
+
ne(be, "info");
|
|
103
104
|
}
|
|
104
105
|
});
|
|
105
106
|
}
|
|
106
107
|
);
|
|
107
|
-
const
|
|
108
|
+
const fe = D(() => {
|
|
108
109
|
var f;
|
|
109
110
|
const s = x.value;
|
|
110
111
|
if (!s.length) return "No results found";
|
|
111
112
|
const e = (f = s[w.value]) == null ? void 0 : f.item;
|
|
112
113
|
if (!e) return "No result selected";
|
|
113
|
-
const o =
|
|
114
|
+
const o = v.value.length ? `${s.length} result${s.length === 1 ? "" : "s"} found, ` : "", a = `, HTTP Method ${e.httpVerb}, Path ${e.path}`, r = `${e.title} ${a}`;
|
|
114
115
|
return `${o}Selected: ${r}`;
|
|
115
|
-
}),
|
|
116
|
+
}), pe = () => {
|
|
116
117
|
const s = c.value.find(
|
|
117
118
|
(o) => {
|
|
118
119
|
var a;
|
|
@@ -120,82 +121,82 @@ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe
|
|
|
120
121
|
}
|
|
121
122
|
);
|
|
122
123
|
if (s && s.requests.forEach((o) => {
|
|
123
|
-
y[o] &&
|
|
124
|
-
}),
|
|
124
|
+
y[o] && L.delete(y[o], s.uid);
|
|
125
|
+
}), E.value.length) {
|
|
125
126
|
const o = c.value[0], a = o == null ? void 0 : o.requests[0];
|
|
126
|
-
a &&
|
|
127
|
+
a && N({
|
|
127
128
|
name: "request",
|
|
128
129
|
params: {
|
|
129
|
-
[
|
|
130
|
+
[J.Request]: a
|
|
130
131
|
}
|
|
131
132
|
});
|
|
132
133
|
} else {
|
|
133
|
-
const { request: o } =
|
|
134
|
-
s && (
|
|
134
|
+
const { request: o } = He();
|
|
135
|
+
s && (L.add(o, s.uid), N({
|
|
135
136
|
name: "request",
|
|
136
137
|
params: {
|
|
137
|
-
[
|
|
138
|
+
[J.Request]: o.uid
|
|
138
139
|
}
|
|
139
140
|
}));
|
|
140
141
|
}
|
|
141
|
-
},
|
|
142
|
-
m.value = !m.value, m.value || (
|
|
142
|
+
}, ve = () => {
|
|
143
|
+
m.value = !m.value, m.value || (v.value = ""), m.value && Ce(() => {
|
|
143
144
|
var s;
|
|
144
145
|
return (s = I.value) == null ? void 0 : s.focus();
|
|
145
146
|
});
|
|
146
|
-
}, C =
|
|
147
|
-
() =>
|
|
147
|
+
}, C = D(
|
|
148
|
+
() => Ue(
|
|
148
149
|
c.value,
|
|
149
|
-
|
|
150
|
+
E.value,
|
|
150
151
|
y
|
|
151
152
|
)
|
|
152
|
-
);
|
|
153
|
-
return (s, e) => (l(), k(
|
|
154
|
-
|
|
155
|
-
class:
|
|
156
|
-
},
|
|
153
|
+
), he = D(() => i === "modal" && V.value ? [V.value] : c.value);
|
|
154
|
+
return (s, e) => (l(), k($, null, [
|
|
155
|
+
K(p(t(je), {
|
|
156
|
+
class: h([t(T) ? "sidebar-active-width" : ""])
|
|
157
|
+
}, we({
|
|
157
158
|
content: d(() => [
|
|
158
|
-
n("div",
|
|
159
|
+
n("div", Xe, [
|
|
159
160
|
n("div", {
|
|
160
|
-
class:
|
|
161
|
+
class: h(["size-8", { "xl:hidden": t(i) !== "modal" }])
|
|
161
162
|
}, null, 2),
|
|
162
|
-
t(i) !== "modal" ? (l(), u(t(
|
|
163
|
-
t(i) !== "modal" ? (l(), k("span",
|
|
164
|
-
t(i) !== "modal" ? (l(), u(
|
|
163
|
+
t(i) !== "modal" ? (l(), u(t(Je), { key: 0 })) : b("", !0),
|
|
164
|
+
t(i) !== "modal" ? (l(), k("span", Ye, " / ")) : b("", !0),
|
|
165
|
+
t(i) !== "modal" ? (l(), u(Le, { key: 2 })) : b("", !0),
|
|
165
166
|
n("button", {
|
|
166
167
|
"aria-pressed": m.value,
|
|
167
168
|
class: "ml-auto",
|
|
168
169
|
type: "button",
|
|
169
|
-
onClick:
|
|
170
|
+
onClick: ve
|
|
170
171
|
}, [
|
|
171
|
-
n("span",
|
|
172
|
-
p(t(
|
|
172
|
+
n("span", et, B(m.value ? "Hide" : "Show") + " search ", 1),
|
|
173
|
+
p(t(P), {
|
|
173
174
|
class: "text-c-3 hover:bg-b-2 p-1.75 max-h-8 max-w-8 rounded-lg text-sm",
|
|
174
175
|
icon: "Search"
|
|
175
176
|
})
|
|
176
|
-
], 8,
|
|
177
|
+
], 8, Ze)
|
|
177
178
|
]),
|
|
178
|
-
|
|
179
|
-
p(t(
|
|
179
|
+
K(n("div", tt, [
|
|
180
|
+
p(t(De), {
|
|
180
181
|
ref_key: "searchInputRef",
|
|
181
182
|
ref: I,
|
|
182
|
-
modelValue: t(
|
|
183
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) =>
|
|
184
|
-
"aria-controls": t(
|
|
185
|
-
label:
|
|
183
|
+
modelValue: t(v),
|
|
184
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => Ie(v) ? v.value = o : null),
|
|
185
|
+
"aria-controls": t(O),
|
|
186
|
+
label: fe.value,
|
|
186
187
|
sidebar: "",
|
|
187
|
-
onInput: t(
|
|
188
|
+
onInput: t(ue),
|
|
188
189
|
onKeydown: [
|
|
189
|
-
e[1] || (e[1] =
|
|
190
|
-
e[2] || (e[2] =
|
|
191
|
-
e[3] || (e[3] =
|
|
190
|
+
e[1] || (e[1] = q(g((o) => t(z)("down"), ["stop"]), ["down"])),
|
|
191
|
+
e[2] || (e[2] = q(g((o) => t(de)(), ["stop"]), ["enter"])),
|
|
192
|
+
e[3] || (e[3] = q(g((o) => t(z)("up"), ["stop"]), ["up"]))
|
|
192
193
|
]
|
|
193
194
|
}, null, 8, ["modelValue", "aria-controls", "label", "onInput"])
|
|
194
195
|
], 512), [
|
|
195
|
-
[
|
|
196
|
+
[U, m.value]
|
|
196
197
|
]),
|
|
197
198
|
n("div", {
|
|
198
|
-
class:
|
|
199
|
+
class: h(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pb-3 pt-0", [
|
|
199
200
|
{
|
|
200
201
|
"pb-14": t(i) !== "modal"
|
|
201
202
|
},
|
|
@@ -208,72 +209,72 @@ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe
|
|
|
208
209
|
onDragover: e[7] || (e[7] = g(() => {
|
|
209
210
|
}, ["prevent"]))
|
|
210
211
|
}, [
|
|
211
|
-
t(
|
|
212
|
+
t(v) ? (l(), u(t($e), {
|
|
212
213
|
key: 0,
|
|
213
|
-
id: t(
|
|
214
|
+
id: t(O),
|
|
214
215
|
"aria-label": "Search Results",
|
|
215
216
|
class: "gap-px",
|
|
216
217
|
noResults: !t(x).length
|
|
217
218
|
}, {
|
|
218
219
|
default: d(() => [
|
|
219
|
-
(l(!0), k(
|
|
220
|
+
(l(!0), k($, null, G(t(x), (o, a) => (l(), u(t(qe), {
|
|
220
221
|
id: `#search-input-${o.item.id}`,
|
|
221
222
|
key: o.refIndex,
|
|
222
223
|
ref_for: !0,
|
|
223
|
-
ref: (r) => t(
|
|
224
|
+
ref: (r) => t(ce)[a] = r,
|
|
224
225
|
active: t(w) === a,
|
|
225
226
|
class: "px-2",
|
|
226
227
|
href: o.item.link,
|
|
227
|
-
onClick: g((r) => t(
|
|
228
|
+
onClick: g((r) => t(ie)(o), ["prevent"]),
|
|
228
229
|
onFocus: (r) => w.value = a
|
|
229
230
|
}, {
|
|
230
231
|
addon: d(() => [
|
|
231
232
|
e[9] || (e[9] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
|
|
232
|
-
p(
|
|
233
|
+
p(Ne, {
|
|
233
234
|
class: "font-bold",
|
|
234
235
|
method: o.item.httpVerb ?? "get"
|
|
235
236
|
}, null, 8, ["method"])
|
|
236
237
|
]),
|
|
237
238
|
default: d(() => [
|
|
238
|
-
|
|
239
|
+
M(B(o.item.title) + " ", 1)
|
|
239
240
|
]),
|
|
240
241
|
_: 2
|
|
241
242
|
}, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
|
|
242
243
|
]),
|
|
243
244
|
_: 1
|
|
244
|
-
}, 8, ["id", "noResults"])) : (l(), k("nav",
|
|
245
|
-
(l(!0), k(
|
|
245
|
+
}, 8, ["id", "noResults"])) : (l(), k("nav", ot, [
|
|
246
|
+
(l(!0), k($, null, G(he.value, (o) => {
|
|
246
247
|
var a;
|
|
247
|
-
return l(), u(
|
|
248
|
+
return l(), u(Ge, {
|
|
248
249
|
key: o.uid,
|
|
249
250
|
isDraggable: t(i) !== "modal" && ((a = o.info) == null ? void 0 : a.title) !== "Drafts",
|
|
250
|
-
isDroppable: t(
|
|
251
|
+
isDroppable: t(re),
|
|
251
252
|
menuItem: S,
|
|
252
253
|
parentUids: [],
|
|
253
254
|
uid: o.uid,
|
|
254
|
-
onNewTab: e[4] || (e[4] = (r, f) =>
|
|
255
|
-
onOnDragEnd: t(
|
|
255
|
+
onNewTab: e[4] || (e[4] = (r, f) => X("newTab", { name: r, uid: f })),
|
|
256
|
+
onOnDragEnd: t(ae),
|
|
256
257
|
onOpenMenu: e[5] || (e[5] = (r) => Object.assign(S, r))
|
|
257
258
|
}, {
|
|
258
259
|
leftIcon: d(() => {
|
|
259
260
|
var r;
|
|
260
261
|
return [
|
|
261
|
-
((r = o.info) == null ? void 0 : r.title) === "Drafts" ? (l(), u(t(
|
|
262
|
+
((r = o.info) == null ? void 0 : r.title) === "Drafts" ? (l(), u(t(P), {
|
|
262
263
|
key: 0,
|
|
263
264
|
class: "text-sidebar-c-2 group-hover:hidden",
|
|
264
265
|
icon: "Scribble",
|
|
265
266
|
thickness: "2.25"
|
|
266
|
-
})) : (l(), u(t(
|
|
267
|
+
})) : (l(), u(t(Pe), {
|
|
267
268
|
key: 1,
|
|
268
269
|
class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
|
|
269
270
|
src: o["x-scalar-icon"] || "interface-content-folder"
|
|
270
271
|
}, null, 8, ["src"])),
|
|
271
272
|
n("div", {
|
|
272
|
-
class:
|
|
273
|
-
"rotate-90": t(
|
|
273
|
+
class: h({
|
|
274
|
+
"rotate-90": t(Y)[o.uid]
|
|
274
275
|
})
|
|
275
276
|
}, [
|
|
276
|
-
p(t(
|
|
277
|
+
p(t(P), {
|
|
277
278
|
class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
|
|
278
279
|
icon: "ChevronRight",
|
|
279
280
|
size: "md"
|
|
@@ -289,18 +290,18 @@ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe
|
|
|
289
290
|
]),
|
|
290
291
|
button: d(() => [
|
|
291
292
|
n("div", {
|
|
292
|
-
class:
|
|
293
|
+
class: h({
|
|
293
294
|
"empty-sidebar-item": C.value
|
|
294
295
|
})
|
|
295
296
|
}, [
|
|
296
|
-
n("div",
|
|
297
|
-
n("div",
|
|
298
|
-
p(
|
|
299
|
-
art: t(
|
|
297
|
+
n("div", st, [
|
|
298
|
+
n("div", at, [
|
|
299
|
+
p(j, {
|
|
300
|
+
art: t(Ve),
|
|
300
301
|
class: "rabbitsit font-bold"
|
|
301
302
|
}, null, 8, ["art"]),
|
|
302
|
-
p(
|
|
303
|
-
art: t(
|
|
303
|
+
p(j, {
|
|
304
|
+
art: t(Ee),
|
|
304
305
|
class: "rabbitjump absolute left-0 top-0 font-bold"
|
|
305
306
|
}, null, 8, ["art"])
|
|
306
307
|
]),
|
|
@@ -309,25 +310,25 @@ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe
|
|
|
309
310
|
n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
|
|
310
311
|
], -1))
|
|
311
312
|
]),
|
|
312
|
-
t(i) !== "modal" ? (l(), u(t(
|
|
313
|
+
t(i) !== "modal" ? (l(), u(t(Me), {
|
|
313
314
|
key: 0,
|
|
314
|
-
class:
|
|
315
|
+
class: h(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0", {
|
|
315
316
|
"flex opacity-100": C.value
|
|
316
317
|
}]),
|
|
317
|
-
onClick:
|
|
318
|
+
onClick: le
|
|
318
319
|
}, {
|
|
319
320
|
default: d(() => e[11] || (e[11] = [
|
|
320
|
-
|
|
321
|
+
M(" Import Collection ")
|
|
321
322
|
])),
|
|
322
323
|
_: 1
|
|
323
324
|
}, 8, ["class"])) : b("", !0),
|
|
324
|
-
t(i) !== "modal" ? (l(), u(
|
|
325
|
+
t(i) !== "modal" ? (l(), u(ze, {
|
|
325
326
|
key: 1,
|
|
326
327
|
click: t(R).commandPalette.emit,
|
|
327
328
|
hotkey: "K"
|
|
328
329
|
}, {
|
|
329
330
|
title: d(() => e[12] || (e[12] = [
|
|
330
|
-
|
|
331
|
+
M(" Add Item ")
|
|
331
332
|
])),
|
|
332
333
|
_: 1
|
|
333
334
|
}, 8, ["click"])) : b("", !0)
|
|
@@ -341,18 +342,18 @@ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe
|
|
|
341
342
|
key: "0"
|
|
342
343
|
} : void 0
|
|
343
344
|
]), 1032, ["class"]), [
|
|
344
|
-
[
|
|
345
|
+
[U, t(T)]
|
|
345
346
|
]),
|
|
346
|
-
t(i) !== "modal" && S ? (l(), u(
|
|
347
|
+
t(i) !== "modal" && S ? (l(), u(Be, {
|
|
347
348
|
key: 0,
|
|
348
349
|
menuItem: S,
|
|
349
|
-
onClearDrafts:
|
|
350
|
+
onClearDrafts: pe,
|
|
350
351
|
onCloseMenu: e[8] || (e[8] = (o) => S.open = !1),
|
|
351
|
-
onToggleWatchMode:
|
|
352
|
+
onToggleWatchMode: me
|
|
352
353
|
}, null, 8, ["menuItem"])) : b("", !0)
|
|
353
354
|
], 64));
|
|
354
355
|
}
|
|
355
356
|
});
|
|
356
357
|
export {
|
|
357
|
-
|
|
358
|
+
Mt as default
|
|
358
359
|
};
|
|
@@ -36,7 +36,7 @@ const P = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, T = {
|
|
|
36
36
|
}));
|
|
37
37
|
}, y = (s) => {
|
|
38
38
|
s != null && s.createNew && w.name === "request" && k();
|
|
39
|
-
}, N = "2.3.
|
|
39
|
+
}, N = "2.3.3";
|
|
40
40
|
return B(() => r.hotKeys.on(y)), E(() => r.hotKeys.off(y)), (s, e) => (u(), i("div", P, [
|
|
41
41
|
o("div", {
|
|
42
42
|
class: q(["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.3.
|
|
21
|
+
"version": "2.3.3",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -188,21 +188,21 @@
|
|
|
188
188
|
"whatwg-mimetype": "^4.0.0",
|
|
189
189
|
"yaml": "^2.4.5",
|
|
190
190
|
"zod": "^3.23.8",
|
|
191
|
-
"@scalar/components": "0.13.
|
|
191
|
+
"@scalar/components": "0.13.37",
|
|
192
|
+
"@scalar/icons": "0.1.3",
|
|
192
193
|
"@scalar/draggable": "0.1.11",
|
|
193
|
-
"@scalar/import": "0.3.
|
|
194
|
+
"@scalar/import": "0.3.2",
|
|
194
195
|
"@scalar/object-utils": "1.1.13",
|
|
195
|
-
"@scalar/
|
|
196
|
-
"@scalar/oas-utils": "0.2.119",
|
|
197
|
-
"@scalar/openapi-parser": "0.10.10",
|
|
196
|
+
"@scalar/oas-utils": "0.2.120",
|
|
198
197
|
"@scalar/openapi-types": "0.1.9",
|
|
199
|
-
"@scalar/
|
|
198
|
+
"@scalar/openapi-parser": "0.10.10",
|
|
199
|
+
"@scalar/postman-to-openapi": "0.1.43",
|
|
200
200
|
"@scalar/snippetz": "0.2.16",
|
|
201
|
-
"@scalar/
|
|
202
|
-
"@scalar/
|
|
203
|
-
"@scalar/use-codemirror": "0.11.81",
|
|
204
|
-
"@scalar/use-hooks": "0.1.32",
|
|
201
|
+
"@scalar/types": "0.1.1",
|
|
202
|
+
"@scalar/themes": "0.9.79",
|
|
205
203
|
"@scalar/use-toasts": "0.7.9",
|
|
204
|
+
"@scalar/use-codemirror": "0.11.82",
|
|
205
|
+
"@scalar/use-hooks": "0.1.33",
|
|
206
206
|
"@scalar/use-tooltip": "1.0.6"
|
|
207
207
|
},
|
|
208
208
|
"devDependencies": {
|