@scalar/api-client 2.31.0 → 2.31.1
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 +41 -0
- package/dist/components/DataTable/DataTableCell.vue.js +1 -1
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerSelector.vue.js +5 -5
- package/dist/components/Sidebar/Sidebar.vue.js +3 -3
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +20 -19
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +2 -2
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -7
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
- package/dist/v2/components/data-table/DataTableCell.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
- package/dist/v2/features/app/components/AppSidebar.vue2.js +1 -1
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +1 -1
- package/dist/v2/features/app/components/DownloadAppButton.vue2.js +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +21 -20
- package/dist/v2/features/operation/Operation.vue.js +1 -1
- package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -1
- package/dist/v2/helpers/drag-handle-factory.js +41 -41
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +16 -16
- package/dist/v2/helpers/remove-circular.d.ts +0 -15
- package/dist/v2/helpers/remove-circular.d.ts.map +0 -1
- package/dist/v2/helpers/remove-circular.js +0 -18
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import { sortByOrder as B } from "@scalar/helpers/array/sort-by-order";
|
|
2
|
-
import {
|
|
2
|
+
import { toJsonCompatible as k } from "@scalar/helpers/object/to-json-compatible";
|
|
3
|
+
import { dereference as j, escapeJsonPointer as A } from "@scalar/openapi-parser";
|
|
3
4
|
import { unpackProxyObject as x } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
4
5
|
import { getParentEntry as d, getOpenapiObject as h } from "@scalar/workspace-store/navigation";
|
|
5
6
|
import { toValue as b } from "vue";
|
|
6
|
-
|
|
7
|
-
const P = (r, t, n, a) => {
|
|
7
|
+
const P = (r, t, n, c) => {
|
|
8
8
|
if (t === -1 || n === -1 || t === n)
|
|
9
9
|
return null;
|
|
10
10
|
const o = [...r], [e] = o.splice(t, 1);
|
|
11
11
|
if (e === void 0)
|
|
12
12
|
return null;
|
|
13
|
-
const u = R(t, n,
|
|
13
|
+
const u = R(t, n, c, o.length);
|
|
14
14
|
return o.splice(u, 0, e), x(o, { depth: 1 });
|
|
15
|
-
}, R = (r, t, n,
|
|
15
|
+
}, R = (r, t, n, c) => {
|
|
16
16
|
const o = r < t;
|
|
17
|
-
return n === "after" ? o ? t : t + 1 : n === "before" ? o ? t - 1 : t : n === "into" ?
|
|
17
|
+
return n === "after" ? o ? t : t + 1 : n === "before" ? o ? t - 1 : t : n === "into" ? c : t;
|
|
18
18
|
}, y = (r, t) => t.includes(r.type), p = (r) => r.offset === "before" || r.offset === "after", m = (r) => r.offset === "into", l = (r, t) => !r.parent || !t.parent ? !1 : r.parent.id === t.parent.id, O = ({ store: r, entry: t }) => {
|
|
19
19
|
const n = d("document", t);
|
|
20
20
|
n && r.buildSidebar(n.name);
|
|
21
|
-
},
|
|
21
|
+
}, J = (r, t) => r["x-scalar-order"] ?? t.children?.map((c) => c.id) ?? [], w = (r, t, n, c) => {
|
|
22
22
|
const o = t.parent;
|
|
23
23
|
if (!o || !y(o, ["tag", "document"]))
|
|
24
24
|
return !1;
|
|
25
25
|
const e = h({ store: r, entry: o });
|
|
26
26
|
if (!e)
|
|
27
27
|
return !1;
|
|
28
|
-
const u =
|
|
28
|
+
const u = J(e, o), s = u.findIndex((f) => f === t.id), a = u.findIndex((f) => f === n.id), i = P(u, s, a, c);
|
|
29
29
|
return i ? (e["x-scalar-order"] = i, O({ store: r, entry: o }), !0) : !1;
|
|
30
|
-
},
|
|
31
|
-
const
|
|
32
|
-
n &&
|
|
33
|
-
},
|
|
34
|
-
r.paths?.[n.path]?.[n.method] && delete r.paths[n.path][n.method], t.paths ? (t.paths[n.path] || (t.paths[n.path] = {}), t.paths[n.path][n.method] =
|
|
30
|
+
}, M = (r, t, n) => {
|
|
31
|
+
const c = new Set(r.tags ?? []);
|
|
32
|
+
n && c.add(n.name), t && c.delete(t.name), r.tags = Array.from(c);
|
|
33
|
+
}, T = (r, t, n, c) => {
|
|
34
|
+
r.paths?.[n.path]?.[n.method] && delete r.paths[n.path][n.method], t.paths ? (t.paths[n.path] || (t.paths[n.path] = {}), t.paths[n.path][n.method] = c) : t.paths = {
|
|
35
35
|
[n.path]: {
|
|
36
|
-
[n.method]:
|
|
36
|
+
[n.method]: c
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
+
}, $ = (r, t, n) => {
|
|
40
|
+
const o = j(r).schema.paths?.[t]?.[n];
|
|
41
|
+
return k(o, { prefix: `#/paths/${A(t)}/${n}` });
|
|
39
42
|
}, C = (r, t, n) => {
|
|
40
|
-
const o =
|
|
41
|
-
|
|
42
|
-
}, F = (r, t, n) => {
|
|
43
|
-
const a = d("document", t), o = d("document", n);
|
|
44
|
-
if (!a || !o)
|
|
43
|
+
const c = d("document", t), o = d("document", n);
|
|
44
|
+
if (!c || !o)
|
|
45
45
|
return !1;
|
|
46
|
-
const e = h({ store: r, entry:
|
|
46
|
+
const e = h({ store: r, entry: c }), u = h({ store: r, entry: o });
|
|
47
47
|
if (!e || !u)
|
|
48
48
|
return !1;
|
|
49
|
-
const s =
|
|
49
|
+
const s = $(
|
|
50
50
|
x(e),
|
|
51
51
|
t.path,
|
|
52
52
|
t.method
|
|
53
53
|
);
|
|
54
54
|
if (!s)
|
|
55
55
|
return !1;
|
|
56
|
-
const
|
|
57
|
-
return
|
|
58
|
-
},
|
|
59
|
-
const o = r.workspace["x-scalar-order"] ?? [], e = Object.keys(r.workspace.documents), u = B(e, o, (f) => f), s = u.findIndex((f) => f === t.id),
|
|
56
|
+
const a = d("tag", t) ?? null, i = d("tag", n) ?? null;
|
|
57
|
+
return M(s, a, i), T(e, u, t, s), O({ store: r, entry: t }), O({ store: r, entry: n }), !0;
|
|
58
|
+
}, F = (r, t, n, c) => {
|
|
59
|
+
const o = r.workspace["x-scalar-order"] ?? [], e = Object.keys(r.workspace.documents), u = B(e, o, (f) => f), s = u.findIndex((f) => f === t.id), a = u.findIndex((f) => f === n.id), i = P(u, s, a, c);
|
|
60
60
|
return i ? (r.update("x-scalar-order", i), !0) : !1;
|
|
61
61
|
}, G = ({
|
|
62
62
|
store: r,
|
|
@@ -66,28 +66,28 @@ const P = (r, t, n, a) => {
|
|
|
66
66
|
const u = b(r);
|
|
67
67
|
if (!u)
|
|
68
68
|
return !1;
|
|
69
|
-
const s = t.getEntryById(o.id),
|
|
70
|
-
if (!s || !
|
|
69
|
+
const s = t.getEntryById(o.id), a = t.getEntryById(e.id);
|
|
70
|
+
if (!s || !a)
|
|
71
71
|
return !1;
|
|
72
72
|
if (s.type === "document")
|
|
73
|
-
return
|
|
73
|
+
return a.type !== "document" || !p(e) ? !1 : F(u, s, a, e.offset);
|
|
74
74
|
if (s.type === "tag")
|
|
75
|
-
return
|
|
75
|
+
return a.type !== "tag" || !p(e) || !l(s, a) ? !1 : w(
|
|
76
76
|
u,
|
|
77
77
|
s,
|
|
78
|
-
|
|
78
|
+
a,
|
|
79
79
|
e.offset
|
|
80
80
|
);
|
|
81
81
|
if (s.type === "operation") {
|
|
82
|
-
if (p(e) && l(s,
|
|
82
|
+
if (p(e) && l(s, a))
|
|
83
83
|
return w(
|
|
84
84
|
u,
|
|
85
85
|
s,
|
|
86
|
-
|
|
86
|
+
a,
|
|
87
87
|
e.offset
|
|
88
88
|
);
|
|
89
|
-
if (y(
|
|
90
|
-
return
|
|
89
|
+
if (y(a, ["tag", "document"]) && m(e))
|
|
90
|
+
return C(u, s, a);
|
|
91
91
|
}
|
|
92
92
|
return !1;
|
|
93
93
|
},
|
|
@@ -95,22 +95,22 @@ const P = (r, t, n, a) => {
|
|
|
95
95
|
const u = b(r);
|
|
96
96
|
if (!u)
|
|
97
97
|
return !1;
|
|
98
|
-
const s = t.getEntryById(o.id),
|
|
99
|
-
if (!s || !
|
|
98
|
+
const s = t.getEntryById(o.id), a = t.getEntryById(e.id);
|
|
99
|
+
if (!s || !a || s.type === "example")
|
|
100
100
|
return !1;
|
|
101
101
|
if (s.type === "document")
|
|
102
|
-
return
|
|
102
|
+
return a.type === "document" && p(e);
|
|
103
103
|
if (s.type === "tag")
|
|
104
|
-
return p(e) && l(s,
|
|
104
|
+
return p(e) && l(s, a);
|
|
105
105
|
if (s.type === "operation") {
|
|
106
|
-
const i = d("document",
|
|
106
|
+
const i = d("document", a), f = d("document", s);
|
|
107
107
|
if (!i || !f)
|
|
108
108
|
return !1;
|
|
109
109
|
const E = h({ store: u, entry: i });
|
|
110
110
|
if (!E)
|
|
111
111
|
return !1;
|
|
112
|
-
const D = l(s,
|
|
113
|
-
return p(e) && !D ? !1 : D ? p(e) || m(e) && y(
|
|
112
|
+
const D = l(s, a);
|
|
113
|
+
return p(e) && !D ? !1 : D ? p(e) || m(e) && y(a, ["tag", "document"]) : m(e) && y(a, ["tag", "document"]) && (f.id === i.id || E.paths?.[s.path]?.[s.method] === void 0);
|
|
114
114
|
}
|
|
115
115
|
return !1;
|
|
116
116
|
}
|
|
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b2f06757"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as re, useCssVars as ue, computed as v, ref as de, resolveComponent as ce, createElementBlock as I, createCommentVNode as c, openBlock as u, normalizeClass as g, unref as l, createVNode as m, withCtx as p, createBlock as f, withModifiers as
|
|
2
|
-
import { ScalarButton as k, ScalarIcon as
|
|
1
|
+
import { defineComponent as re, useCssVars as ue, computed as v, ref as de, resolveComponent as ce, createElementBlock as I, createCommentVNode as c, openBlock as u, normalizeClass as g, unref as l, createVNode as m, withCtx as p, createBlock as f, withModifiers as b, createElementVNode as o, toDisplayString as B, createTextVNode as W, renderSlot as L, Fragment as fe, renderList as me, nextTick as pe } from "vue";
|
|
2
|
+
import { ScalarButton as k, ScalarIcon as y, ScalarTooltip as G, ScalarSidebarGroupToggle as K } from "@scalar/components";
|
|
3
3
|
import { Draggable as ve } from "@scalar/draggable";
|
|
4
4
|
import { shouldIgnoreEntity as J } from "@scalar/oas-utils/helpers";
|
|
5
5
|
import { useRouter as ge, RouterLink as Q } from "vue-router";
|
|
6
|
-
import { useLayout as
|
|
7
|
-
import { useSidebar as
|
|
6
|
+
import { useLayout as be } from "../../hooks/useLayout.js";
|
|
7
|
+
import { useSidebar as ye } from "../../hooks/useSidebar.js";
|
|
8
8
|
import { PathId as R } from "../../routes.js";
|
|
9
9
|
import { useActiveEntities as he } from "../../store/active-entities.js";
|
|
10
10
|
import { useWorkspace as xe } from "../../store/store.js";
|
|
@@ -28,8 +28,8 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
28
28
|
emits: ["onDragEnd", "newTab", "openMenu"],
|
|
29
29
|
setup(t, { emit: X }) {
|
|
30
30
|
ue((n) => ({
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
v2bb71a6d: te.value,
|
|
32
|
+
b961af9e: ie.value
|
|
33
33
|
}));
|
|
34
34
|
const Z = X, { activeCollection: _, activeRequest: N, activeRouterParams: ee, activeWorkspace: x } = he(), {
|
|
35
35
|
collections: q,
|
|
@@ -41,7 +41,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
41
41
|
requestMutators: E,
|
|
42
42
|
requestExampleMutators: P,
|
|
43
43
|
events: V
|
|
44
|
-
} = xe(), h = ge(), { collapsedSidebarFolders: w, toggleSidebarFolder: z } =
|
|
44
|
+
} = xe(), h = ge(), { collapsedSidebarFolders: w, toggleSidebarFolder: z } = ye(), { layout: d } = be(), i = v(() => {
|
|
45
45
|
const n = q[t.uid], e = U[t.uid], r = T[t.uid], a = M[t.uid];
|
|
46
46
|
return n ? {
|
|
47
47
|
title: n.info?.title || "Untitled Collection",
|
|
@@ -170,7 +170,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
170
170
|
ref_key: "draggableRef",
|
|
171
171
|
ref: S,
|
|
172
172
|
ceiling: F.value.ceiling,
|
|
173
|
-
class: "gap-1/2 flex flex-1 flex-col text-base",
|
|
173
|
+
class: "gap-1/2 flex flex-1 flex-col text-base/5",
|
|
174
174
|
floor: F.value.floor,
|
|
175
175
|
isDraggable: t.isDraggable,
|
|
176
176
|
isDroppable: t.isDroppable,
|
|
@@ -182,7 +182,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
182
182
|
key: 0,
|
|
183
183
|
class: "group no-underline",
|
|
184
184
|
to: i.value.to,
|
|
185
|
-
onClick: e[1] || (e[1] =
|
|
185
|
+
onClick: e[1] || (e[1] = b(
|
|
186
186
|
(a) => oe(a, i.value),
|
|
187
187
|
["prevent"]
|
|
188
188
|
))
|
|
@@ -205,7 +205,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
205
205
|
size: "sm",
|
|
206
206
|
type: "button",
|
|
207
207
|
variant: "ghost",
|
|
208
|
-
onClick: e[0] || (e[0] =
|
|
208
|
+
onClick: e[0] || (e[0] = b(
|
|
209
209
|
(s) => n.$emit("openMenu", {
|
|
210
210
|
item: i.value,
|
|
211
211
|
parentUids: t.parentUids,
|
|
@@ -216,7 +216,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
216
216
|
))
|
|
217
217
|
}, {
|
|
218
218
|
default: p(() => [
|
|
219
|
-
m(l(
|
|
219
|
+
m(l(y), {
|
|
220
220
|
icon: "Ellipses",
|
|
221
221
|
size: "md"
|
|
222
222
|
})
|
|
@@ -268,7 +268,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
268
268
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
269
269
|
size: "sm",
|
|
270
270
|
variant: "ghost",
|
|
271
|
-
onClick: e[2] || (e[2] =
|
|
271
|
+
onClick: e[2] || (e[2] = b(
|
|
272
272
|
(a) => n.$emit("openMenu", {
|
|
273
273
|
item: i.value,
|
|
274
274
|
parentUids: t.parentUids,
|
|
@@ -279,7 +279,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
279
279
|
))
|
|
280
280
|
}, {
|
|
281
281
|
default: p(() => [
|
|
282
|
-
m(l(
|
|
282
|
+
m(l(y), {
|
|
283
283
|
icon: "Ellipses",
|
|
284
284
|
size: "md"
|
|
285
285
|
})
|
|
@@ -291,10 +291,10 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
291
291
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
292
292
|
size: "sm",
|
|
293
293
|
variant: "ghost",
|
|
294
|
-
onClick: e[3] || (e[3] =
|
|
294
|
+
onClick: e[3] || (e[3] = b((a) => j(i.value.entity.uid), ["stop", "prevent"]))
|
|
295
295
|
}, {
|
|
296
296
|
default: p(() => [
|
|
297
|
-
m(l(
|
|
297
|
+
m(l(y), {
|
|
298
298
|
icon: "Add",
|
|
299
299
|
size: "md",
|
|
300
300
|
thickness: "2"
|
|
@@ -311,7 +311,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
311
311
|
}, {
|
|
312
312
|
default: p(() => [
|
|
313
313
|
o("button", $e, [
|
|
314
|
-
m(l(
|
|
314
|
+
m(l(y), {
|
|
315
315
|
class: g(["ml-0.5 text-sm", Y.value]),
|
|
316
316
|
icon: "Watch",
|
|
317
317
|
size: "md",
|
|
@@ -323,7 +323,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
323
323
|
}, 8, ["content"])) : c("", !0),
|
|
324
324
|
o("span", {
|
|
325
325
|
class: "flex cursor-pointer items-center justify-center",
|
|
326
|
-
onClick: e[4] || (e[4] =
|
|
326
|
+
onClick: e[4] || (e[4] = b((a) => l(z)(i.value.entity.uid), ["stop", "prevent"]))
|
|
327
327
|
}, [
|
|
328
328
|
m(l(K), {
|
|
329
329
|
class: "text-c-3 hover:text-c-1 shrink-0",
|
|
@@ -359,7 +359,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
359
359
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
360
360
|
size: "sm",
|
|
361
361
|
variant: "ghost",
|
|
362
|
-
onClick: e[5] || (e[5] =
|
|
362
|
+
onClick: e[5] || (e[5] = b(
|
|
363
363
|
(a) => n.$emit("openMenu", {
|
|
364
364
|
item: i.value,
|
|
365
365
|
parentUids: t.parentUids,
|
|
@@ -370,7 +370,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
370
370
|
))
|
|
371
371
|
}, {
|
|
372
372
|
default: p(() => [
|
|
373
|
-
m(l(
|
|
373
|
+
m(l(y), {
|
|
374
374
|
icon: "Ellipses",
|
|
375
375
|
size: "md"
|
|
376
376
|
})
|
|
@@ -382,10 +382,10 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
382
382
|
class: "hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",
|
|
383
383
|
size: "sm",
|
|
384
384
|
variant: "ghost",
|
|
385
|
-
onClick: e[6] || (e[6] =
|
|
385
|
+
onClick: e[6] || (e[6] = b((a) => j(i.value.entity.uid), ["stop", "prevent"]))
|
|
386
386
|
}, {
|
|
387
387
|
default: p(() => [
|
|
388
|
-
m(l(
|
|
388
|
+
m(l(y), {
|
|
389
389
|
icon: "Add",
|
|
390
390
|
size: "md",
|
|
391
391
|
thickness: "2"
|
|
@@ -402,7 +402,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
402
402
|
}, {
|
|
403
403
|
default: p(() => [
|
|
404
404
|
o("button", We, [
|
|
405
|
-
m(l(
|
|
405
|
+
m(l(y), {
|
|
406
406
|
class: g(["ml-0.5 text-sm", Y.value]),
|
|
407
407
|
icon: "Watch",
|
|
408
408
|
size: "md",
|
|
@@ -414,7 +414,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
414
414
|
})) : c("", !0),
|
|
415
415
|
o("span", {
|
|
416
416
|
class: "flex cursor-pointer items-center justify-center",
|
|
417
|
-
onClick: e[7] || (e[7] =
|
|
417
|
+
onClick: e[7] || (e[7] = b((a) => l(z)(i.value.entity.uid), ["stop", "prevent"]))
|
|
418
418
|
}, [
|
|
419
419
|
m(l(K), {
|
|
420
420
|
class: "text-c-3 hover:text-c-1 shrink-0",
|
|
@@ -443,7 +443,7 @@ const qe = { class: "line-clamp-1 w-full pl-2 break-all" }, Ue = { class: "flex
|
|
|
443
443
|
onClick: e[12] || (e[12] = (a) => j(i.value.entity.uid))
|
|
444
444
|
}, {
|
|
445
445
|
default: p(() => [
|
|
446
|
-
m(l(
|
|
446
|
+
m(l(y), {
|
|
447
447
|
icon: "Add",
|
|
448
448
|
size: "sm"
|
|
449
449
|
}),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8e5d8a14"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -10,7 +10,7 @@ import { getMediaTypeConfig as U } from "../consts/mediaTypes.js";
|
|
|
10
10
|
const j = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"
|
|
13
|
-
}, D = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, F = { class: "text-xxs font-code leading-
|
|
13
|
+
}, D = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, F = { class: "text-xxs font-code leading-5" }, O = /* @__PURE__ */ B({
|
|
14
14
|
__name: "ResponseBody",
|
|
15
15
|
props: {
|
|
16
16
|
title: {},
|
|
@@ -59,7 +59,7 @@ const T = { class: "flex w-full items-center justify-between" }, E = {
|
|
|
59
59
|
s("div", {
|
|
60
60
|
ref_key: "contentContainer",
|
|
61
61
|
ref: a,
|
|
62
|
-
class: "text-xxs font-code h-full overflow-auto leading-
|
|
62
|
+
class: "text-xxs font-code h-full overflow-auto leading-6 whitespace-pre-wrap"
|
|
63
63
|
}, [
|
|
64
64
|
n.value ? (l(), i("div", N, p(n.value.message), 1)) : d("", !0),
|
|
65
65
|
o.value ? (l(), i("div", V, p(o.value), 1)) : d("", !0)
|
|
@@ -33,7 +33,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
|
|
|
33
33
|
}));
|
|
34
34
|
}, f = (u) => {
|
|
35
35
|
u?.createNew && g.name === "request" && p();
|
|
36
|
-
}, v = "2.31.
|
|
36
|
+
}, v = "2.31.1";
|
|
37
37
|
return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (u, e) => (l(), n("div", W, [
|
|
38
38
|
s("div", {
|
|
39
39
|
class: y(["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.31.
|
|
21
|
+
"version": "2.31.1",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -328,25 +328,25 @@
|
|
|
328
328
|
"yaml": "^2.8.0",
|
|
329
329
|
"zod": "^4.3.5",
|
|
330
330
|
"@scalar/analytics-client": "1.0.1",
|
|
331
|
-
"@scalar/components": "0.19.
|
|
331
|
+
"@scalar/components": "0.19.13",
|
|
332
332
|
"@scalar/draggable": "0.3.0",
|
|
333
|
-
"@scalar/helpers": "0.2.
|
|
333
|
+
"@scalar/helpers": "0.2.17",
|
|
334
334
|
"@scalar/icons": "0.5.3",
|
|
335
|
-
"@scalar/
|
|
336
|
-
"@scalar/
|
|
337
|
-
"@scalar/oas-utils": "0.8.
|
|
338
|
-
"@scalar/
|
|
339
|
-
"@scalar/
|
|
335
|
+
"@scalar/json-magic": "0.11.6",
|
|
336
|
+
"@scalar/import": "0.4.54",
|
|
337
|
+
"@scalar/oas-utils": "0.8.1",
|
|
338
|
+
"@scalar/openapi-parser": "0.24.16",
|
|
339
|
+
"@scalar/object-utils": "1.2.31",
|
|
340
340
|
"@scalar/openapi-types": "0.5.3",
|
|
341
|
-
"@scalar/postman-to-openapi": "0.4.
|
|
342
|
-
"@scalar/snippetz": "0.6.
|
|
343
|
-
"@scalar/sidebar": "0.7.
|
|
341
|
+
"@scalar/postman-to-openapi": "0.4.9",
|
|
342
|
+
"@scalar/snippetz": "0.6.18",
|
|
343
|
+
"@scalar/sidebar": "0.7.44",
|
|
344
344
|
"@scalar/themes": "0.14.2",
|
|
345
|
-
"@scalar/types": "0.6.
|
|
345
|
+
"@scalar/types": "0.6.9",
|
|
346
346
|
"@scalar/use-hooks": "0.3.7",
|
|
347
|
-
"@scalar/use-codemirror": "0.13.47",
|
|
348
347
|
"@scalar/use-toasts": "0.9.1",
|
|
349
|
-
"@scalar/
|
|
348
|
+
"@scalar/use-codemirror": "0.13.48",
|
|
349
|
+
"@scalar/workspace-store": "0.35.2"
|
|
350
350
|
},
|
|
351
351
|
"devDependencies": {
|
|
352
352
|
"@tailwindcss/vite": "^4.1.18",
|
|
@@ -362,8 +362,8 @@
|
|
|
362
362
|
"vite-svg-loader": "5.1.0",
|
|
363
363
|
"vitest": "4.0.16",
|
|
364
364
|
"@scalar/build-tooling": "0.4.1",
|
|
365
|
-
"@scalar/
|
|
366
|
-
"@scalar/
|
|
365
|
+
"@scalar/galaxy": "0.5.16",
|
|
366
|
+
"@scalar/pre-post-request-scripts": "0.2.7"
|
|
367
367
|
},
|
|
368
368
|
"scripts": {
|
|
369
369
|
"build": "scalar-build-vite",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
type RemoveCircularOptions = {
|
|
2
|
-
/** Prefix to add before the path in $ref values */
|
|
3
|
-
prefix?: string;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Recursively processes an object and replaces circular references with JSON Reference objects.
|
|
7
|
-
* When a circular reference is detected, it returns `{ $ref: "#/path/to/original" }`.
|
|
8
|
-
*
|
|
9
|
-
* @param obj - The object to process
|
|
10
|
-
* @param options - Configuration options
|
|
11
|
-
* @returns A new object with circular references replaced by $ref pointers
|
|
12
|
-
*/
|
|
13
|
-
export declare const removeCircular: <T>(obj: T, options?: RemoveCircularOptions) => T;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=remove-circular.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remove-circular.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/remove-circular.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG;IAC3B,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,EAAE,KAAK,CAAC,EAAE,UAAS,qBAA0B,KAAG,CAiC/E,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const n = (a, i = {}) => {
|
|
2
|
-
const { prefix: $ = "" } = i, e = /* @__PURE__ */ new WeakMap(), s = (r, c = "") => {
|
|
3
|
-
if (typeof r != "object" || r === null)
|
|
4
|
-
return r;
|
|
5
|
-
if (e.has(r))
|
|
6
|
-
return { $ref: `#${$}${e.get(r)}` };
|
|
7
|
-
if (e.set(r, c), Array.isArray(r))
|
|
8
|
-
return r.map((t, f) => s(t, `${c}/${f}`));
|
|
9
|
-
const u = {};
|
|
10
|
-
for (const [t, f] of Object.entries(r))
|
|
11
|
-
u[t] = s(f, `${c}/${t}`);
|
|
12
|
-
return u;
|
|
13
|
-
};
|
|
14
|
-
return s(a);
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
n as removeCircular
|
|
18
|
-
};
|