@scalar/api-client 2.29.4 → 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 +95 -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/operation-block/OperationBlock.vue.d.ts +9 -69
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +74 -76
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +15 -8
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +29 -28
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +18 -21
- 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 +22 -21
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +12 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +12 -0
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- 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-address-bar-block/components/AddressBar.vue.d.ts +13 -8
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +97 -85
- 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/components/server/ServerDropdown.vue.d.ts +16 -5
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +27 -24
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +29 -14
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +57 -57
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
- package/dist/v2/features/app/components/AppSidebar.vue2.js +171 -148
- 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/app/helpers/routes.d.ts +42 -12
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +57 -26
- package/dist/v2/features/collection/OperationCollection.vue.d.ts +6 -0
- package/dist/v2/features/collection/OperationCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/OperationCollection.vue.js +83 -0
- package/dist/v2/features/collection/OperationCollection.vue2.js +4 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
- package/dist/v2/features/collection/components/Authentication.vue2.js +100 -49
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +9 -4
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +12 -10
- package/dist/v2/features/collection/components/Environment.vue.d.ts +9 -4
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Environment.vue.js +18 -16
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +6 -2
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
- package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -18
- package/dist/v2/features/collection/components/Overview.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Overview.vue.js +1 -1
- package/dist/v2/features/collection/components/Overview.vue2.js +177 -75
- package/dist/v2/features/collection/components/Servers.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue.js +154 -98
- package/dist/v2/features/collection/components/Settings.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +2 -1
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Tabs.vue.js +25 -27
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts +12 -0
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts.map +1 -0
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +13 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +61 -63
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts +5 -3
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-security.js +7 -8
- package/dist/v2/features/operation/helpers/get-selected-server.d.ts +8 -6
- package/dist/v2/features/operation/helpers/get-selected-server.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-server.js +2 -2
- package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -1
- package/dist/v2/helpers/drag-handle-factory.js +41 -41
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +25 -15
- 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 +17 -17
- 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,12 +1,11 @@
|
|
|
1
1
|
import { isAuthOptional as i } from "../../../blocks/scalar-auth-selector-block/helpers/is-auth-optional.js";
|
|
2
|
-
const
|
|
3
|
-
if (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} else if (e)
|
|
2
|
+
const f = (e, t, s = []) => {
|
|
3
|
+
if (t)
|
|
4
|
+
return t;
|
|
5
|
+
if (e)
|
|
7
6
|
return e;
|
|
8
|
-
const
|
|
9
|
-
return
|
|
7
|
+
const r = i(s), n = s[0];
|
|
8
|
+
return r || !n ? {
|
|
10
9
|
selectedIndex: -1,
|
|
11
10
|
selectedSchemes: []
|
|
12
11
|
} : {
|
|
@@ -15,5 +14,5 @@ const c = (e, t, s = [], r = !1) => {
|
|
|
15
14
|
};
|
|
16
15
|
};
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
f as getSelectedSecurity
|
|
19
18
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
|
-
import type { WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
|
|
3
2
|
/**
|
|
4
|
-
* Get the selected server
|
|
5
|
-
*
|
|
3
|
+
* Get the selected server from a list of servers and an optional selected-server URL.
|
|
4
|
+
* Works for both document-level and operation-level servers: the caller passes the
|
|
5
|
+
* appropriate selected URL (from document or operation).
|
|
6
6
|
*
|
|
7
|
-
* If
|
|
8
|
-
*
|
|
7
|
+
* - If selectedServerUrl is undefined and servers has items, returns the first server
|
|
8
|
+
* (user has not selected yet).
|
|
9
|
+
* - If selectedServerUrl is '' (user un-selected), returns null.
|
|
10
|
+
* - Otherwise returns the server whose url matches selectedServerUrl, or null.
|
|
9
11
|
*/
|
|
10
|
-
export declare const getSelectedServer: (
|
|
12
|
+
export declare const getSelectedServer: (servers: ServerObject[] | null, selectedServerUrl: string | undefined) => ServerObject | null;
|
|
11
13
|
//# sourceMappingURL=get-selected-server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-selected-server.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/operation/helpers/get-selected-server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;
|
|
1
|
+
{"version":3,"file":"get-selected-server.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/operation/helpers/get-selected-server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAEhG;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAC5B,SAAS,YAAY,EAAE,GAAG,IAAI,EAC9B,mBAAmB,MAAM,GAAG,SAAS,KACpC,YAAY,GAAG,IAcjB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const i = (n, t) => n?.length ? t === void 0 ? n[0] : t === "" ? null : n.find(({ url: u }) => u === t) ?? null : null;
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
i as getSelectedServer
|
|
4
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag-handle-factory.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/drag-handle-factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"drag-handle-factory.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/drag-handle-factory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAc,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAIpE,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,4CAA4C,CAAA;AAGnD,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,KAAK,CAAA;AA+SpD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,kCAG/B;IACD,KAAK,EAAE,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IAC9C,YAAY,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;CAC3C;mCAKuC,YAAY,gBAAgB,WAAW,KAAG,OAAO;iCA2DnD,YAAY,gBAAgB,WAAW,KAAG,OAAO;CAwEtF,CAAA"}
|
|
@@ -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
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-events.d.ts","sourceRoot":"","sources":["../../src/v2/workspace-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAkB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3G,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAA;AAExC,KAAK,IAAI,CAAC,CAAC,SAAS,MAAM,kBAAkB,IAAI,OAAO,CAAC;IACtD,eAAe,EAAE,CACf,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAC3B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAA;IAClF,cAAc,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACzE,CAAC,CAAA;AAEF,KAAK,KAAK,GAAG;KACV,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;CAC9C,CAAA;AA6BD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACjC,KAAK,EAAE,KAAK,CAAA;CACb,
|
|
1
|
+
{"version":3,"file":"workspace-events.d.ts","sourceRoot":"","sources":["../../src/v2/workspace-events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAkB,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE3G,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAA;AAExC,KAAK,IAAI,CAAC,CAAC,SAAS,MAAM,kBAAkB,IAAI,OAAO,CAAC;IACtD,eAAe,EAAE,CACf,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAC3B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAA;IAClF,cAAc,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACzE,CAAC,CAAA;AAEF,KAAK,KAAK,GAAG;KACV,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC;CAC9C,CAAA;AA6BD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,KAAK,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;IACjC,KAAK,EAAE,KAAK,CAAA;CACb,QAqSA"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { generateClientMutators as
|
|
1
|
+
import { generateClientMutators as n } from "@scalar/workspace-store/mutators";
|
|
2
2
|
import { computed as p } from "vue";
|
|
3
3
|
const r = (a, c, t) => async (o) => {
|
|
4
|
-
const
|
|
5
|
-
return await c(
|
|
4
|
+
const i = await t[a]?.onBeforeExecute?.(o) ?? o;
|
|
5
|
+
return await c(i), await t[a]?.onAfterExecute?.(i), i;
|
|
6
6
|
};
|
|
7
7
|
function l({
|
|
8
8
|
eventBus: a,
|
|
9
9
|
store: c,
|
|
10
10
|
hooks: t
|
|
11
11
|
}) {
|
|
12
|
-
const o = p(() =>
|
|
12
|
+
const o = p(() => n(c.value)), i = ({ collectionType: e }) => e === "document" ? o.value.active() : o.value.workspace();
|
|
13
13
|
a.on(
|
|
14
14
|
"workspace:update:active-proxy",
|
|
15
15
|
(e) => r("workspace:update:active-proxy", o.value.workspace().workspace.updateActiveProxy, t)(e)
|
|
@@ -39,9 +39,6 @@ function l({
|
|
|
39
39
|
), a.on(
|
|
40
40
|
"document:update:info",
|
|
41
41
|
(e) => r("document:update:info", o.value.active().document.updateDocumentInfo, t)(e)
|
|
42
|
-
), a.on(
|
|
43
|
-
"document:toggle:security",
|
|
44
|
-
(e) => r("document:toggle:security", o.value.active().document.toggleSecurity, t)(e)
|
|
45
42
|
), a.on(
|
|
46
43
|
"document:update:watch-mode",
|
|
47
44
|
(e) => r("document:update:watch-mode", o.value.active().document.updateWatchMode, t)(e)
|
|
@@ -53,28 +50,28 @@ function l({
|
|
|
53
50
|
(e) => r("document:delete:document", o.value.active().document.deleteDocument, t)(e)
|
|
54
51
|
), a.on(
|
|
55
52
|
"environment:upsert:environment",
|
|
56
|
-
(e) => r("environment:upsert:environment",
|
|
53
|
+
(e) => r("environment:upsert:environment", i(e).environment.upsertEnvironment, t)(e)
|
|
57
54
|
), a.on(
|
|
58
55
|
"environment:delete:environment",
|
|
59
|
-
(e) => r("environment:delete:environment",
|
|
56
|
+
(e) => r("environment:delete:environment", i(e).environment.deleteEnvironment, t)(e)
|
|
60
57
|
), a.on(
|
|
61
58
|
"environment:upsert:environment-variable",
|
|
62
59
|
(e) => r(
|
|
63
60
|
"environment:upsert:environment-variable",
|
|
64
|
-
|
|
61
|
+
i(e).environment.upsertEnvironmentVariable,
|
|
65
62
|
t
|
|
66
63
|
)(e)
|
|
67
64
|
), a.on(
|
|
68
65
|
"environment:delete:environment-variable",
|
|
69
66
|
(e) => r(
|
|
70
67
|
"environment:delete:environment-variable",
|
|
71
|
-
|
|
68
|
+
i(e).environment.deleteEnvironmentVariable,
|
|
72
69
|
t
|
|
73
70
|
)(e)
|
|
74
71
|
), a.on("cookie:upsert:cookie", async (e) => {
|
|
75
|
-
await r("cookie:upsert:cookie",
|
|
72
|
+
await r("cookie:upsert:cookie", i(e).cookie.upsertCookie, t)(e);
|
|
76
73
|
}), a.on("cookie:delete:cookie", async (e) => {
|
|
77
|
-
await r("cookie:delete:cookie",
|
|
74
|
+
await r("cookie:delete:cookie", i(e).cookie.deleteCookie, t)(e);
|
|
78
75
|
}), a.on(
|
|
79
76
|
"auth:delete:security-scheme",
|
|
80
77
|
(e) => r("auth:delete:security-scheme", o.value.active().auth.deleteSecurityScheme, t)(e)
|
|
@@ -94,6 +91,13 @@ function l({
|
|
|
94
91
|
o.value.active().auth.updateSelectedSecuritySchemes,
|
|
95
92
|
t
|
|
96
93
|
)(e)
|
|
94
|
+
), a.on(
|
|
95
|
+
"auth:clear:selected-security-schemes",
|
|
96
|
+
(e) => r(
|
|
97
|
+
"auth:clear:selected-security-schemes",
|
|
98
|
+
o.value.active().auth.clearSelectedSecuritySchemes,
|
|
99
|
+
t
|
|
100
|
+
)(e)
|
|
97
101
|
), a.on(
|
|
98
102
|
"auth:update:security-scheme-secrets",
|
|
99
103
|
(e) => r(
|
|
@@ -108,6 +112,9 @@ function l({
|
|
|
108
112
|
o.value.active().auth.clearSecuritySchemeSecrets,
|
|
109
113
|
t
|
|
110
114
|
)(e)
|
|
115
|
+
), a.on(
|
|
116
|
+
"server:initialize:servers",
|
|
117
|
+
(e) => r("server:initialize:servers", o.value.active().server.initializeServers, t)(e)
|
|
111
118
|
), a.on(
|
|
112
119
|
"server:add:server",
|
|
113
120
|
(e) => r("server:add:server", o.value.active().server.addServer, t)(e)
|
|
@@ -117,6 +124,9 @@ function l({
|
|
|
117
124
|
), a.on(
|
|
118
125
|
"server:delete:server",
|
|
119
126
|
(e) => r("server:delete:server", o.value.active().server.deleteServer, t)(e)
|
|
127
|
+
), a.on(
|
|
128
|
+
"server:clear:servers",
|
|
129
|
+
(e) => r("server:clear:servers", o.value.active().server.clearServers, t)(e)
|
|
120
130
|
), a.on(
|
|
121
131
|
"server:update:variables",
|
|
122
132
|
(e) => r("server:update:variables", o.value.active().server.updateServerVariables, t)(e)
|
|
@@ -134,8 +144,8 @@ function l({
|
|
|
134
144
|
t
|
|
135
145
|
)(e)
|
|
136
146
|
), a.on(
|
|
137
|
-
"operation:update:
|
|
138
|
-
(e) => r("operation:update:
|
|
147
|
+
"operation:update:meta",
|
|
148
|
+
(e) => r("operation:update:meta", o.value.active().operation.updateOperationMeta, t)(e)
|
|
139
149
|
), a.on(
|
|
140
150
|
"operation:delete:operation",
|
|
141
151
|
(e) => r("operation:delete:operation", o.value.active().operation.deleteOperation, t)(e)
|
|
@@ -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.
|
|
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.
|
|
21
|
+
"version": "2.31.1",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -327,26 +327,26 @@
|
|
|
327
327
|
"whatwg-mimetype": "4.0.0",
|
|
328
328
|
"yaml": "^2.8.0",
|
|
329
329
|
"zod": "^4.3.5",
|
|
330
|
-
"@scalar/components": "0.19.10",
|
|
331
330
|
"@scalar/analytics-client": "1.0.1",
|
|
331
|
+
"@scalar/components": "0.19.13",
|
|
332
332
|
"@scalar/draggable": "0.3.0",
|
|
333
|
+
"@scalar/helpers": "0.2.17",
|
|
333
334
|
"@scalar/icons": "0.5.3",
|
|
334
|
-
"@scalar/
|
|
335
|
-
"@scalar/
|
|
336
|
-
"@scalar/
|
|
337
|
-
"@scalar/
|
|
338
|
-
"@scalar/
|
|
339
|
-
"@scalar/object-utils": "1.2.30",
|
|
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/
|
|
343
|
-
"@scalar/
|
|
344
|
-
"@scalar/themes": "0.14.
|
|
345
|
-
"@scalar/
|
|
346
|
-
"@scalar/types": "0.6.8",
|
|
341
|
+
"@scalar/postman-to-openapi": "0.4.9",
|
|
342
|
+
"@scalar/snippetz": "0.6.18",
|
|
343
|
+
"@scalar/sidebar": "0.7.44",
|
|
344
|
+
"@scalar/themes": "0.14.2",
|
|
345
|
+
"@scalar/types": "0.6.9",
|
|
347
346
|
"@scalar/use-hooks": "0.3.7",
|
|
348
|
-
"@scalar/
|
|
349
|
-
"@scalar/use-
|
|
347
|
+
"@scalar/use-toasts": "0.9.1",
|
|
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",
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
"vitest": "4.0.16",
|
|
364
364
|
"@scalar/build-tooling": "0.4.1",
|
|
365
365
|
"@scalar/galaxy": "0.5.16",
|
|
366
|
-
"@scalar/pre-post-request-scripts": "0.2.
|
|
366
|
+
"@scalar/pre-post-request-scripts": "0.2.7"
|
|
367
367
|
},
|
|
368
368
|
"scripts": {
|
|
369
369
|
"build": "scalar-build-vite",
|