@scalar/api-client 2.2.25 → 2.2.27
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
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.2.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3156ecd: fix: revert migration change from earlier
|
|
8
|
+
- Updated dependencies [3156ecd]
|
|
9
|
+
- @scalar/oas-utils@0.2.95
|
|
10
|
+
- @scalar/import@0.2.15
|
|
11
|
+
- @scalar/postman-to-openapi@0.1.18
|
|
12
|
+
|
|
13
|
+
## 2.2.26
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [a36fada]
|
|
18
|
+
- @scalar/oas-utils@0.2.94
|
|
19
|
+
- @scalar/import@0.2.14
|
|
20
|
+
- @scalar/postman-to-openapi@0.1.17
|
|
21
|
+
|
|
3
22
|
## 2.2.25
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAgdA,wBAMG"}
|
|
@@ -1,73 +1,74 @@
|
|
|
1
|
-
import { defineComponent as N, computed as f, watch as B, onMounted as D, openBlock as c, createElementBlock as x, createVNode as s, unref as n, withCtx as l, Fragment as j, renderList as M, createBlock as
|
|
1
|
+
import { defineComponent as N, computed as f, watch as B, onMounted as D, openBlock as c, createElementBlock as x, createVNode as s, unref as n, withCtx as l, Fragment as j, renderList as M, createBlock as h, withModifiers as w, createTextVNode as E, toDisplayString as k, createElementVNode as u, normalizeClass as V, createCommentVNode as z } from "vue";
|
|
2
2
|
import { useActiveEntities as W } from "../../store/active-entities.js";
|
|
3
|
-
import { ScalarDropdown as L, ScalarDropdownItem as
|
|
3
|
+
import { ScalarDropdown as L, ScalarDropdownItem as v, ScalarListboxCheckbox as O, ScalarIcon as g, ScalarDropdownDivider as R, ScalarButton as $ } from "@scalar/components";
|
|
4
4
|
import { useRouter as A } from "vue-router";
|
|
5
5
|
import { useWorkspace as F } from "../../store/store.js";
|
|
6
6
|
const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap" }, q = { class: "flex items-center justify-center h-4 w-4" }, U = /* @__PURE__ */ N({
|
|
7
7
|
__name: "EnvironmentSelector",
|
|
8
8
|
setup(G) {
|
|
9
|
-
const { activeCollection:
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const { activeCollection: a, activeWorkspace: i, activeEnvironment: m } = W(), { isReadOnly: _, collectionMutators: b } = F(), C = A(), d = (e) => {
|
|
10
|
+
a.value && i.value && (b.edit(
|
|
11
|
+
a.value.uid,
|
|
12
12
|
"x-scalar-active-environment",
|
|
13
13
|
e
|
|
14
14
|
), i.value.activeEnvironmentId = e);
|
|
15
15
|
}, S = () => {
|
|
16
16
|
var e;
|
|
17
|
-
return
|
|
17
|
+
return C.push({
|
|
18
18
|
name: "environment",
|
|
19
19
|
params: {
|
|
20
20
|
environment: (e = i.value) == null ? void 0 : e.uid
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
}, y = f(() => {
|
|
24
|
-
const { value: e } =
|
|
24
|
+
const { value: e } = m, { value: t } = a;
|
|
25
25
|
return (e == null ? void 0 : e.uid) || (t == null ? void 0 : t["x-scalar-active-environment"]) || "Environment";
|
|
26
26
|
}), I = f(() => {
|
|
27
|
-
const { value: e } =
|
|
28
|
-
return t ? Object.entries(t).map(([
|
|
27
|
+
const { value: e } = a, t = e == null ? void 0 : e["x-scalar-environments"];
|
|
28
|
+
return t ? Object.entries(t).map(([o, r]) => ({
|
|
29
29
|
...r,
|
|
30
|
-
uid:
|
|
31
|
-
name:
|
|
30
|
+
uid: o,
|
|
31
|
+
name: o
|
|
32
32
|
})) : [];
|
|
33
33
|
}), p = (e) => {
|
|
34
34
|
const t = e["x-scalar-active-environment"];
|
|
35
|
-
t &&
|
|
35
|
+
t && a.value && i.value ? (a.value["x-scalar-active-environment"] = t, i.value.activeEnvironmentId = t) : i.value && (i.value.activeEnvironmentId = "");
|
|
36
36
|
};
|
|
37
|
-
return B(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
return B(
|
|
38
|
+
a,
|
|
39
|
+
(e) => e && p(e)
|
|
40
|
+
), D(() => {
|
|
41
|
+
a.value && p(a.value);
|
|
41
42
|
}), (e, t) => (c(), x("div", null, [
|
|
42
43
|
s(n(L), { placement: "bottom-end" }, {
|
|
43
44
|
items: l(() => [
|
|
44
|
-
(c(!0), x(j, null, M(I.value, (
|
|
45
|
-
key:
|
|
45
|
+
(c(!0), x(j, null, M(I.value, (o) => (c(), h(n(v), {
|
|
46
|
+
key: o.uid,
|
|
46
47
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
47
|
-
onClick:
|
|
48
|
+
onClick: w((r) => d(o.uid), ["stop"])
|
|
48
49
|
}, {
|
|
49
50
|
default: l(() => {
|
|
50
51
|
var r;
|
|
51
52
|
return [
|
|
52
53
|
s(n(O), {
|
|
53
|
-
selected: ((r = n(
|
|
54
|
+
selected: ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === o.uid
|
|
54
55
|
}, null, 8, ["selected"]),
|
|
55
|
-
E(" " + k(
|
|
56
|
+
E(" " + k(o.name), 1)
|
|
56
57
|
];
|
|
57
58
|
}),
|
|
58
59
|
_: 2
|
|
59
60
|
}, 1032, ["onClick"]))), 128)),
|
|
60
|
-
s(n(
|
|
61
|
+
s(n(v), {
|
|
61
62
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
62
|
-
onClick: t[0] || (t[0] =
|
|
63
|
+
onClick: t[0] || (t[0] = w((o) => d(""), ["stop"]))
|
|
63
64
|
}, {
|
|
64
65
|
default: l(() => {
|
|
65
|
-
var
|
|
66
|
+
var o, r;
|
|
66
67
|
return [
|
|
67
68
|
u("div", {
|
|
68
69
|
class: V([
|
|
69
70
|
"flex items-center justify-center rounded-full p-[3px] w-4 h-4",
|
|
70
|
-
((
|
|
71
|
+
((o = n(m)) == null ? void 0 : o.uid) === "" && ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
|
|
71
72
|
])
|
|
72
73
|
}, [
|
|
73
74
|
s(n(g), {
|
|
@@ -82,7 +83,7 @@ const T = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
|
|
|
82
83
|
_: 1
|
|
83
84
|
}),
|
|
84
85
|
s(n(R)),
|
|
85
|
-
n(
|
|
86
|
+
n(_) ? z("", !0) : (c(), h(n(v), {
|
|
86
87
|
key: 0,
|
|
87
88
|
class: "flex items-center gap-1.5",
|
|
88
89
|
onClick: S
|
|
@@ -17,7 +17,7 @@ const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
|
|
|
17
17
|
a.commandPalette.emit({ commandName: "Create Request" });
|
|
18
18
|
}, y = (i) => {
|
|
19
19
|
i != null && i.createNew && v.name === "request" && f();
|
|
20
|
-
}, h = "2.2.
|
|
20
|
+
}, h = "2.2.27";
|
|
21
21
|
return R(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (r(), l("div", K, [
|
|
22
22
|
o("div", {
|
|
23
23
|
class: k(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.2.
|
|
21
|
+
"version": "2.2.27",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -169,20 +169,20 @@
|
|
|
169
169
|
"whatwg-mimetype": "^4.0.0",
|
|
170
170
|
"yaml": "^2.4.5",
|
|
171
171
|
"zod": "^3.23.8",
|
|
172
|
+
"@scalar/draggable": "0.1.8",
|
|
172
173
|
"@scalar/components": "0.13.10",
|
|
173
174
|
"@scalar/icons": "0.1.2",
|
|
174
|
-
"@scalar/import": "0.2.
|
|
175
|
-
"@scalar/draggable": "0.1.8",
|
|
175
|
+
"@scalar/import": "0.2.15",
|
|
176
176
|
"@scalar/object-utils": "1.1.12",
|
|
177
|
-
"@scalar/oas-utils": "0.2.
|
|
178
|
-
"@scalar/openapi-parser": "0.10.2",
|
|
177
|
+
"@scalar/oas-utils": "0.2.95",
|
|
179
178
|
"@scalar/openapi-types": "0.1.5",
|
|
180
|
-
"@scalar/
|
|
181
|
-
"@scalar/
|
|
179
|
+
"@scalar/openapi-parser": "0.10.2",
|
|
180
|
+
"@scalar/postman-to-openapi": "0.1.18",
|
|
182
181
|
"@scalar/types": "0.0.25",
|
|
182
|
+
"@scalar/themes": "0.9.58",
|
|
183
|
+
"@scalar/use-hooks": "0.1.11",
|
|
183
184
|
"@scalar/use-codemirror": "0.11.54",
|
|
184
185
|
"@scalar/use-toasts": "0.7.7",
|
|
185
|
-
"@scalar/use-hooks": "0.1.11",
|
|
186
186
|
"@scalar/use-tooltip": "1.0.4"
|
|
187
187
|
},
|
|
188
188
|
"devDependencies": {
|