@scalar/api-client 2.1.28 → 2.1.30

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBarServerItem.vue.js +15 -15
  4. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  5. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  6. package/dist/components/DataTable/DataTableInput.vue2.js +43 -43
  7. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  8. package/dist/components/DataTable/DataTableInputSelect.vue.js +14 -14
  9. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  10. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +17 -17
  11. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  12. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +2 -2
  13. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  14. package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
  15. package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
  16. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +7 -7
  17. package/dist/layouts/App/create-api-client-app.d.ts +4 -4
  18. package/dist/layouts/Modal/create-api-client-modal.d.ts +8 -8
  19. package/dist/layouts/Web/create-api-client-web.d.ts +4 -4
  20. package/dist/libs/create-client.d.ts +4 -4
  21. package/dist/libs/hot-keys.d.ts +1 -1
  22. package/dist/libs/send-request.d.ts.map +1 -1
  23. package/dist/libs/send-request.js +63 -60
  24. package/dist/libs/string-template.d.ts.map +1 -1
  25. package/dist/libs/string-template.js +6 -6
  26. package/dist/store/request-example.d.ts +2 -2
  27. package/dist/store/store.d.ts +8 -8
  28. package/dist/store/workspace.d.ts +2 -2
  29. package/dist/style.css +1 -1
  30. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  31. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  32. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
  33. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  34. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  35. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  36. package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
  37. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  38. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  39. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  40. package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
  41. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.1.30
4
+
5
+ ### Patch Changes
6
+
7
+ - 6ecb7cc: fix: large response performance problems due to chrome bug, increase virtualization threshold
8
+ - 32ad241: fix: favors accent over blur color for active elment state
9
+ - Updated dependencies [2b540b9]
10
+ - Updated dependencies [32ad241]
11
+ - @scalar/openapi-types@0.1.4
12
+ - @scalar/components@0.12.57
13
+ - @scalar/oas-utils@0.2.60
14
+ - @scalar/openapi-parser@0.8.7
15
+ - @scalar/types@0.0.17
16
+ - @scalar/use-codemirror@0.11.24
17
+ - @scalar/themes@0.9.41
18
+
19
+ ## 2.1.29
20
+
21
+ ### Patch Changes
22
+
23
+ - c658a7a: fix: support server variables in request sending
24
+ - d51d303: fix: add environment variables in auth request fields
25
+
3
26
  ## 2.1.28
4
27
 
5
28
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBarServerItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServerItem.vue"],"names":[],"mappings":"AAuEA,MAAM,MAAM,YAAY,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;;kBAIxC,YAAY;UACpB,YAAY,GAAG,SAAS;;kBADhB,YAAY;UACpB,YAAY,GAAG,SAAS;;AAJhC,wBAkKK"}
1
+ {"version":3,"file":"AddressBarServerItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServerItem.vue"],"names":[],"mappings":"AAuEA,MAAM,MAAM,YAAY,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;;kBAIxC,YAAY;UACpB,YAAY,GAAG,SAAS;;kBADhB,YAAY;UACpB,YAAY,GAAG,SAAS;;AAJhC,wBAiKK"}
@@ -1,25 +1,25 @@
1
- import { defineComponent as v, openBlock as f, createBlock as m, unref as i, withCtx as S, createElementVNode as l, normalizeClass as x, createVNode as h, toDisplayString as w } from "vue";
1
+ import { defineComponent as v, openBlock as f, createBlock as m, unref as i, withCtx as S, createElementVNode as a, normalizeClass as x, createVNode as h, toDisplayString as w } from "vue";
2
2
  import { ScalarDropdownItem as k, ScalarIcon as C } from "@scalar/components";
3
- import { useWorkspace as b } from "../../store/store.js";
4
- const g = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, B = /* @__PURE__ */ v({
3
+ import { useWorkspace as g } from "../../store/store.js";
4
+ const y = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, B = /* @__PURE__ */ v({
5
5
  __name: "AddressBarServerItem",
6
6
  props: {
7
7
  serverOption: {},
8
8
  type: {}
9
9
  },
10
- setup(a) {
11
- const r = a, {
10
+ setup(l) {
11
+ const r = l, {
12
12
  activeCollection: o,
13
13
  activeRequest: s,
14
14
  activeServer: n,
15
- collectionMutators: p,
16
- requestMutators: c
17
- } = b(), d = (e) => {
18
- r.type === "collection" && o.value ? p.edit(
15
+ collectionMutators: c,
16
+ requestMutators: p
17
+ } = g(), d = (e) => {
18
+ r.type === "collection" && o.value ? c.edit(
19
19
  o.value.uid,
20
20
  "selectedServerUid",
21
21
  e
22
- ) : r.type === "request" && s.value && c.edit(
22
+ ) : r.type === "request" && s.value && p.edit(
23
23
  s.value.uid,
24
24
  "selectedServerUid",
25
25
  e
@@ -31,13 +31,13 @@ const g = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, B = /* @
31
31
  return (e, t) => (f(), m(i(k), {
32
32
  class: "flex !gap-1.5 group font-code text-xxs whitespace-nowrap text-ellipsis overflow-hidden",
33
33
  value: e.serverOption.id,
34
- onClick: t[0] || (t[0] = (y) => d(e.serverOption.id))
34
+ onClick: t[0] || (t[0] = (O) => d(e.serverOption.id))
35
35
  }, {
36
36
  default: S(() => [
37
- l("div", {
37
+ a("div", {
38
38
  class: x([
39
- "flex size-4 items-center justify-center rounded-full p-[3px] group-hover:shadow-border",
40
- u(e.serverOption.id) ? "bg-blue text-b-1" : "text-transparent"
39
+ "flex size-4 items-center justify-center rounded-full p-[3px]",
40
+ u(e.serverOption.id) ? "bg-c-accent text-b-1" : "group-hover:shadow-border text-transparent"
41
41
  ])
42
42
  }, [
43
43
  h(i(C), {
@@ -46,7 +46,7 @@ const g = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, B = /* @
46
46
  thickness: "3.5"
47
47
  })
48
48
  ], 2),
49
- l("span", g, w(e.serverOption.label), 1)
49
+ a("span", y, w(e.serverOption.label), 1)
50
50
  ]),
51
51
  _: 1
52
52
  }, 8, ["value"]));
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AA6NA,iBAAS,cAAc;qBAkKM,GAAG;qBACF,GAAG;kBACN,GAAG;EA6B7B;AACD,QAAA,MAAM,eAAe;SA7QZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;SAXP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;cAPD,OAAO;2BAGM,OAAO;cACpB,OAAO;6EAkRpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAexG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AA0OA,iBAAS,cAAc;qBAiNM,GAAG;qBACF,GAAG;kBACN,GAAG;EA6B7B;AACD,QAAA,MAAM,eAAe;SAtTZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;SAXP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;cAPD,OAAO;2BAGM,OAAO;cACpB,OAAO;6EA2TpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAexG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import t from "./DataTableInput.vue2.js";
2
2
  /* empty css */
3
- import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-04bdd5dd"]]);
3
+ import a from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ a(t, [["__scopeId", "data-v-0417d80a"]]);
5
5
  export {
6
- r as default
6
+ m as default
7
7
  };
@@ -1,17 +1,18 @@
1
- import { defineComponent as h, ref as d, computed as k, openBlock as a, createBlock as i, normalizeClass as b, withCtx as B, createElementBlock as r, renderSlot as p, createCommentVNode as s, createElementVNode as m, Fragment as C, mergeProps as $, unref as x } from "vue";
1
+ import { defineComponent as V, ref as d, computed as w, openBlock as l, createBlock as i, normalizeClass as b, withCtx as k, createElementBlock as s, renderSlot as m, createCommentVNode as u, createElementVNode as C, Fragment as B, createVNode as g, mergeProps as $, unref as h } from "vue";
2
+ import x from "../CodeInput/CodeInput.vue.js";
2
3
  import { ScalarIconButton as q } from "@scalar/components";
3
4
  import A from "./DataTableCell.vue.js";
4
5
  import E from "./DataTableInputSelect.vue.js";
5
6
  const F = {
6
7
  key: 0,
7
8
  class: "text-c-2 flex min-w-[120px] items-center border-r-1/2 pl-2 pr-0"
8
- }, I = { class: "row-1" }, O = ["id", "max", "min", "readOnly", "required", "type", "value"], S = {
9
+ }, I = { class: "row-1" }, O = {
9
10
  key: 0,
10
11
  class: "absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-focus:opacity-0"
11
- }, P = {
12
+ }, S = {
12
13
  key: 1,
13
14
  class: "absolute centered-y right-7 text-orange text-xs"
14
- }, _ = /* @__PURE__ */ h({
15
+ }, U = /* @__PURE__ */ V({
15
16
  inheritAttrs: !1,
16
17
  __name: "DataTableInput",
17
18
  props: {
@@ -27,65 +28,64 @@ const F = {
27
28
  max: {}
28
29
  },
29
30
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
30
- setup(c, { emit: f }) {
31
- const o = c, n = f, l = d(!0), y = d(""), v = d(!1), w = () => {
32
- v.value || n("inputBlur");
33
- }, V = k(
34
- () => o.type === "password" ? l.value ? "password" : "text" : o.type ?? "text"
35
- ), g = (e) => {
36
- const t = e.target;
37
- y.value = t.value, n("update:modelValue", t.value);
38
- };
39
- return (e, t) => (a(), i(A, {
31
+ setup(p, { emit: c }) {
32
+ const o = p, r = c, a = d(!0);
33
+ d("");
34
+ const f = d(!1), y = () => {
35
+ f.value || r("inputBlur");
36
+ }, v = w(
37
+ () => o.type === "password" ? a.value ? "password" : "text" : o.type ?? "text"
38
+ );
39
+ return (e, t) => (l(), i(A, {
40
40
  class: b(["relative row", e.containerClass])
41
41
  }, {
42
- default: B(() => [
43
- e.$slots.default ? (a(), r("div", F, [
44
- p(e.$slots, "default", {}, void 0, !0)
45
- ])) : s("", !0),
46
- m("div", I, [
47
- o.enum && o.enum.length ? (a(), i(E, {
42
+ default: k(() => [
43
+ e.$slots.default ? (l(), s("div", F, [
44
+ m(e.$slots, "default", {}, void 0, !0)
45
+ ])) : u("", !0),
46
+ C("div", I, [
47
+ o.enum && o.enum.length ? (l(), i(E, {
48
48
  key: 0,
49
49
  canAddCustomValue: e.canAddCustomEnumValue,
50
50
  modelValue: o.modelValue,
51
51
  value: o.enum,
52
- "onUpdate:modelValue": t[0] || (t[0] = (u) => n("update:modelValue", u))
53
- }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (a(), r(C, { key: 1 }, [
54
- m("input", $(e.$attrs, {
52
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => r("update:modelValue", n))
53
+ }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (l(), s(B, { key: 1 }, [
54
+ g(x, $(e.$attrs, {
55
55
  id: e.id,
56
- autocomplete: "off",
57
- class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer px-2 py-1.5 outline-none",
58
- "data-1p-ignore": "",
56
+ class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer outline-none",
57
+ disableCloseBrackets: "",
58
+ disableTabIndent: "",
59
59
  max: e.max,
60
60
  min: e.min,
61
+ modelValue: e.modelValue ?? "",
61
62
  readOnly: e.readOnly,
62
63
  required: e.required,
63
64
  spellcheck: "false",
64
- type: V.value,
65
- value: e.modelValue,
66
- onBlur: w,
67
- onFocus: t[1] || (t[1] = (u) => n("inputFocus")),
68
- onInput: g
69
- }), null, 16, O),
70
- e.required ? (a(), r("div", S, " Required ")) : s("", !0)
65
+ type: v.value,
66
+ onBlur: y,
67
+ onFocus: t[1] || (t[1] = (n) => r("inputFocus")),
68
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => r("update:modelValue", n))
69
+ }), null, 16, ["id", "max", "min", "modelValue", "readOnly", "required", "type"]),
70
+ e.required ? (l(), s("div", O, " Required ")) : u("", !0)
71
71
  ], 64))
72
72
  ]),
73
- e.$slots.warning ? (a(), r("div", P, [
74
- p(e.$slots, "warning", {}, void 0, !0)
75
- ])) : s("", !0),
76
- p(e.$slots, "icon", {}, void 0, !0),
77
- e.type === "password" ? (a(), i(x(q), {
73
+ e.$slots.warning ? (l(), s("div", S, [
74
+ m(e.$slots, "warning", {}, void 0, !0)
75
+ ])) : u("", !0),
76
+ m(e.$slots, "icon", {}, void 0, !0),
77
+ e.type === "password" ? (l(), i(h(q), {
78
78
  key: 2,
79
79
  class: "-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
80
- icon: l.value ? "Show" : "Hide",
81
- label: l.value ? "Show Password" : "Hide Password",
82
- onClick: t[2] || (t[2] = (u) => l.value = !l.value)
83
- }, null, 8, ["icon", "label"])) : s("", !0)
80
+ icon: a.value ? "Show" : "Hide",
81
+ label: a.value ? "Show Password" : "Hide Password",
82
+ onClick: t[3] || (t[3] = (n) => a.value = !a.value)
83
+ }, null, 8, ["icon", "label"])) : u("", !0)
84
84
  ]),
85
85
  _: 3
86
86
  }, 8, ["class"]));
87
87
  }
88
88
  });
89
89
  export {
90
- _ as default
90
+ U as default
91
91
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":";gBA8IgB,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;gBAFf,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;uBAAP,OAAO;;AAoU/B,wBAUG"}
1
+ {"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":";gBAgJgB,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;gBAFf,MAAM,GAAG,MAAM;YACnB,MAAM,EAAE;wBACI,OAAO;;;;uBAAP,OAAO;;AAuU/B,wBAUG"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, computed as z, ref as i, watch as V, nextTick as A, openBlock as n, createElementBlock as p, withDirectives as N, withKeys as T, vModelText as j, createBlock as m, unref as a, withCtx as r, Fragment as I, renderList as E, createElementVNode as d, normalizeClass as K, createVNode as c, createTextVNode as R, toDisplayString as k, createCommentVNode as $ } from "vue";
1
+ import { defineComponent as b, computed as z, ref as i, watch as V, nextTick as A, openBlock as u, createElementBlock as p, withDirectives as N, withKeys as T, vModelText as j, createBlock as m, unref as a, withCtx as r, Fragment as I, renderList as E, createElementVNode as d, normalizeClass as K, createVNode as c, createTextVNode as R, toDisplayString as k, createCommentVNode as $ } from "vue";
2
2
  import { ScalarDropdown as F, ScalarDropdownItem as y, ScalarIcon as f, ScalarDropdownDivider as L, ScalarButton as M } from "@scalar/components";
3
3
  const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex items-center justify-center h-4 w-4" }, O = /* @__PURE__ */ b({
4
4
  __name: "DataTableInputSelect",
@@ -9,42 +9,42 @@ const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex ite
9
9
  },
10
10
  emits: ["update:modelValue"],
11
11
  setup(C, { emit: g }) {
12
- const v = C, x = g, S = z(() => v.value ?? []), o = i(v.modelValue.toString()), s = i(!1), u = i(""), h = i(null);
13
- V(u, (e) => {
12
+ const v = C, x = g, S = z(() => v.value ?? []), o = i(v.modelValue.toString()), s = i(!1), n = i(""), h = i(null);
13
+ V(n, (e) => {
14
14
  x("update:modelValue", e);
15
15
  });
16
16
  const w = (e) => {
17
17
  o.value = e, x("update:modelValue", e), s.value = !1;
18
18
  }, _ = () => {
19
- u.value.trim() && (w(u.value), u.value = "");
19
+ n.value.trim() && (w(n.value), n.value = "");
20
20
  }, D = () => {
21
- u.value.trim() || (o.value = "", s.value = !1);
21
+ n.value.trim() || (o.value = "", s.value = !1);
22
22
  }, B = (e) => o.value === e;
23
23
  return V(s, (e) => {
24
24
  e && A(() => {
25
25
  var t;
26
26
  (t = h.value) == null || t.focus();
27
27
  });
28
- }), (e, t) => (n(), p("div", U, [
29
- s.value ? N((n(), p("input", {
28
+ }), (e, t) => (u(), p("div", U, [
29
+ s.value ? N((u(), p("input", {
30
30
  key: 0,
31
31
  ref_key: "inputRef",
32
32
  ref: h,
33
- "onUpdate:modelValue": t[0] || (t[0] = (l) => u.value = l),
33
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => n.value = l),
34
34
  class: "border-none text-c-1 min-w-0 w-full px-2 py-1.5 outline-none",
35
35
  placeholder: "Value",
36
36
  type: "text",
37
37
  onBlur: D,
38
38
  onKeyup: T(_, ["enter"])
39
39
  }, null, 544)), [
40
- [j, u.value]
41
- ]) : (n(), m(a(F), {
40
+ [j, n.value]
41
+ ]) : (u(), m(a(F), {
42
42
  key: 1,
43
43
  resize: "",
44
44
  value: o.value
45
45
  }, {
46
46
  items: r(() => [
47
- (n(!0), p(I, null, E(S.value, (l) => (n(), m(a(y), {
47
+ (u(!0), p(I, null, E(S.value, (l) => (u(), m(a(y), {
48
48
  key: l,
49
49
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
50
50
  value: l,
@@ -53,8 +53,8 @@ const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex ite
53
53
  default: r(() => [
54
54
  d("div", {
55
55
  class: K([
56
- "flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
57
- B(l) ? "bg-blue text-b-1" : "text-transparent"
56
+ "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
57
+ B(l) ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
58
58
  ])
59
59
  }, [
60
60
  c(a(f), {
@@ -68,7 +68,7 @@ const U = { class: "w-full" }, W = { class: "text-c-1" }, q = { class: "flex ite
68
68
  _: 2
69
69
  }, 1032, ["value", "onClick"]))), 128)),
70
70
  c(a(L)),
71
- e.canAddCustomValue ? (n(), m(a(y), {
71
+ e.canAddCustomValue ? (u(), m(a(y), {
72
72
  key: 0,
73
73
  class: "flex items-center gap-1.5",
74
74
  onClick: t[1] || (t[1] = (l) => s.value = !0)
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAmdA,wBAKG"}
1
+ {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAidA,wBAKG"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as y, computed as S, openBlock as l, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as N, renderList as D, createBlock as v, withModifiers as x, createElementVNode as s, normalizeClass as h, createTextVNode as d, toDisplayString as w, createCommentVNode as j } from "vue";
2
- import { ScalarDropdown as z, ScalarDropdownItem as u, ScalarIcon as c, ScalarDropdownDivider as B, ScalarButton as I } from "@scalar/components";
1
+ import { defineComponent as y, computed as S, openBlock as c, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as N, renderList as D, createBlock as v, withModifiers as x, createElementVNode as s, normalizeClass as h, createTextVNode as d, toDisplayString as w, createCommentVNode as j } from "vue";
2
+ import { ScalarDropdown as z, ScalarDropdownItem as u, ScalarIcon as l, ScalarDropdownDivider as B, ScalarButton as I } from "@scalar/components";
3
3
  import { useRouter as V } from "vue-router";
4
4
  import { useWorkspace as M } from "../../store/store.js";
5
5
  const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace-nowrap" }, $ = { class: "flex items-center justify-center h-4 w-4" }, A = /* @__PURE__ */ y({
@@ -10,18 +10,18 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
10
10
  activeWorkspace: i,
11
11
  workspaceMutators: k,
12
12
  activeEnvironment: g,
13
- isReadOnly: b
14
- } = M(), C = V(), p = (a) => {
13
+ isReadOnly: C
14
+ } = M(), E = V(), p = (a) => {
15
15
  k.edit(i.value.uid, "activeEnvironmentId", a);
16
- }, E = () => C.push(`/workspace/${i.value.uid}/environment`), _ = S(() => [
16
+ }, _ = () => E.push(`/workspace/${i.value.uid}/environment`), b = S(() => [
17
17
  // Always add the default environment
18
18
  m.default,
19
19
  ...Object.values(m).filter((a) => a.uid !== "default")
20
20
  ]);
21
- return (a, o) => (l(), f("div", null, [
21
+ return (a, o) => (c(), f("div", null, [
22
22
  n(e(z), null, {
23
23
  items: r(() => [
24
- (l(!0), f(N, null, D(_.value, (t) => (l(), v(e(u), {
24
+ (c(!0), f(N, null, D(b.value, (t) => (c(), v(e(u), {
25
25
  key: t.uid,
26
26
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
27
27
  onClick: x((R) => p(t.uid), ["stop"])
@@ -29,11 +29,11 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
29
29
  default: r(() => [
30
30
  s("div", {
31
31
  class: h([
32
- "flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
33
- e(i).activeEnvironmentId === t.uid ? "bg-blue text-b-1" : "text-transparent"
32
+ "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
33
+ e(i).activeEnvironmentId === t.uid ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
34
34
  ])
35
35
  }, [
36
- n(e(c), {
36
+ n(e(l), {
37
37
  class: "size-2.5",
38
38
  icon: "Checkmark",
39
39
  thickness: "3.5"
@@ -50,11 +50,11 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
50
50
  default: r(() => [
51
51
  s("div", {
52
52
  class: h([
53
- "flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
54
- e(i).activeEnvironmentId === "" ? "bg-blue text-b-1" : "text-transparent"
53
+ "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
54
+ e(i).activeEnvironmentId === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
55
55
  ])
56
56
  }, [
57
- n(e(c), {
57
+ n(e(l), {
58
58
  class: "size-2.5",
59
59
  icon: "Checkmark",
60
60
  thickness: "3.5"
@@ -65,14 +65,14 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
65
65
  _: 1
66
66
  }),
67
67
  n(e(B)),
68
- e(b) ? j("", !0) : (l(), v(e(u), {
68
+ e(C) ? j("", !0) : (c(), v(e(u), {
69
69
  key: 0,
70
70
  class: "flex items-center gap-1.5",
71
- onClick: E
71
+ onClick: _
72
72
  }, {
73
73
  default: r(() => [
74
74
  s("div", $, [
75
- n(e(c), {
75
+ n(e(l), {
76
76
  icon: "Brackets",
77
77
  size: "sm"
78
78
  })
@@ -93,7 +93,7 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
93
93
  return [
94
94
  s("h2", W, [
95
95
  d(w(((t = e(g)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
96
- n(e(c), {
96
+ n(e(l), {
97
97
  class: "size-3",
98
98
  icon: "ChevronDown",
99
99
  thickness: "3"
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/WorkspaceSelector.vue"],"names":[],"mappings":";AAieA,wBAKG"}
1
+ {"version":3,"file":"WorkspaceSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/WorkspaceSelector.vue"],"names":[],"mappings":";AAgeA,wBAKG"}
@@ -30,8 +30,8 @@ const L = { class: "flex items-center text-sm w-[inherit]" }, P = { class: "font
30
30
  default: r(() => [
31
31
  t("div", {
32
32
  class: M([
33
- "flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
34
- e(i).uid === p ? "bg-blue text-b-1" : "text-transparent"
33
+ "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
34
+ e(i).uid === p ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
35
35
  ])
36
36
  }, [
37
37
  s(e(u), {
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;qBA2BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayout.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;qBAwBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,12 +1,12 @@
1
- import { openBlock as o, createElementBlock as d, renderSlot as r } from "vue";
2
- import t from "../../_virtual/_plugin-vue_export-helper.js";
3
- const i = {}, l = { class: "divide-y md:divide-y-0 divide-1 flex flex-col min-h-0 flex-1 xl:overflow-hidden md:flex-row leading-3" };
4
- function n(e, c) {
5
- return o(), d("div", l, [
6
- r(e.$slots, "default")
1
+ import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
2
+ import l from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const n = {}, c = { class: "flex flex-col min-h-0 flex-1 xl:overflow-hidden md:flex-row leading-3" };
4
+ function f(e, s) {
5
+ return o(), r("div", c, [
6
+ t(e.$slots, "default")
7
7
  ]);
8
8
  }
9
- const a = /* @__PURE__ */ t(i, [["render", n]]);
9
+ const a = /* @__PURE__ */ l(n, [["render", f]]);
10
10
  export {
11
11
  a as default
12
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutContent.vue"],"names":[],"mappings":"AAeA,iBAAS,cAAc;qBA4BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayoutContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutContent.vue"],"names":[],"mappings":"AAgBA,iBAAS,cAAc;qBA2BM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,12 +1,12 @@
1
- import { openBlock as o, createElementBlock as r, renderSlot as t } from "vue";
2
- import d from "../../_virtual/_plugin-vue_export-helper.js";
3
- const l = {}, c = { class: "border-t-1/2 md:border-t-0 divide divide-y xl:divide-y-0 xl:divide-x-1/2 flex xl:flex-row flex-col custom-scroll pr-0" };
4
- function i(e, n) {
5
- return o(), r("div", c, [
6
- t(e.$slots, "default")
1
+ import { openBlock as e, createElementBlock as o, renderSlot as t } from "vue";
2
+ import l from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const c = {}, s = { class: "*:border-t-1/2 first:*:border-t-0 xl:*:border-t-0 xl:*:border-l-1/2 xl:first:*:border-l-0 flex xl:flex-row flex-col custom-scroll pr-0" };
4
+ function n(r, f) {
5
+ return e(), o("div", s, [
6
+ t(r.$slots, "default")
7
7
  ]);
8
8
  }
9
- const x = /* @__PURE__ */ d(l, [["render", i]]);
9
+ const x = /* @__PURE__ */ l(c, [["render", n]]);
10
10
  export {
11
11
  x as default
12
12
  };