@scalar/api-client 2.1.27 → 2.1.29

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 (28) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  3. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  4. package/dist/components/DataTable/DataTableInput.vue2.js +43 -43
  5. package/dist/layouts/App/create-api-client-app.d.ts +4 -4
  6. package/dist/layouts/Modal/create-api-client-modal.d.ts +8 -8
  7. package/dist/layouts/Web/create-api-client-web.d.ts +4 -4
  8. package/dist/libs/create-client.d.ts +4 -4
  9. package/dist/libs/hot-keys.d.ts +1 -1
  10. package/dist/libs/send-request.d.ts.map +1 -1
  11. package/dist/libs/send-request.js +63 -60
  12. package/dist/libs/string-template.d.ts.map +1 -1
  13. package/dist/libs/string-template.js +6 -6
  14. package/dist/store/request-example.d.ts +2 -2
  15. package/dist/store/store.d.ts +8 -8
  16. package/dist/store/workspace.d.ts +2 -2
  17. package/dist/style.css +1 -1
  18. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  19. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  20. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +2 -2
  21. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  22. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  23. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  24. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  25. package/dist/views/Settings/SettingsGeneral.vue.js +59 -69
  26. package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +1 -1
  27. package/dist/views/Settings/SettingsGeneralMode.vue.js +22 -22
  28. package/package.json +8 -8
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":";WAyUS,MAAM;;WAAN,MAAM;;AAocf,wBAMG"}
1
+ {"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":";WAyUS,MAAM;;WAAN,MAAM;;AAqcf,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuth.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-edb96e81"]]);
4
+ const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-4a75f9a1"]]);
5
5
  export {
6
- p as default
6
+ f as default
7
7
  };
@@ -13,7 +13,7 @@ import { useWorkspace as te } from "../../../../store/store.js";
13
13
  const le = { class: "flex gap-1" }, oe = {
14
14
  key: 0,
15
15
  class: "flex relative scroll-timeline-x w-full"
16
- }, se = { class: "flex flex-1 gap-0.75 mr-1.5 items-center" }, ae = {
16
+ }, se = { class: "flex flex-1 gap-0.25 mr-1.5 items-center" }, ae = {
17
17
  key: 1,
18
18
  class: "pl-2"
19
19
  }, _e = /* @__PURE__ */ N({
@@ -138,7 +138,7 @@ const le = { class: "flex gap-1" }, oe = {
138
138
  c("div", se, [
139
139
  (p(!0), x(I, null, W(h.value, (o) => (p(), x("span", {
140
140
  key: o.id,
141
- class: "cm-pill flex items-center mx-0 h-fit"
141
+ class: "cm-pill flex items-center mx-0 h-fit pr-1"
142
142
  }, [
143
143
  q(w(o.label) + " ", 1),
144
144
  a(i(A), {
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAwMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;;YAQlE,uBAAuB,EAAE;IACjC,8BAA8B;sBACZ,OAAO;uBACN,OAAO;;;;;;;;;;;YAHlB,uBAAuB,EAAE;IACjC,8BAA8B;sBACZ,OAAO;uBACN,OAAO;;;;;;;;;;;qBADR,OAAO;sBACN,OAAO;;AAwe9B,wBAiBG"}
1
+ {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AA8MA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;;YAQlE,uBAAuB,EAAE;IACjC,8BAA8B;sBACZ,OAAO;uBACN,OAAO;;;;;;;;;;;YAHlB,uBAAuB,EAAE;IACjC,8BAA8B;sBACZ,OAAO;uBACN,OAAO;;;;;;;;;;;qBADR,OAAO;sBACN,OAAO;;AA4e9B,wBAiBG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestTable.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-15395b2c"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1f355550"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -13,7 +13,7 @@ const N = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, q = { cl
13
13
  s.commandPalette.emit({ commandName: "Create Request" });
14
14
  }, c = (n) => {
15
15
  n != null && n.openCommandPaletteRequest && m();
16
- }, x = "2.1.27";
16
+ }, x = "2.1.29";
17
17
  return k(() => s.hotKeys.on(c)), R(() => s.hotKeys.off(c)), (n, e) => (r(), l("div", N, [
18
18
  t("div", q, [
19
19
  o(f).isReadOnly ? p("", !0) : (r(), l("div", v, [
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AA+lBA,wBAKG"}
1
+ {"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AAwmBA,wBAKG"}
@@ -1,12 +1,12 @@
1
- import { defineComponent as C, openBlock as a, createElementBlock as x, createElementVNode as e, createTextVNode as o, createVNode as i, unref as l, normalizeClass as d, withCtx as u, createBlock as p, createCommentVNode as b, Fragment as _, renderList as S, toDisplayString as j, normalizeStyle as m } from "vue";
2
- import { ScalarButton as k, ScalarIcon as g } from "@scalar/components";
3
- import { themeLabels as z } from "@scalar/themes";
4
- import B from "./SettingsGeneralMode.vue.js";
5
- import { useWorkspace as E } from "../../store/store.js";
6
- const N = { class: "bg-b-1 w-full h-full overflow-auto" }, P = { class: "flex flex-col px-5 py-5 max-w-[720px] ml-auto mr-auto w-full" }, T = { class: "gap-2 mt-4 mb-8 flex flex-col" }, V = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, $ = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, D = { class: "flex flex-col gap-2" }, L = { class: "grid grid-cols-2 gap-2" }, U = { class: "flex items-center gap-2" }, W = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, F = { class: "flex items-center gap-1" }, J = /* @__PURE__ */ C({
1
+ import { defineComponent as _, openBlock as o, createElementBlock as x, createElementVNode as e, createStaticVNode as C, createVNode as c, unref as t, normalizeClass as i, withCtx as d, createBlock as u, createCommentVNode as p, createTextVNode as b, Fragment as S, renderList as j, toDisplayString as z, normalizeStyle as m } from "vue";
2
+ import { ScalarButton as g, ScalarIcon as k } from "@scalar/components";
3
+ import { themeLabels as B } from "@scalar/themes";
4
+ import N from "./SettingsGeneralMode.vue.js";
5
+ import { useWorkspace as V } from "../../store/store.js";
6
+ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, T = { class: "flex flex-col px-5 py-5 max-w-[720px] ml-auto mr-auto w-full" }, W = { class: "gap-2 mt-4 mb-8 flex flex-col" }, $ = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, U = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, E = { class: "flex flex-col gap-2" }, G = { class: "grid grid-cols-2 gap-2" }, L = { class: "flex items-center gap-2" }, O = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, R = { class: "flex items-center gap-1" }, K = /* @__PURE__ */ _({
7
7
  __name: "SettingsGeneral",
8
- setup(G) {
9
- const { activeWorkspace: n, workspaceMutators: y, proxyUrl: s, setProxyUrl: h } = E(), v = [
8
+ setup(q) {
9
+ const { activeWorkspace: a, workspaceMutators: y, proxyUrl: l, setProxyUrl: h } = V(), v = [
10
10
  "default",
11
11
  "alternate",
12
12
  "moon",
@@ -17,7 +17,7 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, P = { class: "flex fl
17
17
  "kepler",
18
18
  "mars",
19
19
  "deepSpace"
20
- ], f = (c) => ({
20
+ ], f = (n) => ({
21
21
  default: { light: "#fff", dark: "#0f0f0f", accent: "#0099ff" },
22
22
  alternate: { light: "#f9f9f9", dark: "#131313", accent: "#e7e7e7" },
23
23
  moon: { light: "#ccc9b3", dark: "#313332", accent: "#645b0f" },
@@ -29,112 +29,102 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, P = { class: "flex fl
29
29
  mars: { light: "#f2efe8", dark: "#321116", accent: "#c75549" },
30
30
  deepSpace: { light: "#f4f4f5", dark: "#09090b", accent: "#8ab4f8" },
31
31
  none: { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }
32
- })[c] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, w = (c) => {
33
- y.edit(n.value.uid, "themeId", c);
32
+ })[n] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, w = (n) => {
33
+ y.edit(a.value.uid, "themeId", n);
34
34
  };
35
- return (c, t) => (a(), x("div", N, [
36
- e("div", P, [
35
+ return (n, r) => (o(), x("div", P, [
36
+ e("div", T, [
37
37
  e("div", null, [
38
38
  e("div", null, [
39
- t[4] || (t[4] = e("h2", { class: "font-bold text-xl mb-5 mt-10" }, "Settings", -1)),
40
- t[5] || (t[5] = e("h3", { class: "font-bold mb-1" }, "Scalar Proxy", -1)),
41
- t[6] || (t[6] = e("p", { class: "text-c-2 mb-2" }, [
42
- o(" Enable Scalar's "),
43
- e("a", {
44
- class: "hover:text-c-1",
45
- href: "https://github.com/scalar/scalar/tree/main/packages/api-client-proxy",
46
- target: "_blank"
47
- }, "open source"),
48
- o(" proxy to deal with CORS issues. ")
49
- ], -1)),
50
- e("div", T, [
51
- i(l(k), {
52
- class: d(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-2", { "bg-b-1 shadow-border-1/2 text-c-1": l(s) }]),
53
- variant: l(s) ? "primary" : "secondary",
54
- onClick: t[0] || (t[0] = (r) => l(h)("https://proxy.scalar.com"))
39
+ r[4] || (r[4] = C('<h2 class="font-bold text-xl mb-5 mt-10">Settings</h2><h3 class="font-bold mb-1">CORS Proxy</h3><p class="text-c-2 mb-2 leading-[21px]"> Browsers block cross-origin requests for security. We provide a public proxy to <a class="hover:text-c-1 underline-offset-2" href="https://en.wikipedia.org/wiki/Cross-origin_resource_sharing" target="_blank">bypass CORS issues</a>. Check the <a class="hover:text-c-1 underline-offset-2" href="https://github.com/scalar/scalar/tree/main/examples/proxy-server" target="_blank">source code on GitHub</a>. </p>', 3)),
40
+ e("div", W, [
41
+ c(t(g), {
42
+ class: i(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-2 border-1/2", { "bg-b-1 text-c-1": t(l) }]),
43
+ variant: t(l) ? "primary" : "secondary",
44
+ onClick: r[0] || (r[0] = (s) => t(h)("https://proxy.scalar.com"))
55
45
  }, {
56
- default: u(() => [
57
- e("div", V, [
58
- l(s) ? (a(), p(l(g), {
46
+ default: d(() => [
47
+ e("div", $, [
48
+ t(l) ? (o(), u(t(k), {
59
49
  key: 0,
60
50
  icon: "Checkmark",
61
51
  size: "xs",
62
52
  thickness: "3.5"
63
- })) : b("", !0)
53
+ })) : p("", !0)
64
54
  ]),
65
- t[2] || (t[2] = o(" Enable "))
55
+ r[2] || (r[2] = b(" Use proxy.scalar.com (default) "))
66
56
  ]),
67
57
  _: 1
68
58
  }, 8, ["class", "variant"]),
69
- i(l(k), {
70
- class: d(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-2", { "bg-b-1 shadow-border-1/2 text-c-1": !l(s) }]),
71
- variant: l(s) ? "secondary" : "primary",
72
- onClick: t[1] || (t[1] = (r) => l(h)(""))
59
+ c(t(g), {
60
+ class: i(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-2 border-1/2", { "bg-b-1 text-c-1": !t(l) }]),
61
+ variant: t(l) ? "secondary" : "primary",
62
+ onClick: r[1] || (r[1] = (s) => t(h)(""))
73
63
  }, {
74
- default: u(() => [
75
- e("div", $, [
76
- l(s) ? b("", !0) : (a(), p(l(g), {
64
+ default: d(() => [
65
+ e("div", U, [
66
+ t(l) ? p("", !0) : (o(), u(t(k), {
77
67
  key: 0,
78
68
  icon: "Checkmark",
79
69
  size: "xs",
80
70
  thickness: "3.5"
81
71
  }))
82
72
  ]),
83
- t[3] || (t[3] = o(" Disable "))
73
+ r[3] || (r[3] = b(" Skip the proxy "))
84
74
  ]),
85
75
  _: 1
86
76
  }, 8, ["class", "variant"])
87
77
  ])
88
78
  ]),
89
79
  e("div", null, [
90
- t[7] || (t[7] = e("h3", { class: "font-bold mb-1" }, "Theme", -1)),
91
- t[8] || (t[8] = e("p", { class: "text-c-2 mb-4" }, "Set the theme for your workspace.", -1)),
92
- e("div", D, [
93
- e("div", L, [
94
- (a(), x(_, null, S(v, (r) => i(l(k), {
95
- key: r,
96
- class: d(["px-2", [
97
- "flex items-center justify-between gap-2 text-c-1",
98
- l(n).themeId === r ? "bg-b-1 shadow-border-1/2" : "bg-b-2"
80
+ r[5] || (r[5] = e("h3", { class: "font-bold mb-1" }, "Theme", -1)),
81
+ r[6] || (r[6] = e("p", { class: "text-c-2 mb-4 leading-[21px]" }, " We’ve got a whole rainbow of themes for you to play with: ", -1)),
82
+ e("div", E, [
83
+ e("div", G, [
84
+ (o(), x(S, null, j(v, (s) => c(t(g), {
85
+ key: s,
86
+ class: i(["px-2", [
87
+ "flex items-center justify-between gap-2 text-c-1 border-1/2",
88
+ t(a).themeId === s ? "bg-b-1" : "bg-b-2"
99
89
  ]]),
100
90
  variant: "ghost",
101
- onClick: (M) => w(r)
91
+ onClick: (D) => w(s)
102
92
  }, {
103
- default: u(() => [
104
- e("div", U, [
93
+ default: d(() => [
94
+ e("div", L, [
105
95
  e("div", {
106
- class: d(["flex items-center justify-center w-5 h-5 rounded-full border-2 border-c-3", {
107
- "bg-primary": l(n).themeId === r
96
+ class: i(["flex items-center justify-center w-5 h-5 rounded-full border-2 border-c-3", {
97
+ "bg-primary": t(a).themeId === s
108
98
  }])
109
99
  }, [
110
- e("div", W, [
111
- l(n).themeId === r ? (a(), p(l(g), {
100
+ e("div", O, [
101
+ t(a).themeId === s ? (o(), u(t(k), {
112
102
  key: 0,
113
103
  icon: "Checkmark",
114
104
  size: "xs",
115
105
  thickness: "3.5"
116
- })) : b("", !0)
106
+ })) : p("", !0)
117
107
  ])
118
108
  ], 2),
119
- o(" " + j(l(z)[r]), 1)
109
+ b(" " + z(t(B)[s]), 1)
120
110
  ]),
121
- e("div", F, [
111
+ e("div", R, [
122
112
  e("span", {
123
- class: "inline-block shadow-border-1/2 w-5 h-5 rounded-full border-c-3 -mr-3",
113
+ class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
124
114
  style: m({
125
- backgroundColor: f(r).light
115
+ backgroundColor: f(s).light
126
116
  })
127
117
  }, null, 4),
128
118
  e("span", {
129
- class: "inline-block shadow-border-1/2 w-5 h-5 rounded-full border-c-3 -mr-3",
119
+ class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
130
120
  style: m({
131
- backgroundColor: f(r).dark
121
+ backgroundColor: f(s).dark
132
122
  })
133
123
  }, null, 4),
134
124
  e("span", {
135
- class: "inline-block shadow-border-1/2 w-5 h-5 rounded-full border-c-3",
125
+ class: "inline-block w-5 h-5 rounded-full border-c-3",
136
126
  style: m({
137
- backgroundColor: f(r).accent
127
+ backgroundColor: f(s).accent
138
128
  })
139
129
  }, null, 4)
140
130
  ])
@@ -145,7 +135,7 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, P = { class: "flex fl
145
135
  ])
146
136
  ]),
147
137
  e("div", null, [
148
- i(B)
138
+ c(N)
149
139
  ])
150
140
  ])
151
141
  ])
@@ -153,5 +143,5 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, P = { class: "flex fl
153
143
  }
154
144
  });
155
145
  export {
156
- J as default
146
+ K as default
157
147
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsGeneralMode.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneralMode.vue"],"names":[],"mappings":";AAqYA,wBAKG"}
1
+ {"version":3,"file":"SettingsGeneralMode.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneralMode.vue"],"names":[],"mappings":";AAoXA,wBAKG"}
@@ -1,79 +1,79 @@
1
- import { defineComponent as g, ref as h, openBlock as o, createElementBlock as v, Fragment as y, createElementVNode as s, createVNode as a, unref as r, normalizeClass as n, withCtx as c, createBlock as d, createCommentVNode as u, createTextVNode as i } from "vue";
1
+ import { defineComponent as y, ref as g, openBlock as l, createElementBlock as v, Fragment as h, createElementVNode as s, createVNode as a, unref as r, normalizeClass as n, withCtx as c, createBlock as d, createCommentVNode as u, createTextVNode as i } from "vue";
2
2
  import { ScalarButton as f, ScalarIcon as m } from "@scalar/components";
3
3
  import { useDarkModeState as w } from "../../hooks/useDarkModeState.js";
4
- const S = { class: "flex flex-col gap-2" }, C = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, M = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, D = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, B = /* @__PURE__ */ g({
4
+ const C = { class: "flex flex-col gap-2" }, S = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, M = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, D = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, B = /* @__PURE__ */ y({
5
5
  __name: "SettingsGeneralMode",
6
6
  setup(_) {
7
- const { colorMode: k, setDarkMode: l } = w(), e = h("System Preference");
7
+ const { colorMode: k, setDarkMode: o } = w(), e = g("System Preference");
8
8
  k.value === "system" ? e.value = "System Preference" : k.value === "dark" ? e.value = "Dark" : e.value = "Light";
9
9
  const p = () => {
10
- l(null), e.value = "System Preference";
10
+ o(null), e.value = "System Preference";
11
11
  }, b = () => {
12
- l(!1), e.value = "Light";
12
+ o(!1), e.value = "Light";
13
13
  }, x = () => {
14
- l(!0), e.value = "Dark";
14
+ o(!0), e.value = "Dark";
15
15
  };
16
- return (P, t) => (o(), v(y, null, [
16
+ return (P, t) => (l(), v(h, null, [
17
17
  t[3] || (t[3] = s("h3", { class: "font-bold mb-1 mt-8" }, "Appearance", -1)),
18
- t[4] || (t[4] = s("p", { class: "text-c-2 mb-4" }, "Set light or dark mode for your workspace.", -1)),
19
- s("div", S, [
18
+ t[4] || (t[4] = s("p", { class: "text-c-2 mb-4 leading-[21px]" }, " Choose between light, dark, or system-based appearance for your workspace. ", -1)),
19
+ s("div", C, [
20
20
  a(r(f), {
21
21
  class: n([
22
- "w-full shadow-none text-c-1 justify-start pl-2 gap-2",
23
- e.value === "System Preference" ? "bg-b-1 shadow-border-1/2 text-c-1" : "bg-b-2"
22
+ "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border-1/2",
23
+ e.value === "System Preference" ? "bg-b-1 text-c-1" : "bg-b-2"
24
24
  ]),
25
25
  onClick: p
26
26
  }, {
27
27
  default: c(() => [
28
- s("div", C, [
29
- e.value === "System Preference" ? (o(), d(r(m), {
28
+ s("div", S, [
29
+ e.value === "System Preference" ? (l(), d(r(m), {
30
30
  key: 0,
31
31
  icon: "Checkmark",
32
32
  size: "xs",
33
33
  thickness: "3.5"
34
34
  })) : u("", !0)
35
35
  ]),
36
- t[0] || (t[0] = i(" System Preference "))
36
+ t[0] || (t[0] = i(" System Preference (default) "))
37
37
  ]),
38
38
  _: 1
39
39
  }, 8, ["class"]),
40
40
  a(r(f), {
41
41
  class: n([
42
- "w-full shadow-none text-c-1 justify-start pl-2 gap-2",
43
- e.value === "Light" ? "bg-b-1 shadow-border-1/2 text-c-1" : "bg-b-2"
42
+ "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border-1/2",
43
+ e.value === "Light" ? "bg-b-1 text-c-1" : "bg-b-2"
44
44
  ]),
45
45
  onClick: b
46
46
  }, {
47
47
  default: c(() => [
48
48
  s("div", M, [
49
- e.value === "Light" ? (o(), d(r(m), {
49
+ e.value === "Light" ? (l(), d(r(m), {
50
50
  key: 0,
51
51
  icon: "Checkmark",
52
52
  size: "xs",
53
53
  thickness: "3.5"
54
54
  })) : u("", !0)
55
55
  ]),
56
- t[1] || (t[1] = i(" Light Mode "))
56
+ t[1] || (t[1] = i(" Light Mode Always "))
57
57
  ]),
58
58
  _: 1
59
59
  }, 8, ["class"]),
60
60
  a(r(f), {
61
61
  class: n([
62
- "w-full shadow-none text-c-1 justify-start pl-2 gap-2 mb-8",
63
- e.value === "Dark" ? "bg-b-1 shadow-border-1/2 text-c-1" : "bg-b-2"
62
+ "w-full shadow-none text-c-1 justify-start pl-2 gap-2 mb-8 border-1/2",
63
+ e.value === "Dark" ? "bg-b-1 text-c-1" : "bg-b-2"
64
64
  ]),
65
65
  onClick: x
66
66
  }, {
67
67
  default: c(() => [
68
68
  s("div", D, [
69
- e.value === "Dark" ? (o(), d(r(m), {
69
+ e.value === "Dark" ? (l(), d(r(m), {
70
70
  key: 0,
71
71
  icon: "Checkmark",
72
72
  size: "xs",
73
73
  thickness: "3.5"
74
74
  })) : u("", !0)
75
75
  ]),
76
- t[2] || (t[2] = i(" Dark Mode "))
76
+ t[2] || (t[2] = i(" Dark Mode Always "))
77
77
  ]),
78
78
  _: 1
79
79
  }, 8, ["class"])
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.1.27",
21
+ "version": "2.1.29",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -155,16 +155,16 @@
155
155
  "zod": "^3.23.8",
156
156
  "@scalar/components": "0.12.56",
157
157
  "@scalar/draggable": "0.1.6",
158
- "@scalar/icons": "0.1.1",
159
158
  "@scalar/oas-utils": "0.2.59",
159
+ "@scalar/icons": "0.1.1",
160
160
  "@scalar/object-utils": "1.1.10",
161
161
  "@scalar/openapi-parser": "0.8.7",
162
- "@scalar/openapi-types": "0.1.3",
163
162
  "@scalar/themes": "0.9.40",
164
- "@scalar/types": "0.0.16",
163
+ "@scalar/openapi-types": "0.1.3",
165
164
  "@scalar/use-codemirror": "0.11.23",
166
- "@scalar/use-tooltip": "1.0.3",
167
- "@scalar/use-toasts": "0.7.7"
165
+ "@scalar/types": "0.0.16",
166
+ "@scalar/use-toasts": "0.7.7",
167
+ "@scalar/use-tooltip": "1.0.3"
168
168
  },
169
169
  "devDependencies": {
170
170
  "@types/js-cookie": "^3.0.6",
@@ -181,8 +181,8 @@
181
181
  "vite": "^5.2.10",
182
182
  "vite-svg-loader": "^5.1.0",
183
183
  "vitest": "^1.6.0",
184
- "@scalar/galaxy": "0.2.12",
185
- "@scalar/build-tooling": "0.1.11"
184
+ "@scalar/build-tooling": "0.1.11",
185
+ "@scalar/galaxy": "0.2.12"
186
186
  },
187
187
  "scripts": {
188
188
  "build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",