@scalar/api-client 2.2.40 → 2.2.41

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 (76) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +35 -31
  5. package/dist/components/AddressBar/index.d.ts +1 -2
  6. package/dist/components/AddressBar/index.d.ts.map +1 -1
  7. package/dist/components/DataTable/DataTableInputSelect.vue.js +29 -29
  8. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +7 -7
  9. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +21 -21
  10. package/dist/components/{AddressBar/AddressBarServer.vue.d.ts → Server/ServerDropdown.vue.d.ts} +6 -1
  11. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -0
  12. package/dist/components/Server/ServerDropdown.vue.js +155 -0
  13. package/dist/components/Server/ServerDropdown.vue2.js +4 -0
  14. package/dist/components/Server/ServerDropdownItem.vue.d.ts +19 -0
  15. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -0
  16. package/dist/components/Server/ServerDropdownItem.vue.js +7 -0
  17. package/dist/components/Server/ServerDropdownItem.vue2.js +81 -0
  18. package/dist/components/Server/ServerVariablesForm.vue.js +20 -20
  19. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -1
  20. package/dist/components/Server/ServerVariablesTextbox.vue.js +4 -4
  21. package/dist/components/Server/index.d.ts +3 -0
  22. package/dist/components/Server/index.d.ts.map +1 -0
  23. package/dist/components/Server/index.js +6 -0
  24. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +1 -5
  25. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  26. package/dist/hooks/useLayout.d.ts +2 -0
  27. package/dist/hooks/useLayout.d.ts.map +1 -1
  28. package/dist/layouts/App/create-api-client-app.d.ts +30 -40
  29. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  30. package/dist/layouts/Modal/create-api-client-modal.d.ts +60 -80
  31. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  32. package/dist/layouts/Web/create-api-client-web.d.ts +30 -40
  33. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  34. package/dist/libs/create-client.d.ts +30 -40
  35. package/dist/libs/create-client.d.ts.map +1 -1
  36. package/dist/store/active-entities.d.ts +6 -8
  37. package/dist/store/active-entities.d.ts.map +1 -1
  38. package/dist/store/servers.d.ts +30 -40
  39. package/dist/store/servers.d.ts.map +1 -1
  40. package/dist/store/store.d.ts +30 -40
  41. package/dist/store/store.d.ts.map +1 -1
  42. package/dist/style.css +1 -1
  43. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +0 -1
  44. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  45. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +40 -42
  46. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
  47. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  48. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  49. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +72 -72
  50. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -2
  51. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  52. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
  53. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +18 -17
  54. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +1 -1
  55. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
  56. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +1 -1
  57. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +12 -11
  58. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  59. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  60. package/dist/views/Request/RequestSection/RequestSection.vue2.js +1 -0
  61. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  62. package/dist/views/Servers/index.d.ts +2 -0
  63. package/dist/views/Servers/index.d.ts.map +1 -0
  64. package/dist/views/Servers/index.js +4 -0
  65. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  66. package/dist/views/Settings/SettingsGeneral.vue.js +196 -160
  67. package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +1 -1
  68. package/dist/views/Settings/components/SettingsAppearance.vue.js +50 -39
  69. package/package.json +20 -10
  70. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +0 -1
  71. package/dist/components/AddressBar/AddressBarServer.vue.js +0 -123
  72. package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
  73. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +0 -10
  74. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +0 -1
  75. package/dist/components/AddressBar/AddressBarServerItem.vue.js +0 -7
  76. package/dist/components/AddressBar/AddressBarServerItem.vue2.js +0 -77
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestExampleAuth.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-6fa7db1d"]]);
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e78fca0c"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as K, computed as F, ref as I, openBlock as a, createElementBlock as n, Fragment as i, renderList as x, createBlock as _, unref as f, normalizeClass as U, withCtx as o, createVNode as u, createTextVNode as y, toDisplayString as C, createCommentVNode as b, createElementVNode as $, capitalize as m } from "vue";
1
+ import { defineComponent as K, computed as F, ref as I, openBlock as a, createElementBlock as n, Fragment as i, renderList as m, createBlock as _, unref as f, normalizeClass as U, withCtx as o, createVNode as u, createTextVNode as y, toDisplayString as C, createCommentVNode as b, createElementVNode as $, capitalize as x } from "vue";
2
2
  import N from "./OAuth2.vue.js";
3
3
  import v from "./RequestAuthDataTableInput.vue.js";
4
4
  import s from "../../../../components/DataTable/DataTableRow.vue.js";
@@ -14,7 +14,7 @@ const R = {
14
14
  __name: "RequestExampleAuth",
15
15
  props: {
16
16
  selectedSecuritySchemeUids: {},
17
- layout: { default: "client" }
17
+ layout: {}
18
18
  },
19
19
  setup(g) {
20
20
  const { securitySchemes: S, securitySchemeMutators: c } = q(), w = F(
@@ -23,19 +23,21 @@ const R = {
23
23
  }))
24
24
  ), d = I(""), T = (t) => {
25
25
  if (t.type === "apiKey")
26
- return `${m(t.nameKey)}: ${t.in}`;
26
+ return `${x(t.nameKey)}: ${t.in}`;
27
27
  if (t.type === "oauth2") {
28
28
  const l = Object.values(t.flows ?? {})[0];
29
- return `${m(t.nameKey)}: ${d.value ? d.value : (l == null ? void 0 : l.type) ?? ""}`;
29
+ return `${x(t.nameKey)}: ${d.value ? d.value : (l == null ? void 0 : l.type) ?? ""}`;
30
30
  }
31
- return t.type === "http" ? `${m(t.nameKey)}: ${t.scheme}` : `${m(t.nameKey)}: ${t.type}`;
31
+ return t.type === "http" ? `${x(t.nameKey)}: ${t.scheme}` : `${x(t.nameKey)}: ${t.type}`;
32
32
  }, V = (t, l, e) => c.edit(t, l, e);
33
- return (t, l) => (a(!0), n(i, null, x(w.value, ({ scheme: e }, B) => (a(), n(i, {
33
+ return (t, l) => (a(!0), n(i, null, m(w.value, ({ scheme: e }, B) => (a(), n(i, {
34
34
  key: e == null ? void 0 : e.uid
35
35
  }, [
36
36
  w.value.length > 1 ? (a(), _(f(s), {
37
37
  key: 0,
38
- class: U({ "request-example-references-header": t.layout === "reference" })
38
+ class: U({
39
+ "request-example-references-header": t.layout === "reference"
40
+ })
39
41
  }, {
40
42
  default: o(() => [
41
43
  u(f(j), {
@@ -142,7 +144,7 @@ const R = {
142
144
  default: o(() => [
143
145
  Object.keys(e.flows).length > 1 ? (a(), n("div", R, [
144
146
  $("div", z, [
145
- (a(!0), n(i, null, x(e == null ? void 0 : e.flows, (r, p, k) => (a(), n("button", {
147
+ (a(!0), n(i, null, m(e == null ? void 0 : e.flows, (r, p, k) => (a(), n("button", {
146
148
  key: p,
147
149
  class: U(["floating-bg py-1 text-sm border-b-[1px] border-transparent relative cursor-pointer font-medium text-c-3", {
148
150
  "!text-c-1 !border-current border-b-[1px] !rounded-none": t.layout !== "reference" && (d.value === p || k === 0 && !d.value),
@@ -158,13 +160,12 @@ const R = {
158
160
  ]),
159
161
  _: 2
160
162
  }, 1024),
161
- (a(!0), n(i, null, x(e == null ? void 0 : e.flows, (r, p, k) => (a(), n(i, { key: p }, [
163
+ (a(!0), n(i, null, m(e == null ? void 0 : e.flows, (r, p, k) => (a(), n(i, { key: p }, [
162
164
  d.value === p || k === 0 && !d.value ? (a(), _(N, {
163
165
  key: 0,
164
166
  flow: r,
165
- layout: t.layout,
166
167
  scheme: e
167
- }, null, 8, ["flow", "layout", "scheme"])) : b("", !0)
168
+ }, null, 8, ["flow", "scheme"])) : b("", !0)
168
169
  ], 64))), 128))
169
170
  ], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (a(), n("div", P, " Coming soon ")) : b("", !0)
170
171
  ], 64))), 128));
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"AA+MA,KAAK,WAAW,GAAG;IACjB,0BAA0B,EAAE,MAAM,EAAE,CAAA;CACrC,CAAC;;AA+RF,wBAOG"}
1
+ {"version":3,"file":"RequestSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestSection.vue"],"names":[],"mappings":"AAgNA,KAAK,WAAW,GAAG;IACjB,0BAA0B,EAAE,MAAM,EAAE,CAAA;CACrC,CAAC;;AA+RF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-306eaf39"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e65c33f5"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -103,6 +103,7 @@ const j = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
103
103
  return [
104
104
  g("div", T, [
105
105
  u(i(P, {
106
+ layout: "client",
106
107
  selectedSecuritySchemeUids: t.selectedSecuritySchemeUids,
107
108
  title: "Authentication"
108
109
  }, null, 8, ["selectedSecuritySchemeUids"]), [
@@ -17,7 +17,7 @@ const B = { class: "border-t relative col-1 flex-center gap-6 p-2 capitalize" },
17
17
  a.commandPalette.emit({ commandName: "Create Request" });
18
18
  }, y = (i) => {
19
19
  i != null && i.createNew && g.name === "request" && f();
20
- }, v = "2.2.40";
20
+ }, v = "2.2.41";
21
21
  return _(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (l(), n("div", B, [
22
22
  o("div", {
23
23
  class: k(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
@@ -0,0 +1,2 @@
1
+ export { default as ServerForm } from './ServerForm.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/views/Servers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./ServerForm.vue.js";
2
+ export {
3
+ o as ServerForm
4
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AAu3BA,wBAMG"}
1
+ {"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AA44BA,wBAMG"}
@@ -1,15 +1,15 @@
1
- import { defineComponent as L, openBlock as c, createElementBlock as U, createElementVNode as r, createVNode as a, withCtx as l, createTextVNode as i, unref as e, normalizeClass as p, createBlock as m, createCommentVNode as b, toDisplayString as j, Fragment as $, renderList as T, normalizeStyle as S } from "vue";
2
- import N from "../../components/ImportCollection/IntegrationLogo.vue.js";
3
- import { useActiveEntities as R } from "../../store/active-entities.js";
4
- import { ScalarButton as g, ScalarIcon as y } from "@scalar/components";
5
- import { themeLabels as B } from "@scalar/themes";
6
- import V from "./components/SettingsAppearance.vue.js";
1
+ import { defineComponent as N, openBlock as u, createElementBlock as S, createElementVNode as r, createVNode as f, withCtx as n, createTextVNode as a, unref as e, normalizeClass as d, createBlock as x, createCommentVNode as m, toDisplayString as z, Fragment as T, renderList as B, normalizeStyle as $ } from "vue";
2
+ import R from "../../components/ImportCollection/IntegrationLogo.vue.js";
3
+ import { useActiveEntities as V } from "../../store/active-entities.js";
4
+ import { cva as W, ScalarButton as g, cx as y, ScalarIcon as h } from "@scalar/components";
5
+ import { themeLabels as A } from "@scalar/themes";
6
+ import F from "./components/SettingsAppearance.vue.js";
7
7
  import _ from "./components/SettingsSection.vue.js";
8
- import { useWorkspace as W } from "../../store/store.js";
9
- const F = { class: "bg-b-1 w-full h-full overflow-auto" }, O = { class: "px-5 py-5 max-w-[720px] ml-auto mr-auto w-full" }, P = { class: "flex flex-col gap-8" }, D = { class: "flex flex-col gap-2" }, G = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, q = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, H = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, 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 justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, K = { class: "flex items-center gap-1" }, Q = { class: "grid grid-cols-2 gap-2" }, Z = { class: "flex items-center gap-2" }, I = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, ee = { class: "flex items-center gap-1" }, te = { class: "rounded-xl size-7" }, h = "https://proxy.scalar.com", fe = /* @__PURE__ */ L({
8
+ import { useWorkspace as O } from "../../store/store.js";
9
+ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py-5 max-w-[720px] ml-auto mr-auto w-full" }, G = { class: "flex flex-col gap-8" }, q = { class: "flex flex-col gap-2" }, H = { class: "flex flex-col gap-2" }, M = { class: "grid grid-cols-2 gap-2" }, X = { class: "flex items-center gap-2" }, Y = { class: "flex items-center gap-1" }, J = { class: "grid grid-cols-2 gap-2" }, K = { class: "flex items-center gap-2" }, Q = { class: "flex items-center gap-1" }, Z = { class: "rounded-xl size-7" }, v = "https://proxy.scalar.com", ie = /* @__PURE__ */ N({
10
10
  __name: "SettingsGeneral",
11
- setup(re) {
12
- const { activeWorkspace: o } = R(), { proxyUrl: x, workspaceMutators: v } = W(), A = [
11
+ setup(I) {
12
+ const { activeWorkspace: o } = V(), { proxyUrl: k, workspaceMutators: w } = O(), E = [
13
13
  "default",
14
14
  "alternate",
15
15
  // 'moon',
@@ -20,7 +20,7 @@ const F = { class: "bg-b-1 w-full h-full overflow-auto" }, O = { class: "px-5 py
20
20
  "kepler"
21
21
  // 'mars',
22
22
  // 'deepSpace',
23
- ], E = ["elysiajs", "fastify"], C = (w) => ({
23
+ ], L = ["elysiajs", "fastify"], U = (C) => ({
24
24
  default: { light: "#fff", dark: "#0f0f0f", accent: "#0099ff" },
25
25
  alternate: { light: "#f9f9f9", dark: "#131313", accent: "#e7e7e7" },
26
26
  moon: { light: "#ccc9b3", dark: "#313332", accent: "#645b0f" },
@@ -32,182 +32,217 @@ const F = { class: "bg-b-1 w-full h-full overflow-auto" }, O = { class: "px-5 py
32
32
  mars: { light: "#f2efe8", dark: "#321116", accent: "#c75549" },
33
33
  deepSpace: { light: "#f4f4f5", dark: "#09090b", accent: "#8ab4f8" },
34
34
  none: { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }
35
- })[w] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, z = (w) => {
35
+ })[C] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, j = (C) => {
36
36
  var t;
37
- v.edit(((t = o.value) == null ? void 0 : t.uid) ?? "", "themeId", w);
38
- };
39
- return (w, t) => (c(), U("div", F, [
40
- r("div", O, [
41
- r("div", P, [
37
+ w.edit(((t = o.value) == null ? void 0 : t.uid) ?? "", "themeId", C);
38
+ }, b = W({
39
+ base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border-1/2",
40
+ variants: {
41
+ active: {
42
+ true: "bg-primary text-c-1 hover:bg-inherit",
43
+ false: "bg-b-1 hover:bg-b-2"
44
+ }
45
+ }
46
+ });
47
+ return (C, t) => (u(), S("div", P, [
48
+ r("div", D, [
49
+ r("div", G, [
42
50
  t[13] || (t[13] = r("div", null, [
43
51
  r("h2", { class: "font-bold text-xl mt-10" }, "Settings")
44
52
  ], -1)),
45
- a(_, null, {
46
- title: l(() => t[3] || (t[3] = [
47
- i("CORS Proxy")
53
+ f(_, null, {
54
+ title: n(() => t[3] || (t[3] = [
55
+ a("CORS Proxy")
48
56
  ])),
49
- description: l(() => t[4] || (t[4] = [
50
- i(" Browsers block cross-origin requests for security. We provide a public proxy to "),
57
+ description: n(() => t[4] || (t[4] = [
58
+ a(" Browsers block cross-origin requests for security. We provide a public proxy to "),
51
59
  r("a", {
52
60
  class: "hover:text-c-1 underline-offset-2",
53
61
  href: "https://en.wikipedia.org/wiki/Cross-origin_resource_sharing",
54
62
  target: "_blank"
55
63
  }, " bypass CORS issues ", -1),
56
- i(" . Check the "),
64
+ a(" . Check the "),
57
65
  r("a", {
58
66
  class: "hover:text-c-1 underline-offset-2",
59
67
  href: "https://github.com/scalar/scalar/tree/main/examples/proxy-server",
60
68
  target: "_blank"
61
69
  }, " source code on GitHub ", -1),
62
- i(" . ")
70
+ a(" . ")
63
71
  ])),
64
- default: l(() => {
65
- var s, d, n, f;
72
+ default: n(() => {
73
+ var s, p, c;
66
74
  return [
67
- r("div", D, [
68
- a(e(g), {
69
- class: p(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-1 border-1/2", {
70
- "bg-b-2 text-c-1": ((s = e(o)) == null ? void 0 : s.proxyUrl) === h
71
- }]),
72
- variant: ((d = e(o)) == null ? void 0 : d.proxyUrl) === h ? "primary" : "secondary",
73
- onClick: t[0] || (t[0] = (k) => {
74
- var u;
75
- return e(v).edit(
76
- ((u = e(o)) == null ? void 0 : u.uid) ?? "",
75
+ r("div", q, [
76
+ f(e(g), {
77
+ class: d(
78
+ e(y)(
79
+ e(b)({
80
+ active: ((s = e(o)) == null ? void 0 : s.proxyUrl) === v
81
+ })
82
+ )
83
+ ),
84
+ onClick: t[0] || (t[0] = (l) => {
85
+ var i;
86
+ return e(w).edit(
87
+ ((i = e(o)) == null ? void 0 : i.uid) ?? "",
77
88
  "proxyUrl",
78
- h
89
+ v
79
90
  );
80
91
  })
81
92
  }, {
82
- default: l(() => [
83
- r("div", G, [
84
- e(o).proxyUrl === h ? (c(), m(e(y), {
85
- key: 0,
86
- icon: "Checkmark",
87
- size: "xs",
88
- thickness: "3.5"
89
- })) : b("", !0)
90
- ]),
91
- t[5] || (t[5] = i(" Use proxy.scalar.com (default) "))
92
- ]),
93
+ default: n(() => {
94
+ var l;
95
+ return [
96
+ r("div", {
97
+ class: d(["flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1", {
98
+ "bg-c-accent border-transparent text-b-1": ((l = e(o)) == null ? void 0 : l.proxyUrl) === v
99
+ }])
100
+ }, [
101
+ e(o).proxyUrl === v ? (u(), x(e(h), {
102
+ key: 0,
103
+ icon: "Checkmark",
104
+ size: "xs",
105
+ thickness: "3.5"
106
+ })) : m("", !0)
107
+ ], 2),
108
+ t[5] || (t[5] = a(" Use proxy.scalar.com (default) "))
109
+ ];
110
+ }),
93
111
  _: 1
94
- }, 8, ["class", "variant"]),
95
- e(x) && e(x) !== h ? (c(), m(e(g), {
112
+ }, 8, ["class"]),
113
+ e(k) && e(k) !== v ? (u(), x(e(g), {
96
114
  key: 0,
97
- class: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-1 border-1/2",
98
- variant: "primary",
99
- onClick: t[1] || (t[1] = (k) => {
100
- var u;
101
- return e(v).edit(
102
- ((u = e(o)) == null ? void 0 : u.uid) ?? "",
115
+ class: d(
116
+ e(y)(
117
+ e(b)({
118
+ active: ((p = e(o)) == null ? void 0 : p.proxyUrl) === e(k)
119
+ })
120
+ )
121
+ ),
122
+ onClick: t[1] || (t[1] = (l) => {
123
+ var i;
124
+ return e(w).edit(
125
+ ((i = e(o)) == null ? void 0 : i.uid) ?? "",
103
126
  "proxyUrl",
104
- e(x)
127
+ e(k)
105
128
  );
106
129
  })
107
130
  }, {
108
- default: l(() => [
109
- r("div", q, [
110
- e(o).proxyUrl === e(x) ? (c(), m(e(y), {
111
- key: 0,
112
- icon: "Checkmark",
113
- size: "xs",
114
- thickness: "3.5"
115
- })) : b("", !0)
116
- ]),
117
- i(" Use custom proxy (" + j(e(x)) + ") ", 1)
118
- ]),
131
+ default: n(() => {
132
+ var l;
133
+ return [
134
+ r("div", {
135
+ class: d(["flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1", {
136
+ "bg-c-accent border-transparent text-b-1": ((l = e(o)) == null ? void 0 : l.proxyUrl) === e(k)
137
+ }])
138
+ }, [
139
+ e(o).proxyUrl === e(k) ? (u(), x(e(h), {
140
+ key: 0,
141
+ icon: "Checkmark",
142
+ size: "xs",
143
+ thickness: "3.5"
144
+ })) : m("", !0)
145
+ ], 2),
146
+ a(" Use custom proxy (" + z(e(k)) + ") ", 1)
147
+ ];
148
+ }),
119
149
  _: 1
120
- })) : b("", !0),
121
- a(e(g), {
122
- class: p(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-1 border-1/2", { "bg-b-2 text-c-1": !((n = e(o)) != null && n.proxyUrl) }]),
123
- variant: (f = e(o)) != null && f.proxyUrl ? "secondary" : "primary",
124
- onClick: t[2] || (t[2] = (k) => {
125
- var u;
126
- return e(v).edit(
127
- ((u = e(o)) == null ? void 0 : u.uid) ?? "",
150
+ }, 8, ["class"])) : m("", !0),
151
+ f(e(g), {
152
+ class: d(e(y)(e(b)({ active: !((c = e(o)) != null && c.proxyUrl) }))),
153
+ onClick: t[2] || (t[2] = (l) => {
154
+ var i;
155
+ return e(w).edit(
156
+ ((i = e(o)) == null ? void 0 : i.uid) ?? "",
128
157
  "proxyUrl",
129
158
  ""
130
159
  );
131
160
  })
132
161
  }, {
133
- default: l(() => {
134
- var k;
162
+ default: n(() => {
163
+ var l, i;
135
164
  return [
136
- r("div", H, [
137
- (k = e(o)) != null && k.proxyUrl ? b("", !0) : (c(), m(e(y), {
165
+ r("div", {
166
+ class: d([
167
+ "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1",
168
+ !((l = e(o)) != null && l.proxyUrl) && "bg-c-accent border-transparent text-b-1"
169
+ ])
170
+ }, [
171
+ (i = e(o)) != null && i.proxyUrl ? m("", !0) : (u(), x(e(h), {
138
172
  key: 0,
139
173
  icon: "Checkmark",
140
174
  size: "xs",
141
175
  thickness: "3.5"
142
176
  }))
143
- ]),
144
- t[6] || (t[6] = i(" Skip the proxy "))
177
+ ], 2),
178
+ t[6] || (t[6] = a(" Skip the proxy "))
145
179
  ];
146
180
  }),
147
181
  _: 1
148
- }, 8, ["class", "variant"])
182
+ }, 8, ["class"])
149
183
  ])
150
184
  ];
151
185
  }),
152
186
  _: 1
153
187
  }),
154
- a(_, null, {
155
- title: l(() => t[7] || (t[7] = [
156
- i("Themes")
188
+ f(_, null, {
189
+ title: n(() => t[7] || (t[7] = [
190
+ a("Themes")
157
191
  ])),
158
- description: l(() => t[8] || (t[8] = [
159
- i(" We’ve got a whole rainbow of themes for you to play with: ")
192
+ description: n(() => t[8] || (t[8] = [
193
+ a(" We’ve got a whole rainbow of themes for you to play with: ")
160
194
  ])),
161
- default: l(() => [
162
- r("div", M, [
163
- r("div", X, [
164
- (c(), U($, null, T(A, (s) => {
165
- var d;
166
- return a(e(g), {
195
+ default: n(() => [
196
+ r("div", H, [
197
+ r("div", M, [
198
+ (u(), S(T, null, B(E, (s) => {
199
+ var p;
200
+ return f(e(g), {
167
201
  key: s,
168
- class: p(["px-2 flex items-center justify-between gap-2 text-c-1 border-1/2", [
169
- ((d = e(o)) == null ? void 0 : d.themeId) === s ? "bg-b-2" : "bg-b-1"
170
- ]]),
171
- variant: "ghost",
172
- onClick: (n) => z(s)
202
+ class: d(
203
+ e(y)(
204
+ e(b)({
205
+ active: ((p = e(o)) == null ? void 0 : p.themeId) === s
206
+ })
207
+ )
208
+ ),
209
+ onClick: (c) => j(s)
173
210
  }, {
174
- default: l(() => {
175
- var n, f;
211
+ default: n(() => {
212
+ var c, l;
176
213
  return [
177
- r("div", Y, [
214
+ r("div", X, [
178
215
  r("div", {
179
- class: p(["flex items-center justify-center w-5 h-5 rounded-full border-2 border-c-3", {
180
- "bg-primary": ((n = e(o)) == null ? void 0 : n.themeId) === s
216
+ class: d(["flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1", {
217
+ "bg-c-accent border-transparent text-b-1": ((c = e(o)) == null ? void 0 : c.themeId) === s
181
218
  }])
182
219
  }, [
183
- r("div", J, [
184
- ((f = e(o)) == null ? void 0 : f.themeId) === s ? (c(), m(e(y), {
185
- key: 0,
186
- icon: "Checkmark",
187
- size: "xs",
188
- thickness: "3.5"
189
- })) : b("", !0)
190
- ])
220
+ ((l = e(o)) == null ? void 0 : l.themeId) === s ? (u(), x(e(h), {
221
+ key: 0,
222
+ icon: "Checkmark",
223
+ size: "xs",
224
+ thickness: "3.5"
225
+ })) : m("", !0)
191
226
  ], 2),
192
- i(" " + j(e(B)[s]), 1)
227
+ a(" " + z(e(A)[s]), 1)
193
228
  ]),
194
- r("div", K, [
229
+ r("div", Y, [
195
230
  r("span", {
196
231
  class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
197
- style: S({
198
- backgroundColor: C(s).light
232
+ style: $({
233
+ backgroundColor: U(s).light
199
234
  })
200
235
  }, null, 4),
201
236
  r("span", {
202
237
  class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
203
- style: S({
204
- backgroundColor: C(s).dark
238
+ style: $({
239
+ backgroundColor: U(s).dark
205
240
  })
206
241
  }, null, 4),
207
242
  r("span", {
208
243
  class: "inline-block w-5 h-5 rounded-full border-c-3",
209
- style: S({
210
- backgroundColor: C(s).accent
244
+ style: $({
245
+ backgroundColor: U(s).accent
211
246
  })
212
247
  }, null, 4)
213
248
  ])
@@ -221,48 +256,49 @@ const F = { class: "bg-b-1 w-full h-full overflow-auto" }, O = { class: "px-5 py
221
256
  ]),
222
257
  _: 1
223
258
  }),
224
- a(_, null, {
225
- title: l(() => t[9] || (t[9] = [
226
- i("Framework Themes")
259
+ f(_, null, {
260
+ title: n(() => t[9] || (t[9] = [
261
+ a("Framework Themes")
227
262
  ])),
228
- description: l(() => t[10] || (t[10] = [
229
- i(" Are you a real fan? Show your support by using your favorite framework’s theme! ")
263
+ description: n(() => t[10] || (t[10] = [
264
+ a(" Are you a real fan? Show your support by using your favorite framework’s theme! ")
230
265
  ])),
231
- default: l(() => [
232
- r("div", Q, [
233
- (c(), U($, null, T(E, (s) => {
234
- var d;
235
- return a(e(g), {
266
+ default: n(() => [
267
+ r("div", J, [
268
+ (u(), S(T, null, B(L, (s) => {
269
+ var p;
270
+ return f(e(g), {
236
271
  key: s,
237
- class: p(["px-2 flex items-center justify-between gap-2 text-c-1 border-1/2", [
238
- ((d = e(o)) == null ? void 0 : d.themeId) === s ? "bg-b-2" : "bg-b-1"
239
- ]]),
240
- variant: "ghost",
241
- onClick: (n) => z(s)
272
+ class: d(
273
+ e(y)(
274
+ e(b)({
275
+ active: ((p = e(o)) == null ? void 0 : p.themeId) === s
276
+ })
277
+ )
278
+ ),
279
+ onClick: (c) => j(s)
242
280
  }, {
243
- default: l(() => {
244
- var n, f;
281
+ default: n(() => {
282
+ var c, l;
245
283
  return [
246
- r("div", Z, [
284
+ r("div", K, [
247
285
  r("div", {
248
- class: p(["flex items-center justify-center w-5 h-5 rounded-full border-2 border-c-3", {
249
- "bg-primary": ((n = e(o)) == null ? void 0 : n.themeId) === s
286
+ class: d(["flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1", {
287
+ "bg-c-accent border-transparent text-b-1": ((c = e(o)) == null ? void 0 : c.themeId) === s
250
288
  }])
251
289
  }, [
252
- r("div", I, [
253
- ((f = e(o)) == null ? void 0 : f.themeId) === s ? (c(), m(e(y), {
254
- key: 0,
255
- icon: "Checkmark",
256
- size: "xs",
257
- thickness: "3.5"
258
- })) : b("", !0)
259
- ])
290
+ ((l = e(o)) == null ? void 0 : l.themeId) === s ? (u(), x(e(h), {
291
+ key: 0,
292
+ icon: "Checkmark",
293
+ size: "xs",
294
+ thickness: "3.5"
295
+ })) : m("", !0)
260
296
  ], 2),
261
- i(" " + j(e(B)[s]), 1)
297
+ a(" " + z(e(A)[s]), 1)
262
298
  ]),
263
- r("div", ee, [
264
- r("div", te, [
265
- a(N, { integration: s }, null, 8, ["integration"])
299
+ r("div", Q, [
300
+ r("div", Z, [
301
+ f(R, { integration: s }, null, 8, ["integration"])
266
302
  ])
267
303
  ])
268
304
  ];
@@ -274,15 +310,15 @@ const F = { class: "bg-b-1 w-full h-full overflow-auto" }, O = { class: "px-5 py
274
310
  ]),
275
311
  _: 1
276
312
  }),
277
- a(_, null, {
278
- title: l(() => t[11] || (t[11] = [
279
- i("Appearance")
313
+ f(_, null, {
314
+ title: n(() => t[11] || (t[11] = [
315
+ a("Appearance")
280
316
  ])),
281
- description: l(() => t[12] || (t[12] = [
282
- i(" Choose between light, dark, or system-based appearance for your workspace. ")
317
+ description: n(() => t[12] || (t[12] = [
318
+ a(" Choose between light, dark, or system-based appearance for your workspace. ")
283
319
  ])),
284
- default: l(() => [
285
- a(V)
320
+ default: n(() => [
321
+ f(F)
286
322
  ]),
287
323
  _: 1
288
324
  })
@@ -292,5 +328,5 @@ const F = { class: "bg-b-1 w-full h-full overflow-auto" }, O = { class: "px-5 py
292
328
  }
293
329
  });
294
330
  export {
295
- fe as default
331
+ ie as default
296
332
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsAppearance.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Settings/components/SettingsAppearance.vue"],"names":[],"mappings":";AA0RA,wBAMG"}
1
+ {"version":3,"file":"SettingsAppearance.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Settings/components/SettingsAppearance.vue"],"names":[],"mappings":";AAuRA,wBAMG"}