@scalar/api-client 2.0.25 → 2.0.26
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 +13 -0
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +38 -38
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +11 -11
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -10
- package/dist/layouts/Modal/api-client-modal.d.ts +1 -1
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/api-client-modal.js +41 -41
- package/dist/store/workspace.d.ts +36 -12
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +163 -149
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +22 -22
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +79 -75
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +44 -46
- package/package.json +5 -5
|
@@ -1,42 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { commandPaletteBus as
|
|
9
|
-
import { useWorkspace as
|
|
10
|
-
import
|
|
1
|
+
import { defineComponent as W, ref as j, onMounted as F, onBeforeUnmount as A, openBlock as f, createElementBlock as w, Fragment as O, createElementVNode as c, normalizeClass as b, createVNode as r, unref as e, createCommentVNode as _, withCtx as m, withDirectives as H, createSlots as P, withModifiers as R, renderList as J, createBlock as k, createTextVNode as K, vShow as Q } from "vue";
|
|
2
|
+
import G from "../../components/AddressBar/AddressBar.vue.js";
|
|
3
|
+
import X from "../../components/Search/SearchButton.vue.js";
|
|
4
|
+
import Y from "../../components/Search/SearchModal.vue.js";
|
|
5
|
+
import Z from "../../components/Sidebar/SidebarButton.vue.js";
|
|
6
|
+
import ee from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
7
|
+
import te from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
8
|
+
import { commandPaletteBus as oe } from "../../libs/eventBusses/command-palette.js";
|
|
9
|
+
import { useWorkspace as re } from "../../store/workspace.js";
|
|
10
|
+
import se from "./RequestSection/RequestSection.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import
|
|
12
|
+
import ae from "./ResponseSection/ResponseSection.vue.js";
|
|
13
13
|
import { useModal as ne, ScalarIcon as y } from "@scalar/components";
|
|
14
|
-
import { REQUEST_METHODS as
|
|
14
|
+
import { REQUEST_METHODS as le } from "@scalar/oas-utils/helpers";
|
|
15
15
|
import { isMacOS as B } from "@scalar/use-tooltip";
|
|
16
|
-
import { useMagicKeys as
|
|
16
|
+
import { useMagicKeys as ie, useEventListener as ue } from "@vueuse/core";
|
|
17
17
|
import ce from "./RequestSidebarItem.vue.js";
|
|
18
|
-
import
|
|
18
|
+
import me from "../../components/Sidebar/Sidebar.vue.js";
|
|
19
19
|
/* empty css */
|
|
20
|
-
import
|
|
21
|
-
import { useSidebar as
|
|
22
|
-
import { sendRequest as
|
|
20
|
+
import de from "./components/WorkspaceDropdown.vue.js";
|
|
21
|
+
import { useSidebar as pe } from "../../hooks/useSidebar.js";
|
|
22
|
+
import { sendRequest as fe } from "../../libs/sendRequest.js";
|
|
23
23
|
import { executeRequestBus as D } from "../../libs/eventBusses/executeRequestBus.js";
|
|
24
|
-
const
|
|
24
|
+
const ve = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container" }, ge = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, he = { 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" }, je = /* @__PURE__ */ W({
|
|
25
25
|
__name: "Request",
|
|
26
|
-
setup(
|
|
26
|
+
setup(xe) {
|
|
27
27
|
var C;
|
|
28
28
|
const {
|
|
29
29
|
activeExample: h,
|
|
30
|
-
activeRequest:
|
|
30
|
+
activeRequest: n,
|
|
31
31
|
activeSecurityScheme: E,
|
|
32
32
|
activeWorkspaceServers: q,
|
|
33
33
|
activeWorkspace: i,
|
|
34
34
|
environments: M,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
requestMutators: $,
|
|
36
|
+
activeWorkspaceCollections: I,
|
|
37
|
+
modalState: N
|
|
38
|
+
} = re(), { collapsedSidebarFolders: V } = pe(), v = ne(), l = j(!((C = i.value) != null && C.isReadOnly)), S = async () => {
|
|
38
39
|
var g;
|
|
39
|
-
if (!
|
|
40
|
+
if (!n.value || !h.value) {
|
|
40
41
|
console.warn(
|
|
41
42
|
"There is no request active at the moment. Please select one then try again."
|
|
42
43
|
);
|
|
@@ -53,58 +54,61 @@ const fe = { class: "lg:min-h-header flex items-center w-full justify-center p-1
|
|
|
53
54
|
},
|
|
54
55
|
{}
|
|
55
56
|
), t = /\{\{(.*?)\}\}/g;
|
|
56
|
-
s = s.replace(t, (d, p) => (q.value.forEach((
|
|
57
|
-
if (
|
|
57
|
+
s = s.replace(t, (d, p) => (q.value.forEach((U) => {
|
|
58
|
+
if (U.url === p)
|
|
58
59
|
return p;
|
|
59
60
|
}), o[p] || p));
|
|
60
|
-
const { request:
|
|
61
|
-
|
|
61
|
+
const { request: a, response: u } = await fe(
|
|
62
|
+
n.value,
|
|
62
63
|
h.value,
|
|
63
64
|
s,
|
|
64
65
|
E.value,
|
|
65
66
|
(g = i.value) == null ? void 0 : g.proxyUrl
|
|
66
67
|
);
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
a && u ? $.edit(n.value.uid, "history", [
|
|
69
|
+
...n.value.history,
|
|
70
|
+
{
|
|
71
|
+
request: a,
|
|
72
|
+
response: u,
|
|
73
|
+
timestamp: Date.now()
|
|
74
|
+
}
|
|
75
|
+
]) : console.warn("No response or request was returned");
|
|
72
76
|
};
|
|
73
|
-
|
|
74
|
-
const
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
(B() ? x.meta.value : x.ctrl.value) && s.key === "b" && (
|
|
77
|
+
F(() => D.on(S)), A(() => D.off(S));
|
|
78
|
+
const z = (s, o, t, a) => {
|
|
79
|
+
}, L = () => oe.emit(), x = ie();
|
|
80
|
+
ue(document, "keydown", (s) => {
|
|
81
|
+
(B() ? x.meta.value : x.ctrl.value) && s.key === "b" && (l.value = !l.value), (B() ? x.meta.value : x.ctrl.value) && s.key === "k" && (v.open ? v.hide() : v.show());
|
|
78
82
|
});
|
|
79
|
-
const
|
|
80
|
-
if (!
|
|
81
|
-
const { method: s } =
|
|
82
|
-
return
|
|
83
|
+
const T = () => {
|
|
84
|
+
if (!n.value) return "";
|
|
85
|
+
const { method: s } = n.value;
|
|
86
|
+
return le[s].backgroundColor;
|
|
83
87
|
};
|
|
84
88
|
return (s, o) => (f(), w(O, null, [
|
|
85
|
-
|
|
86
|
-
class: b(["flex flex-1 flex-col rounded-lg rounded-b-none rounded-r-none pt-0 h-full client-wrapper-bg-color",
|
|
89
|
+
c("div", {
|
|
90
|
+
class: b(["flex flex-1 flex-col rounded-lg rounded-b-none rounded-r-none pt-0 h-full client-wrapper-bg-color", T()])
|
|
87
91
|
}, [
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
92
|
+
c("div", ve, [
|
|
93
|
+
c("div", ge, [
|
|
94
|
+
c("button", {
|
|
91
95
|
class: "text-c-3 hover:bg-b-3 active:text-c-1 p-2 rounded",
|
|
92
96
|
type: "button",
|
|
93
|
-
onClick: o[0] || (o[0] = (t) =>
|
|
97
|
+
onClick: o[0] || (o[0] = (t) => l.value = !l.value)
|
|
94
98
|
}, [
|
|
95
99
|
r(e(y), {
|
|
96
|
-
icon:
|
|
100
|
+
icon: l.value ? "SideBarOpen" : "SideBarClosed",
|
|
97
101
|
size: "sm"
|
|
98
102
|
}, null, 8, ["icon"])
|
|
99
103
|
])
|
|
100
104
|
]),
|
|
101
|
-
r(
|
|
102
|
-
|
|
105
|
+
r(G),
|
|
106
|
+
c("div", he, [
|
|
103
107
|
e(i).isReadOnly ? (f(), w("button", {
|
|
104
108
|
key: 0,
|
|
105
109
|
class: "text-c-3 hover:bg-b-3 active:text-c-1 p-2 rounded",
|
|
106
110
|
type: "button",
|
|
107
|
-
onClick: o[1] || (o[1] = (t) => e(
|
|
111
|
+
onClick: o[1] || (o[1] = (t) => e(N).hide())
|
|
108
112
|
}, [
|
|
109
113
|
r(e(y), {
|
|
110
114
|
icon: "Close",
|
|
@@ -114,29 +118,29 @@ const fe = { class: "lg:min-h-header flex items-center w-full justify-center p-1
|
|
|
114
118
|
])) : _("", !0)
|
|
115
119
|
])
|
|
116
120
|
]),
|
|
117
|
-
r(
|
|
121
|
+
r(ee, null, {
|
|
118
122
|
default: m(() => [
|
|
119
|
-
|
|
120
|
-
class: b([
|
|
121
|
-
},
|
|
123
|
+
H(r(e(me), {
|
|
124
|
+
class: b([l.value ? "sidebar-active-width" : ""])
|
|
125
|
+
}, P({
|
|
122
126
|
content: m(() => [
|
|
123
|
-
r(
|
|
127
|
+
r(X, {
|
|
124
128
|
onOpenSearchModal: o[2] || (o[2] = (t) => e(v).show())
|
|
125
129
|
}),
|
|
126
|
-
|
|
130
|
+
c("div", {
|
|
127
131
|
class: "custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-12 pt-2.5",
|
|
128
132
|
onDragenter: o[3] || (o[3] = R(() => {
|
|
129
133
|
}, ["prevent"])),
|
|
130
134
|
onDragover: o[4] || (o[4] = R(() => {
|
|
131
135
|
}, ["prevent"]))
|
|
132
136
|
}, [
|
|
133
|
-
(f(!0), w(O, null,
|
|
137
|
+
(f(!0), w(O, null, J(e(I), (t, a) => (f(), k(ce, {
|
|
134
138
|
key: t.uid,
|
|
135
139
|
isDraggable: !e(i).isReadOnly,
|
|
136
140
|
isDroppable: !e(i).isReadOnly,
|
|
137
141
|
item: t,
|
|
138
142
|
parentUids: [],
|
|
139
|
-
onOnDragEnd: (...
|
|
143
|
+
onOnDragEnd: (...u) => z(t, a, ...u)
|
|
140
144
|
}, {
|
|
141
145
|
leftIcon: m(() => [
|
|
142
146
|
r(e(y), {
|
|
@@ -145,9 +149,9 @@ const fe = { class: "lg:min-h-header flex items-center w-full justify-center p-1
|
|
|
145
149
|
size: "sm",
|
|
146
150
|
thickness: "2"
|
|
147
151
|
}),
|
|
148
|
-
|
|
152
|
+
c("div", {
|
|
149
153
|
class: b({
|
|
150
|
-
"rotate-90": e(
|
|
154
|
+
"rotate-90": e(V)[t.uid]
|
|
151
155
|
})
|
|
152
156
|
}, [
|
|
153
157
|
r(e(y), {
|
|
@@ -162,12 +166,12 @@ const fe = { class: "lg:min-h-header flex items-center w-full justify-center p-1
|
|
|
162
166
|
], 32)
|
|
163
167
|
]),
|
|
164
168
|
button: m(() => [
|
|
165
|
-
e(i).isReadOnly ? _("", !0) : (f(), k(
|
|
169
|
+
e(i).isReadOnly ? _("", !0) : (f(), k(Z, {
|
|
166
170
|
key: 0,
|
|
167
|
-
click:
|
|
171
|
+
click: L
|
|
168
172
|
}, {
|
|
169
173
|
title: m(() => [
|
|
170
|
-
|
|
174
|
+
K("Add Item")
|
|
171
175
|
]),
|
|
172
176
|
_: 1
|
|
173
177
|
}))
|
|
@@ -177,23 +181,23 @@ const fe = { class: "lg:min-h-header flex items-center w-full justify-center p-1
|
|
|
177
181
|
e(i).isReadOnly ? void 0 : {
|
|
178
182
|
name: "header",
|
|
179
183
|
fn: m(() => [
|
|
180
|
-
r(e(
|
|
184
|
+
r(e(de))
|
|
181
185
|
]),
|
|
182
186
|
key: "0"
|
|
183
187
|
}
|
|
184
188
|
]), 1032, ["class"]), [
|
|
185
|
-
[
|
|
189
|
+
[Q, l.value]
|
|
186
190
|
]),
|
|
187
|
-
e(h) ? (f(), k(
|
|
191
|
+
e(h) ? (f(), k(te, {
|
|
188
192
|
key: 0,
|
|
189
|
-
class: b(["flex-1", [
|
|
193
|
+
class: b(["flex-1", [l.value ? "sidebar-active-hide-layout" : ""]])
|
|
190
194
|
}, {
|
|
191
195
|
default: m(() => {
|
|
192
|
-
var t,
|
|
196
|
+
var t, a, u, g, d;
|
|
193
197
|
return [
|
|
194
|
-
r(
|
|
195
|
-
r(
|
|
196
|
-
response: (d = (g = (t = e(
|
|
198
|
+
r(se),
|
|
199
|
+
r(ae, {
|
|
200
|
+
response: (d = (g = (t = e(n)) == null ? void 0 : t.history) == null ? void 0 : g[((u = (a = e(n)) == null ? void 0 : a.history) == null ? void 0 : u.length) - 1]) == null ? void 0 : d.response
|
|
197
201
|
}, null, 8, ["response"])
|
|
198
202
|
];
|
|
199
203
|
}),
|
|
@@ -203,10 +207,10 @@ const fe = { class: "lg:min-h-header flex items-center w-full justify-center p-1
|
|
|
203
207
|
_: 1
|
|
204
208
|
})
|
|
205
209
|
], 2),
|
|
206
|
-
r(
|
|
210
|
+
r(Y, { modalState: e(v) }, null, 8, ["modalState"])
|
|
207
211
|
], 64));
|
|
208
212
|
}
|
|
209
213
|
});
|
|
210
214
|
export {
|
|
211
|
-
|
|
215
|
+
je as default
|
|
212
216
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AAyIA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;;UAO1C,OAAO,GAAG,cAAc;;UAAxB,OAAO,GAAG,cAAc;;AAiVhC,wBAMG;AAOH,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"}
|
|
@@ -1,102 +1,100 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as q, computed as E, openBlock as m, createBlock as u, unref as e, withCtx as l, createVNode as t, createCommentVNode as R, createElementVNode as n } from "vue";
|
|
2
2
|
import { commandPaletteBus as z } from "../../libs/eventBusses/command-palette.js";
|
|
3
|
-
import { activeRouterParams as
|
|
4
|
-
import { useWorkspace as
|
|
5
|
-
import { ScalarDropdown as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
const
|
|
3
|
+
import { activeRouterParams as d, PathId as p } from "../../router.js";
|
|
4
|
+
import { useWorkspace as C, findRequestFolders as I } from "../../store/workspace.js";
|
|
5
|
+
import { ScalarDropdown as w, ScalarDropdownItem as o, ScalarIcon as s, ScalarDropdownDivider as S, ScalarButton as b } from "@scalar/components";
|
|
6
|
+
import { useRouter as A } from "vue-router";
|
|
7
|
+
const B = /* @__PURE__ */ n("span", null, "Add Example", -1), N = /* @__PURE__ */ n("span", null, "Rename", -1), M = /* @__PURE__ */ n("span", null, "Duplicate", -1), P = /* @__PURE__ */ n("span", null, "Delete", -1), j = /* @__PURE__ */ q({
|
|
8
8
|
__name: "RequestSidebarItemMenu",
|
|
9
9
|
props: {
|
|
10
10
|
item: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(f) {
|
|
13
|
+
const a = f, { activeWorkspace: c, requestMutators: _, requestExampleMutators: x } = C(), { replace: r } = A(), h = () => z.emit({
|
|
14
14
|
commandName: "Add Example",
|
|
15
|
-
metaData:
|
|
16
|
-
}),
|
|
15
|
+
metaData: a.item.uid
|
|
16
|
+
}), k = () => {
|
|
17
17
|
console.log("rename");
|
|
18
|
-
},
|
|
18
|
+
}, v = () => {
|
|
19
19
|
console.log("duplicate");
|
|
20
|
-
},
|
|
21
|
-
if ("requestUid" in
|
|
22
|
-
|
|
20
|
+
}, g = () => {
|
|
21
|
+
if ("requestUid" in a.item)
|
|
22
|
+
x.delete(a.item), d.value[p.Examples] === a.item.uid && r(`/workspace/${c.value}/request/default`);
|
|
23
23
|
else {
|
|
24
|
-
const
|
|
25
|
-
if (!
|
|
26
|
-
_.delete(
|
|
24
|
+
const i = I(a.item.uid);
|
|
25
|
+
if (!i.length) return;
|
|
26
|
+
_.delete(a.item, i[0]), d.value[p.Request] === a.item.uid && r(`/workspace/${c.value.uid}/request/default`);
|
|
27
27
|
}
|
|
28
|
-
},
|
|
29
|
-
return (
|
|
30
|
-
items:
|
|
31
|
-
|
|
28
|
+
}, D = E(() => "summary" in a.item);
|
|
29
|
+
return (i, V) => (m(), u(e(w), { teleport: "#scalar-client" }, {
|
|
30
|
+
items: l(() => [
|
|
31
|
+
D.value ? (m(), u(e(o), {
|
|
32
32
|
key: 0,
|
|
33
33
|
class: "flex !gap-2",
|
|
34
|
-
onClick:
|
|
34
|
+
onClick: h
|
|
35
35
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
t(e(
|
|
36
|
+
default: l(() => [
|
|
37
|
+
t(e(s), {
|
|
38
38
|
class: "inline-flex",
|
|
39
39
|
icon: "Add",
|
|
40
40
|
size: "sm"
|
|
41
41
|
}),
|
|
42
|
-
|
|
42
|
+
B
|
|
43
43
|
]),
|
|
44
44
|
_: 1
|
|
45
45
|
})) : R("", !0),
|
|
46
46
|
t(e(o), {
|
|
47
47
|
class: "flex !gap-2",
|
|
48
|
-
onClick:
|
|
48
|
+
onClick: k
|
|
49
49
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
t(e(
|
|
50
|
+
default: l(() => [
|
|
51
|
+
t(e(s), {
|
|
52
52
|
class: "inline-flex",
|
|
53
53
|
icon: "Edit",
|
|
54
54
|
size: "sm"
|
|
55
55
|
}),
|
|
56
|
-
|
|
56
|
+
N
|
|
57
57
|
]),
|
|
58
58
|
_: 1
|
|
59
59
|
}),
|
|
60
60
|
t(e(o), {
|
|
61
61
|
class: "flex !gap-2",
|
|
62
|
-
onClick:
|
|
62
|
+
onClick: v
|
|
63
63
|
}, {
|
|
64
|
-
default:
|
|
65
|
-
t(e(
|
|
64
|
+
default: l(() => [
|
|
65
|
+
t(e(s), {
|
|
66
66
|
class: "inline-flex",
|
|
67
67
|
icon: "Duplicate",
|
|
68
68
|
size: "sm"
|
|
69
69
|
}),
|
|
70
|
-
|
|
70
|
+
M
|
|
71
71
|
]),
|
|
72
72
|
_: 1
|
|
73
73
|
}),
|
|
74
|
-
t(e(
|
|
74
|
+
t(e(S)),
|
|
75
75
|
t(e(o), {
|
|
76
76
|
class: "flex !gap-2",
|
|
77
|
-
onClick:
|
|
77
|
+
onClick: g
|
|
78
78
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
t(e(
|
|
79
|
+
default: l(() => [
|
|
80
|
+
t(e(s), {
|
|
81
81
|
class: "inline-flex",
|
|
82
82
|
icon: "Trash",
|
|
83
83
|
size: "sm"
|
|
84
84
|
}),
|
|
85
|
-
|
|
85
|
+
P
|
|
86
86
|
]),
|
|
87
87
|
_: 1
|
|
88
88
|
})
|
|
89
89
|
]),
|
|
90
|
-
default:
|
|
91
|
-
t(e(
|
|
90
|
+
default: l(() => [
|
|
91
|
+
t(e(b), {
|
|
92
92
|
class: "z-10 hover:bg-b-3 transition-none p-1 group-hover:flex ui-open:flex absolute left-0 hidden -translate-x-full -ml-1",
|
|
93
93
|
size: "sm",
|
|
94
|
-
variant: "ghost"
|
|
95
|
-
onClick: m[0] || (m[0] = w(() => {
|
|
96
|
-
}, ["stop"]))
|
|
94
|
+
variant: "ghost"
|
|
97
95
|
}, {
|
|
98
|
-
default:
|
|
99
|
-
t(e(
|
|
96
|
+
default: l(() => [
|
|
97
|
+
t(e(s), {
|
|
100
98
|
icon: "Ellipses",
|
|
101
99
|
size: "sm"
|
|
102
100
|
})
|
|
@@ -109,5 +107,5 @@ const N = /* @__PURE__ */ i("span", null, "Add Example", -1), P = /* @__PURE__ *
|
|
|
109
107
|
}
|
|
110
108
|
});
|
|
111
109
|
export {
|
|
112
|
-
|
|
110
|
+
j as default
|
|
113
111
|
};
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.0.
|
|
21
|
+
"version": "2.0.26",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -118,14 +118,14 @@
|
|
|
118
118
|
"vue": "^3.4.29",
|
|
119
119
|
"vue-router": "^4.3.0",
|
|
120
120
|
"zod": "^3.22.4",
|
|
121
|
-
"@scalar/components": "0.12.
|
|
121
|
+
"@scalar/components": "0.12.17",
|
|
122
122
|
"@scalar/draggable": "0.1.3",
|
|
123
123
|
"@scalar/object-utils": "1.1.4",
|
|
124
|
+
"@scalar/oas-utils": "0.2.16",
|
|
124
125
|
"@scalar/themes": "0.9.15",
|
|
125
|
-
"@scalar/oas-utils": "0.2.15",
|
|
126
126
|
"@scalar/use-codemirror": "0.11.7",
|
|
127
|
-
"@scalar/use-
|
|
128
|
-
"@scalar/use-
|
|
127
|
+
"@scalar/use-tooltip": "1.0.2",
|
|
128
|
+
"@scalar/use-toasts": "0.7.4"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
131
|
"@types/content-type": "^1.1.8",
|