@scalar/api-client 2.2.26 → 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,15 @@
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
+
3
13
  ## 2.2.26
4
14
 
5
15
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AA8cA,wBAMG"}
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 w, withModifiers as h, createTextVNode as E, toDisplayString as k, createElementVNode as u, normalizeClass as V, createCommentVNode as z } from "vue";
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 m, ScalarListboxCheckbox as O, ScalarIcon as g, ScalarDropdownDivider as R, ScalarButton as $ } from "@scalar/components";
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: o, activeWorkspace: i, activeEnvironment: v } = W(), { isReadOnly: C, collectionMutators: _ } = F(), b = A(), d = (e) => {
10
- o.value && i.value && (_.edit(
11
- o.value.uid,
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 b.push({
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 } = v, { value: t } = o;
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 } = o, t = e == null ? void 0 : e["x-scalar-environments"];
28
- return t ? Object.entries(t).map(([a, r]) => ({
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: a,
31
- name: a
30
+ uid: o,
31
+ name: o
32
32
  })) : [];
33
33
  }), p = (e) => {
34
34
  const t = e["x-scalar-active-environment"];
35
- t && o.value && i.value ? (o.value["x-scalar-active-environment"] = t, i.value.activeEnvironmentId = t) : i.value && (i.value.activeEnvironmentId = "");
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(o, (e) => {
38
- p(e);
39
- }), D(() => {
40
- p(o.value);
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, (a) => (c(), w(n(m), {
45
- key: a.uid,
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: h((r) => d(a.uid), ["stop"])
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(o)) == null ? void 0 : r["x-scalar-active-environment"]) === a.uid
54
+ selected: ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === o.uid
54
55
  }, null, 8, ["selected"]),
55
- E(" " + k(a.name), 1)
56
+ E(" " + k(o.name), 1)
56
57
  ];
57
58
  }),
58
59
  _: 2
59
60
  }, 1032, ["onClick"]))), 128)),
60
- s(n(m), {
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] = h((a) => d(""), ["stop"]))
63
+ onClick: t[0] || (t[0] = w((o) => d(""), ["stop"]))
63
64
  }, {
64
65
  default: l(() => {
65
- var a, r;
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
- ((a = n(v)) == null ? void 0 : a.uid) === "" && ((r = n(o)) == null ? void 0 : r["x-scalar-active-environment"]) === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
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(C) ? z("", !0) : (c(), w(n(m), {
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.26";
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.26",
21
+ "version": "2.2.27",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -169,19 +169,19 @@
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/draggable": "0.1.8",
175
- "@scalar/openapi-parser": "0.10.2",
176
- "@scalar/import": "0.2.14",
175
+ "@scalar/import": "0.2.15",
177
176
  "@scalar/object-utils": "1.1.12",
177
+ "@scalar/oas-utils": "0.2.95",
178
178
  "@scalar/openapi-types": "0.1.5",
179
- "@scalar/postman-to-openapi": "0.1.17",
180
- "@scalar/oas-utils": "0.2.94",
181
- "@scalar/themes": "0.9.58",
179
+ "@scalar/openapi-parser": "0.10.2",
180
+ "@scalar/postman-to-openapi": "0.1.18",
182
181
  "@scalar/types": "0.0.25",
183
- "@scalar/use-codemirror": "0.11.54",
182
+ "@scalar/themes": "0.9.58",
184
183
  "@scalar/use-hooks": "0.1.11",
184
+ "@scalar/use-codemirror": "0.11.54",
185
185
  "@scalar/use-toasts": "0.7.7",
186
186
  "@scalar/use-tooltip": "1.0.4"
187
187
  },
@@ -200,8 +200,8 @@
200
200
  "vite": "^5.4.10",
201
201
  "vite-svg-loader": "^5.1.0",
202
202
  "vitest": "^1.6.0",
203
- "@scalar/galaxy": "0.2.16",
204
- "@scalar/build-tooling": "0.1.12"
203
+ "@scalar/build-tooling": "0.1.12",
204
+ "@scalar/galaxy": "0.2.16"
205
205
  },
206
206
  "scripts": {
207
207
  "build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",