@scalar/api-client 2.5.17 → 2.5.19

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 (79) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -8
  3. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +15 -13
  4. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +10 -9
  5. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +28 -26
  6. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  7. package/dist/components/DataTable/DataTableInputSelect.vue.js +9 -8
  8. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +9 -7
  9. package/dist/components/ImportCollection/ImportNowButton.vue.js +6 -4
  10. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +4 -2
  11. package/dist/components/SectionFilter.vue.d.ts.map +1 -1
  12. package/dist/components/SectionFilter.vue.js +2 -2
  13. package/dist/components/SectionFilter.vue2.js +8 -8
  14. package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
  15. package/dist/components/Server/ServerSelector.vue.js +3 -2
  16. package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
  17. package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
  18. package/dist/components/Server/ServerVariablesSelect.vue.js +7 -7
  19. package/dist/components/SideNav/SideHelp.vue.js +16 -10
  20. package/dist/components/SideNav/SideNav.vue.js +2 -1
  21. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -1
  22. package/dist/components/TopNav/TopNav.vue.js +9 -7
  23. package/dist/components/TopNav/TopNavItem.vue2.js +8 -4
  24. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  25. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +14 -14
  26. package/dist/layouts/App/create-api-client-app.d.ts +42 -2
  27. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  28. package/dist/layouts/Modal/create-api-client-modal.d.ts +84 -4
  29. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  30. package/dist/layouts/Web/create-api-client-web.d.ts +42 -2
  31. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  32. package/dist/libs/create-client.d.ts +42 -2
  33. package/dist/libs/create-client.d.ts.map +1 -1
  34. package/dist/store/security-schemes.d.ts +42 -2
  35. package/dist/store/security-schemes.d.ts.map +1 -1
  36. package/dist/store/store.d.ts +42 -2
  37. package/dist/store/store.d.ts.map +1 -1
  38. package/dist/style.css +1 -1
  39. package/dist/views/Collection/CollectionEnvironment.vue2.js +8 -7
  40. package/dist/views/Collection/CollectionServers.vue2.js +2 -1
  41. package/dist/views/Collection/CollectionSettings.vue2.js +2 -1
  42. package/dist/views/Collection/components/EnvironmentForm.vue2.js +4 -2
  43. package/dist/views/Collection/components/MarkdownInput.vue2.js +4 -2
  44. package/dist/views/Environment/Environment.vue2.js +2 -1
  45. package/dist/views/Environment/EnvironmentModal.vue.js +10 -9
  46. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +2 -1
  47. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +5 -4
  48. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +22 -11
  49. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +9 -8
  50. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  51. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  52. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +7 -7
  53. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  54. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +1 -1
  55. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +1 -1
  56. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +33 -28
  57. package/dist/views/Request/RequestSection/RequestBody.vue2.js +4 -2
  58. package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -1
  59. package/dist/views/Request/RequestSection/RequestTable.vue2.js +12 -10
  60. package/dist/views/Request/RequestSidebar.vue2.js +2 -1
  61. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  62. package/dist/views/Request/RequestSidebarItem.vue2.js +2 -1
  63. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +6 -3
  64. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +4 -2
  65. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +2 -1
  66. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -1
  67. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +2 -1
  68. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  69. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
  70. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +4 -4
  71. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  72. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +4 -2
  73. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +5 -4
  74. package/dist/views/Request/components/WorkspaceDropdown.vue.js +13 -10
  75. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  76. package/dist/views/Request/libs/oauth2.js +46 -44
  77. package/dist/views/Settings/SettingsGeneral.vue.js +19 -17
  78. package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -5
  79. package/package.json +20 -20
@@ -1,88 +1,90 @@
1
- import { shouldUseProxy as k } from "@scalar/oas-utils/helpers";
2
- const w = () => {
1
+ import { shouldUseProxy as S } from "@scalar/oas-utils/helpers";
2
+ const k = () => {
3
3
  const e = new Uint8Array(32);
4
4
  return crypto.getRandomValues(e), btoa(String.fromCharCode(...e)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
5
- }, x = async (e, l) => {
6
- if (l === "plain")
5
+ }, w = async (e, d) => {
6
+ if (d === "plain")
7
7
  return e;
8
- const n = new TextEncoder().encode(e), c = await crypto.subtle.digest("SHA-256", n);
8
+ const s = new TextEncoder().encode(e), c = await crypto.subtle.digest("SHA-256", s);
9
9
  return btoa(String.fromCharCode(...new Uint8Array(c))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
10
- }, U = async (e, l, d) => {
10
+ }, U = async (e, d, u) => {
11
11
  try {
12
12
  if (!e)
13
13
  return [new Error("Flow not found"), null];
14
- const n = e.selectedScopes.join(" ");
14
+ const s = e.selectedScopes.join(" ");
15
15
  if (e.type === "clientCredentials" || e.type === "password")
16
- return S(e, n, {
17
- proxyUrl: d
16
+ return x(e, s, {
17
+ proxyUrl: u
18
18
  });
19
19
  const c = (Math.random() + 1).toString(36).substring(2, 10), t = new URL(e.authorizationUrl);
20
- let u = null;
20
+ let i = null;
21
21
  if (e.type === "implicit")
22
22
  t.searchParams.set("response_type", "token");
23
23
  else if (e.type === "authorizationCode" && (t.searchParams.set("response_type", "code"), e["x-usePkce"] !== "no")) {
24
- const r = w(), a = await x(r, e["x-usePkce"]);
25
- u = {
24
+ const r = k(), a = await w(r, e["x-usePkce"]);
25
+ i = {
26
26
  codeVerifier: r,
27
27
  codeChallenge: a,
28
28
  codeChallengeMethod: e["x-usePkce"] === "SHA-256" ? "S256" : "plain"
29
- }, t.searchParams.set("code_challenge", a), t.searchParams.set("code_challenge_method", u.codeChallengeMethod);
29
+ }, t.searchParams.set("code_challenge", a), t.searchParams.set("code_challenge_method", i.codeChallengeMethod);
30
30
  }
31
31
  if (e["x-scalar-redirect-uri"].startsWith("/")) {
32
- const r = l.url || window.location.origin + window.location.pathname, a = new URL(e["x-scalar-redirect-uri"], r).toString();
32
+ const r = d.url || window.location.origin + window.location.pathname, a = new URL(e["x-scalar-redirect-uri"], r).toString();
33
33
  t.searchParams.set("redirect_uri", a);
34
34
  } else
35
35
  t.searchParams.set("redirect_uri", e["x-scalar-redirect-uri"]);
36
36
  e["x-scalar-security-query"] && Object.keys(e["x-scalar-security-query"]).forEach((r) => {
37
- var s;
38
- const a = (s = e["x-scalar-security-query"]) == null ? void 0 : s[r];
37
+ var n;
38
+ const a = (n = e["x-scalar-security-query"]) == null ? void 0 : n[r];
39
39
  a && t.searchParams.set(r, a);
40
- }), t.searchParams.set("client_id", e["x-scalar-client-id"]), t.searchParams.set("state", c), n && t.searchParams.set("scope", n);
41
- const i = window.open(t, "openAuth2Window", "left=100,top=100,width=800,height=600");
42
- return i ? new Promise((r) => {
40
+ }), t.searchParams.set("client_id", e["x-scalar-client-id"]), t.searchParams.set("state", c), s && t.searchParams.set("scope", s);
41
+ const o = window.open(t, "openAuth2Window", "left=100,top=100,width=800,height=600");
42
+ return o ? new Promise((r) => {
43
43
  const a = setInterval(() => {
44
44
  var _;
45
- let s = null, h = null, p = null, m = null;
45
+ let n = null, p = null, m = null, g = null;
46
46
  try {
47
- const o = new URL(i.location.href).searchParams, P = e["x-tokenName"] || "access_token";
48
- s = o.get(P), h = o.get("code"), p = o.get("error"), m = o.get("error_description");
49
- const g = new URLSearchParams(i.location.href.split("#")[1]);
50
- s || (s = g.get(P)), h || (h = g.get("code")), p || (p = g.get("error")), m || (m = g.get("error_description"));
47
+ const l = new URL(o.location.href).searchParams, P = e["x-tokenName"] || "access_token";
48
+ n = l.get(P), p = l.get("code"), m = l.get("error"), g = l.get("error_description");
49
+ const y = new URLSearchParams(o.location.href.split("#")[1]);
50
+ n || (n = y.get(P)), p || (p = y.get("code")), m || (m = y.get("error")), g || (g = y.get("error_description"));
51
51
  } catch {
52
52
  }
53
- if (i.closed || s || h || p)
54
- if (clearInterval(a), i.close(), p)
55
- r([new Error(`OAuth error: ${p}${m ? ` (${m})` : ""}`), null]);
56
- else if (s) {
57
- const o = (_ = i.location.href.match(/state=([^&]*)/)) == null ? void 0 : _[1];
58
- r(o === c ? [null, s] : [new Error("State mismatch"), null]);
59
- } else h ? new URL(i.location.href).searchParams.get("state") === c ? S(e, n, {
60
- code: h,
61
- pkce: u,
62
- proxyUrl: d
53
+ if (o.closed || n || p || m)
54
+ if (clearInterval(a), o.close(), m)
55
+ r([new Error(`OAuth error: ${m}${g ? ` (${g})` : ""}`), null]);
56
+ else if (n) {
57
+ const l = (_ = o.location.href.match(/state=([^&]*)/)) == null ? void 0 : _[1];
58
+ r(l === c ? [null, n] : [new Error("State mismatch"), null]);
59
+ } else p ? new URL(o.location.href).searchParams.get("state") === c ? x(e, s, {
60
+ code: p,
61
+ pkce: i,
62
+ proxyUrl: u
63
63
  }).then(r) : r([new Error("State mismatch"), null]) : (clearInterval(a), r([new Error("Window was closed without granting authorization"), null]));
64
64
  }, 200);
65
65
  }) : [new Error("Failed to open auth window"), null];
66
66
  } catch {
67
67
  return [new Error("Failed to authorize oauth2 flow"), null];
68
68
  }
69
- }, S = async (e, l, {
70
- code: d,
71
- pkce: n,
69
+ }, x = async (e, d, {
70
+ code: u,
71
+ pkce: s,
72
72
  proxyUrl: c
73
73
  } = {}) => {
74
74
  if (!e)
75
75
  return [new Error("OAuth2 flow was not defined"), null];
76
76
  const t = new URLSearchParams();
77
- t.set("client_id", e["x-scalar-client-id"]), l && (e.type === "clientCredentials" || e.type === "password") && t.set("scope", l), e.clientSecret && t.set("client_secret", e.clientSecret), "x-scalar-redirect-uri" in e && e["x-scalar-redirect-uri"] && t.set("redirect_uri", e["x-scalar-redirect-uri"]), d ? (t.set("code", d), t.set("grant_type", "authorization_code"), n && t.set("code_verifier", n.codeVerifier)) : e.type === "password" ? (t.set("grant_type", "password"), t.set("username", e.username), t.set("password", e.password)) : t.set("grant_type", "client_credentials");
77
+ t.set("client_id", e["x-scalar-client-id"]), d && (e.type === "clientCredentials" || e.type === "password") && t.set("scope", d), e.clientSecret && t.set("client_secret", e.clientSecret), "x-scalar-redirect-uri" in e && e["x-scalar-redirect-uri"] && t.set("redirect_uri", e["x-scalar-redirect-uri"]), u ? (t.set("code", u), t.set("grant_type", "authorization_code"), s && t.set("code_verifier", s.codeVerifier)) : e.type === "password" ? (t.set("grant_type", "password"), t.set("username", e.username), t.set("password", e.password)) : t.set("grant_type", "client_credentials"), e["x-scalar-security-body"] && Object.entries(e["x-scalar-security-body"]).forEach(([i, h]) => {
78
+ h && t.set(i, h);
79
+ });
78
80
  try {
79
- const u = {
81
+ const i = {
80
82
  "Content-Type": "application/x-www-form-urlencoded"
81
83
  };
82
- e.clientSecret && (u.Authorization = `Basic ${btoa(`${e["x-scalar-client-id"]}:${e.clientSecret}`)}`);
83
- const y = k(c, e.tokenUrl) ? `${c}?${new URLSearchParams([["scalar_url", e.tokenUrl]]).toString()}` : e.tokenUrl, r = await (await fetch(y, {
84
+ e.clientSecret && (i.Authorization = `Basic ${btoa(`${e["x-scalar-client-id"]}:${e.clientSecret}`)}`);
85
+ const h = S(c, e.tokenUrl) ? `${c}?${new URLSearchParams([["scalar_url", e.tokenUrl]]).toString()}` : e.tokenUrl, r = await (await fetch(h, {
84
86
  method: "POST",
85
- headers: u,
87
+ headers: i,
86
88
  body: t
87
89
  })).json(), a = e["x-tokenName"] || "access_token";
88
90
  return [null, r[a]];
@@ -92,6 +94,6 @@ const w = () => {
92
94
  };
93
95
  export {
94
96
  U as authorizeOauth2,
95
- S as authorizeServers,
96
- x as generateCodeChallenge
97
+ x as authorizeServers,
98
+ w as generateCodeChallenge
97
99
  };
@@ -4,9 +4,9 @@ import { themeLabels as E } from "@scalar/themes";
4
4
  import V from "../../components/ImportCollection/IntegrationLogo.vue.js";
5
5
  import { useActiveEntities as W } from "../../store/active-entities.js";
6
6
  import F from "./components/SettingsAppearance.vue.js";
7
- import C from "./components/SettingsSection.vue.js";
7
+ import w from "./components/SettingsSection.vue.js";
8
8
  import { useWorkspace as O } from "../../store/store.js";
9
- const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto ml-auto w-full max-w-[720px] px-5 py-5" }, q = { class: "flex flex-col gap-8" }, H = { class: "flex flex-col gap-2" }, M = { class: "flex flex-col gap-2" }, X = { class: "grid grid-cols-2 gap-2" }, Y = { class: "flex items-center gap-2" }, J = { class: "flex items-center gap-1" }, K = { class: "grid grid-cols-2 gap-2" }, Q = { class: "flex items-center gap-2" }, Z = { class: "flex items-center gap-1" }, I = { class: "size-7 rounded-xl" }, w = "https://proxy.scalar.com", ce = /* @__PURE__ */ P({
9
+ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto ml-auto w-full max-w-[720px] px-5 py-5" }, q = { class: "flex flex-col gap-8" }, H = { class: "flex flex-col gap-2" }, M = { class: "flex flex-col gap-2" }, X = { class: "grid grid-cols-2 gap-2" }, Y = { class: "flex items-center gap-2" }, J = { class: "flex items-center gap-1" }, K = { class: "grid grid-cols-2 gap-2" }, Q = { class: "flex items-center gap-2" }, Z = { class: "flex items-center gap-1" }, I = { class: "size-7 rounded-xl" }, _ = "https://proxy.scalar.com", ce = /* @__PURE__ */ P({
10
10
  __name: "SettingsGeneral",
11
11
  setup(ee) {
12
12
  const { activeWorkspace: o } = W(), { proxyUrl: k, workspaceMutators: j } = O(), L = [
@@ -21,7 +21,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
21
21
  // 'mars',
22
22
  // 'deepSpace',
23
23
  // 'laserwave',
24
- ], N = ["elysiajs", "fastify"], _ = (x) => ({
24
+ ], N = ["elysiajs", "fastify"], C = (x) => ({
25
25
  default: { light: "#fff", dark: "#0f0f0f", accent: "#0099ff" },
26
26
  alternate: { light: "#f9f9f9", dark: "#131313", accent: "#e7e7e7" },
27
27
  moon: { light: "#ccc9b3", dark: "#313332", accent: "#645b0f" },
@@ -55,7 +55,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
55
55
  t[13] || (t[13] = r("div", null, [
56
56
  r("h2", { class: "mt-10 text-xl font-bold" }, "Settings")
57
57
  ], -1)),
58
- c(C, null, {
58
+ c(w, null, {
59
59
  title: n(() => t[3] || (t[3] = [
60
60
  a(" CORS Proxy ")
61
61
  ])),
@@ -82,21 +82,21 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
82
82
  class: f(
83
83
  e(v)(
84
84
  e(g)({
85
- active: ((s = e(o)) == null ? void 0 : s.proxyUrl) === w
85
+ active: ((s = e(o)) == null ? void 0 : s.proxyUrl) === _
86
86
  })
87
87
  )
88
88
  ),
89
- onClick: t[0] || (t[0] = (l) => U(w))
89
+ onClick: t[0] || (t[0] = (l) => U(_))
90
90
  }, {
91
91
  default: n(() => {
92
92
  var l, p;
93
93
  return [
94
94
  r("div", {
95
95
  class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
96
- "bg-c-accent text-b-1 border-transparent": ((l = e(o)) == null ? void 0 : l.proxyUrl) === w
96
+ "bg-c-accent text-b-1 border-transparent": ((l = e(o)) == null ? void 0 : l.proxyUrl) === _
97
97
  }])
98
98
  }, [
99
- ((p = e(o)) == null ? void 0 : p.proxyUrl) === w ? (d(), m(e(h), {
99
+ ((p = e(o)) == null ? void 0 : p.proxyUrl) === _ ? (d(), m(e(h), {
100
100
  key: 0,
101
101
  icon: "Checkmark",
102
102
  size: "xs",
@@ -106,9 +106,10 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
106
106
  t[5] || (t[5] = a(" Use proxy.scalar.com (default) "))
107
107
  ];
108
108
  }),
109
- _: 1
109
+ _: 1,
110
+ __: [5]
110
111
  }, 8, ["class"]),
111
- e(k) && e(k) !== w ? (d(), m(e(y), {
112
+ e(k) && e(k) !== _ ? (d(), m(e(y), {
112
113
  key: 0,
113
114
  class: f(
114
115
  e(v)(
@@ -162,14 +163,15 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
162
163
  t[6] || (t[6] = a(" Skip the proxy "))
163
164
  ];
164
165
  }),
165
- _: 1
166
+ _: 1,
167
+ __: [6]
166
168
  }, 8, ["class"])
167
169
  ])
168
170
  ];
169
171
  }),
170
172
  _: 1
171
173
  }),
172
- c(C, null, {
174
+ c(w, null, {
173
175
  title: n(() => t[7] || (t[7] = [
174
176
  a(" Themes ")
175
177
  ])),
@@ -214,19 +216,19 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
214
216
  r("span", {
215
217
  class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
216
218
  style: $({
217
- backgroundColor: _(s).light
219
+ backgroundColor: C(s).light
218
220
  })
219
221
  }, null, 4),
220
222
  r("span", {
221
223
  class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
222
224
  style: $({
223
- backgroundColor: _(s).dark
225
+ backgroundColor: C(s).dark
224
226
  })
225
227
  }, null, 4),
226
228
  r("span", {
227
229
  class: "border-c-3 inline-block h-5 w-5 rounded-full",
228
230
  style: $({
229
- backgroundColor: _(s).accent
231
+ backgroundColor: C(s).accent
230
232
  })
231
233
  }, null, 4)
232
234
  ])
@@ -240,7 +242,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
240
242
  ]),
241
243
  _: 1
242
244
  }),
243
- c(C, null, {
245
+ c(w, null, {
244
246
  title: n(() => t[9] || (t[9] = [
245
247
  a(" Framework Themes ")
246
248
  ])),
@@ -294,7 +296,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
294
296
  ]),
295
297
  _: 1
296
298
  }),
297
- c(C, null, {
299
+ c(w, null, {
298
300
  title: n(() => t[11] || (t[11] = [
299
301
  a(" Appearance ")
300
302
  ])),
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as x, createElementBlock as y, openBlock as o, createVNode as l, unref as e, normalizeClass as s, withCtx as c, createElementVNode as i, createTextVNode as d, createBlock as u, createCommentVNode as f } from "vue";
2
2
  import { cva as g, ScalarButton as m, cx as p, ScalarIcon as k } from "@scalar/components";
3
3
  import { useColorMode as v } from "@scalar/use-hooks/useColorMode";
4
- const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
4
+ const C = { class: "flex flex-col gap-2" }, j = /* @__PURE__ */ x({
5
5
  __name: "SettingsAppearance",
6
6
  setup(h) {
7
7
  const { colorMode: r, setColorMode: n } = v(), a = g({
@@ -33,7 +33,8 @@ const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
33
33
  ], 2),
34
34
  t[3] || (t[3] = d(" System Preference (default) "))
35
35
  ]),
36
- _: 1
36
+ _: 1,
37
+ __: [3]
37
38
  }, 8, ["class"]),
38
39
  l(e(m), {
39
40
  class: s(e(p)(e(a)({ active: e(r) === "light" }))),
@@ -54,7 +55,8 @@ const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
54
55
  ], 2),
55
56
  t[4] || (t[4] = d(" Light Mode Always "))
56
57
  ]),
57
- _: 1
58
+ _: 1,
59
+ __: [4]
58
60
  }, 8, ["class"]),
59
61
  l(e(m), {
60
62
  class: s(e(p)(e(a)({ active: e(r) === "dark" }))),
@@ -75,11 +77,12 @@ const C = { class: "flex flex-col gap-2" }, z = /* @__PURE__ */ x({
75
77
  ], 2),
76
78
  t[5] || (t[5] = d(" Dark Mode Always "))
77
79
  ]),
78
- _: 1
80
+ _: 1,
81
+ __: [5]
79
82
  }, 8, ["class"])
80
83
  ]));
81
84
  }
82
85
  });
83
86
  export {
84
- z as default
87
+ j as default
85
88
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.5.17",
21
+ "version": "2.5.19",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
@@ -187,41 +187,41 @@
187
187
  ],
188
188
  "module": "dist/index.js",
189
189
  "dependencies": {
190
- "@headlessui/tailwindcss": "^0.2.0",
191
- "@headlessui/vue": "^1.7.20",
190
+ "@headlessui/tailwindcss": "^0.2.2",
191
+ "@headlessui/vue": "^1.7.23",
192
192
  "@types/har-format": "^1.2.15",
193
193
  "@vueuse/core": "^10.10.0",
194
194
  "@vueuse/integrations": "^11.2.0",
195
195
  "focus-trap": "^7",
196
- "fuse.js": "^7.0.0",
197
- "microdiff": "^1.4.0",
196
+ "fuse.js": "^7.1.0",
197
+ "microdiff": "^1.5.0",
198
198
  "nanoid": "5.1.5",
199
199
  "pretty-bytes": "^6.1.1",
200
200
  "pretty-ms": "^8.0.0",
201
201
  "shell-quote": "^1.8.1",
202
202
  "type-fest": "4.41.0",
203
- "vue": "^3.5.12",
203
+ "vue": "^3.5.17",
204
204
  "vue-router": "^4.3.0",
205
205
  "whatwg-mimetype": "^4.0.0",
206
206
  "yaml": "2.8.0",
207
207
  "zod": "3.24.1",
208
- "@scalar/components": "0.14.18",
208
+ "@scalar/components": "0.14.20",
209
209
  "@scalar/draggable": "0.2.0",
210
+ "@scalar/helpers": "0.0.6",
211
+ "@scalar/import": "0.4.14",
210
212
  "@scalar/icons": "0.4.6",
211
- "@scalar/oas-utils": "0.4.13",
212
213
  "@scalar/object-utils": "1.2.2",
213
- "@scalar/helpers": "0.0.6",
214
- "@scalar/import": "0.4.13",
215
- "@scalar/openapi-types": "0.3.5",
216
- "@scalar/openapi-parser": "0.18.1",
217
- "@scalar/postman-to-openapi": "0.3.16",
218
- "@scalar/snippetz": "0.4.1",
219
- "@scalar/use-hooks": "0.2.4",
214
+ "@scalar/openapi-types": "0.3.6",
215
+ "@scalar/openapi-parser": "0.18.2",
216
+ "@scalar/oas-utils": "0.4.15",
217
+ "@scalar/postman-to-openapi": "0.3.18",
218
+ "@scalar/snippetz": "0.4.3",
219
+ "@scalar/themes": "0.13.11",
220
+ "@scalar/types": "0.2.10",
221
+ "@scalar/use-codemirror": "0.12.21",
220
222
  "@scalar/use-toasts": "0.8.0",
221
- "@scalar/themes": "0.13.9",
222
- "@scalar/use-codemirror": "0.12.19",
223
- "@scalar/use-tooltip": "1.1.0",
224
- "@scalar/types": "0.2.8"
223
+ "@scalar/use-hooks": "0.2.4",
224
+ "@scalar/use-tooltip": "1.1.0"
225
225
  },
226
226
  "devDependencies": {
227
227
  "@tailwindcss/vite": "^4.1.7",
@@ -235,7 +235,7 @@
235
235
  "vite-svg-loader": "^5.1.0",
236
236
  "vitest": "^1.6.1",
237
237
  "@scalar/build-tooling": "0.2.4",
238
- "@scalar/galaxy": "0.5.3"
238
+ "@scalar/galaxy": "0.5.5"
239
239
  },
240
240
  "scripts": {
241
241
  "build": "scalar-build-vite",