@scalar/api-client 2.2.21 → 2.2.23

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 (144) hide show
  1. package/CHANGELOG.md +16 -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 +70 -71
  5. package/dist/components/AddressBar/AddressBarServer.vue.js +26 -26
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  7. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  8. package/dist/components/CodeInput/CodeInput.vue2.js +46 -46
  9. package/dist/components/CodeInput/codeVariableWidget.d.ts +4 -4
  10. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  11. package/dist/components/CodeInput/codeVariableWidget.js +42 -38
  12. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +25 -24
  13. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +1 -1
  14. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  15. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +64 -55
  16. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +110 -106
  18. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +2 -2
  19. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +1 -1
  20. package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
  21. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +38 -37
  22. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  23. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +52 -49
  24. package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
  25. package/dist/components/ImportCollection/DropEventListener.vue.js +46 -43
  26. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +40 -39
  27. package/dist/components/ImportCollection/ImportNowButton.vue.js +44 -42
  28. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +76 -69
  29. package/dist/components/ScalarAsciiArt.vue.js +1 -1
  30. package/dist/components/ScalarAsciiArt.vue2.js +22 -19
  31. package/dist/components/Search/useSearch.d.ts.map +1 -1
  32. package/dist/components/Search/useSearch.js +57 -49
  33. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -1
  34. package/dist/components/SideNav/SideNavRouterLink.vue.js +22 -19
  35. package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -2
  36. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  37. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  38. package/dist/components/Sidebar/Sidebar.vue2.js +16 -16
  39. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  40. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  41. package/dist/components/Sidebar/SidebarListElement.vue2.js +38 -36
  42. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
  43. package/dist/components/Sidebar/SidebarToggle.vue.js +3 -3
  44. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  45. package/dist/components/TopNav/TopNav.vue.js +71 -64
  46. package/dist/layouts/App/ApiClientApp.vue.js +4 -1
  47. package/dist/layouts/App/create-api-client-app.d.ts +2 -1
  48. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  49. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  50. package/dist/layouts/Modal/ApiClientModal.vue2.js +22 -19
  51. package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -2
  52. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  53. package/dist/layouts/Web/ApiClientWeb.vue.js +4 -1
  54. package/dist/layouts/Web/create-api-client-web.d.ts +2 -1
  55. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  56. package/dist/libs/create-client.d.ts +12 -11
  57. package/dist/libs/create-client.d.ts.map +1 -1
  58. package/dist/libs/create-client.js +54 -47
  59. package/dist/libs/extractAttachmentFilename.d.ts +3 -0
  60. package/dist/libs/extractAttachmentFilename.d.ts.map +1 -1
  61. package/dist/libs/extractAttachmentFilename.js +7 -7
  62. package/dist/libs/importers/curl.d.ts.map +1 -1
  63. package/dist/libs/importers/curl.js +18 -18
  64. package/dist/libs/normalize-headers.d.ts.map +1 -1
  65. package/dist/libs/normalize-headers.js +2 -2
  66. package/dist/libs/parse-curl.js +39 -36
  67. package/dist/store/active-entities.d.ts +4 -4
  68. package/dist/store/active-entities.d.ts.map +1 -1
  69. package/dist/store/active-entities.js +88 -86
  70. package/dist/store/collections.d.ts.map +1 -1
  71. package/dist/store/collections.js +29 -29
  72. package/dist/store/request-example.d.ts.map +1 -1
  73. package/dist/store/request-example.js +27 -23
  74. package/dist/store/requests.d.ts.map +1 -1
  75. package/dist/store/requests.js +94 -77
  76. package/dist/store/security-schemes.d.ts.map +1 -1
  77. package/dist/store/security-schemes.js +27 -27
  78. package/dist/store/servers.d.ts.map +1 -1
  79. package/dist/store/servers.js +18 -18
  80. package/dist/store/store.d.ts +5 -5
  81. package/dist/store/store.d.ts.map +1 -1
  82. package/dist/store/store.js +53 -48
  83. package/dist/store/tags.d.ts.map +1 -1
  84. package/dist/store/tags.js +35 -33
  85. package/dist/style.css +1 -1
  86. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  87. package/dist/views/Cookies/CookieForm.vue.js +14 -9
  88. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  89. package/dist/views/Cookies/Cookies.vue2.js +39 -37
  90. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  91. package/dist/views/Environment/Environment.vue2.js +94 -89
  92. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  93. package/dist/views/Request/Request.vue.js +1 -1
  94. package/dist/views/Request/Request.vue2.js +118 -119
  95. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  96. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +28 -25
  97. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  98. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  99. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +38 -37
  100. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  101. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  102. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +76 -73
  103. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +2 -2
  104. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +80 -80
  105. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  106. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  107. package/dist/views/Request/RequestSection/RequestBody.vue2.js +192 -178
  108. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  109. package/dist/views/Request/RequestSection/RequestParams.vue.js +80 -73
  110. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  111. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +50 -48
  112. package/dist/views/Request/RequestSidebar.vue.d.ts +3 -4
  113. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  114. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  115. package/dist/views/Request/RequestSidebar.vue2.js +166 -164
  116. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  117. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  118. package/dist/views/Request/RequestSidebarItem.vue2.js +168 -150
  119. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  120. package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
  121. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +80 -80
  122. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +0 -1
  123. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  124. package/dist/views/Request/RequestSubpageHeader.vue.js +2 -2
  125. package/dist/views/Request/RequestSubpageHeader.vue2.js +44 -49
  126. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  127. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  128. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +1 -1
  129. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  130. package/dist/views/Request/components/WorkspaceDropdown.vue.js +166 -156
  131. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  132. package/dist/views/Request/handle-drag.js +37 -31
  133. package/dist/views/Request/hooks/useOpenApiWatcher.js +27 -27
  134. package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
  135. package/dist/views/Request/libs/live-sync.js +147 -130
  136. package/dist/views/Request/types/sidebar-item.d.ts +4 -1
  137. package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
  138. package/dist/views/Servers/ServerForm.vue.js +38 -35
  139. package/dist/views/Servers/Servers.vue2.js +38 -35
  140. package/dist/views/Settings/Settings.vue.d.ts.map +1 -1
  141. package/dist/views/Settings/Settings.vue2.js +15 -15
  142. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  143. package/dist/views/Settings/SettingsGeneral.vue.js +206 -174
  144. package/package.json +6 -6
@@ -1,21 +1,21 @@
1
- import { defineComponent as a, ref as c, openBlock as e, createBlock as t, withCtx as o, createVNode as i, resolveDynamicComponent as m } from "vue";
2
- import l from "../../components/ViewLayout/ViewLayout.vue.js";
3
- import s from "../../components/ViewLayout/ViewLayoutContent.vue.js";
4
- import p from "./SettingsGeneral.vue.js";
5
- const v = /* @__PURE__ */ a({
1
+ import { defineComponent as a, ref as c, openBlock as o, createBlock as n, withCtx as r, createVNode as m, resolveDynamicComponent as i, createCommentVNode as l } from "vue";
2
+ import s from "../../components/ViewLayout/ViewLayout.vue.js";
3
+ import p from "../../components/ViewLayout/ViewLayoutContent.vue.js";
4
+ import f from "./SettingsGeneral.vue.js";
5
+ const y = /* @__PURE__ */ a({
6
6
  __name: "Settings",
7
- setup(f) {
8
- const n = {
7
+ setup(u) {
8
+ const e = {
9
9
  general: {
10
- component: p,
10
+ component: f,
11
11
  title: "general"
12
12
  }
13
- }, r = c("general");
14
- return (_, u) => (e(), t(l, null, {
15
- default: o(() => [
16
- i(s, { class: "flex-1" }, {
17
- default: o(() => [
18
- (e(), t(m(n[r.value].component)))
13
+ }, t = c("general");
14
+ return (_, d) => (o(), n(s, null, {
15
+ default: r(() => [
16
+ m(p, { class: "flex-1" }, {
17
+ default: r(() => [
18
+ e[t.value] ? (o(), n(i(e[t.value].component), { key: 0 })) : l("", !0)
19
19
  ]),
20
20
  _: 1
21
21
  })
@@ -25,5 +25,5 @@ const v = /* @__PURE__ */ a({
25
25
  }
26
26
  });
27
27
  export {
28
- v as default
28
+ y as default
29
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AA+2BA,wBAMG"}
1
+ {"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AAu3BA,wBAMG"}
@@ -1,15 +1,15 @@
1
- import { defineComponent as T, openBlock as a, createElementBlock as h, createElementVNode as r, createVNode as n, withCtx as l, createTextVNode as i, unref as e, normalizeClass as c, createBlock as d, createCommentVNode as f, toDisplayString as v, Fragment as C, renderList as U, normalizeStyle as w } from "vue";
2
- import B from "../../components/ImportCollection/IntegrationLogo.vue.js";
3
- import { useActiveEntities as A } from "../../store/active-entities.js";
4
- import { ScalarButton as p, ScalarIcon as m } from "@scalar/components";
5
- import { themeLabels as j } from "@scalar/themes";
6
- import E from "./components/SettingsAppearance.vue.js";
7
- import g from "./components/SettingsSection.vue.js";
8
- import { useWorkspace as L } from "../../store/store.js";
9
- const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py-5 max-w-[720px] ml-auto mr-auto w-full" }, V = { class: "flex flex-col gap-8" }, W = { class: "flex flex-col gap-2" }, F = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, O = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, P = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, D = { class: "flex flex-col gap-2" }, G = { class: "grid grid-cols-2 gap-2" }, q = { class: "flex items-center gap-2" }, H = { class: "flex items-center justify-center w-5 h-5 rounded-full border-[1.5px] p-1" }, M = { class: "flex items-center gap-1" }, 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: "rounded-xl size-7" }, b = "https://proxy.scalar.com", ne = /* @__PURE__ */ T({
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";
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({
10
10
  __name: "SettingsGeneral",
11
- setup(Z) {
12
- const { activeWorkspace: o } = A(), { proxyUrl: u, workspaceMutators: x } = L(), S = [
11
+ setup(re) {
12
+ const { activeWorkspace: o } = R(), { proxyUrl: x, workspaceMutators: v } = W(), A = [
13
13
  "default",
14
14
  "alternate",
15
15
  // 'moon',
@@ -20,7 +20,7 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py
20
20
  "kepler"
21
21
  // 'mars',
22
22
  // 'deepSpace',
23
- ], z = ["elysiajs", "fastify"], y = (k) => ({
23
+ ], E = ["elysiajs", "fastify"], C = (w) => ({
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,16 +32,17 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { 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
- })[k] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, _ = (k) => {
36
- x.edit(o.value.uid, "themeId", k);
35
+ })[w] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, z = (w) => {
36
+ var t;
37
+ v.edit(((t = o.value) == null ? void 0 : t.uid) ?? "", "themeId", w);
37
38
  };
38
- return (k, t) => (a(), h("div", N, [
39
- r("div", R, [
40
- r("div", V, [
39
+ return (w, t) => (c(), U("div", F, [
40
+ r("div", O, [
41
+ r("div", P, [
41
42
  t[13] || (t[13] = r("div", null, [
42
43
  r("h2", { class: "font-bold text-xl mt-10" }, "Settings")
43
44
  ], -1)),
44
- n(g, null, {
45
+ a(_, null, {
45
46
  title: l(() => t[3] || (t[3] = [
46
47
  i("CORS Proxy")
47
48
  ])),
@@ -60,78 +61,97 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py
60
61
  }, " source code on GitHub ", -1),
61
62
  i(" . ")
62
63
  ])),
63
- default: l(() => [
64
- r("div", W, [
65
- n(e(p), {
66
- class: c(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-1 border-1/2", {
67
- "bg-b-2 text-c-1": e(o).proxyUrl === b
68
- }]),
69
- variant: e(o).proxyUrl === b ? "primary" : "secondary",
70
- onClick: t[0] || (t[0] = (s) => e(x).edit(
71
- e(o).uid,
72
- "proxyUrl",
73
- b
74
- ))
75
- }, {
76
- default: l(() => [
77
- r("div", F, [
78
- e(o).proxyUrl === b ? (a(), d(e(m), {
79
- key: 0,
80
- icon: "Checkmark",
81
- size: "xs",
82
- thickness: "3.5"
83
- })) : f("", !0)
84
- ]),
85
- t[5] || (t[5] = i(" Use proxy.scalar.com (default) "))
86
- ]),
87
- _: 1
88
- }, 8, ["class", "variant"]),
89
- e(u) && e(u) !== b ? (a(), d(e(p), {
90
- key: 0,
91
- class: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-1 border-1/2",
92
- variant: "primary",
93
- onClick: t[1] || (t[1] = (s) => e(x).edit(
94
- e(o).uid,
95
- "proxyUrl",
96
- e(u)
97
- ))
98
- }, {
99
- default: l(() => [
100
- r("div", O, [
101
- e(o).proxyUrl === e(u) ? (a(), d(e(m), {
102
- key: 0,
103
- icon: "Checkmark",
104
- size: "xs",
105
- thickness: "3.5"
106
- })) : f("", !0)
64
+ default: l(() => {
65
+ var s, d, n, f;
66
+ 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) ?? "",
77
+ "proxyUrl",
78
+ h
79
+ );
80
+ })
81
+ }, {
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) "))
107
92
  ]),
108
- i(" Use custom proxy (" + v(e(u)) + ") ", 1)
109
- ]),
110
- _: 1
111
- })) : f("", !0),
112
- n(e(p), {
113
- class: c(["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": !e(o).proxyUrl }]),
114
- variant: e(o).proxyUrl ? "secondary" : "primary",
115
- onClick: t[2] || (t[2] = (s) => e(x).edit(e(o).uid, "proxyUrl", ""))
116
- }, {
117
- default: l(() => [
118
- r("div", P, [
119
- e(o).proxyUrl ? f("", !0) : (a(), d(e(m), {
120
- key: 0,
121
- icon: "Checkmark",
122
- size: "xs",
123
- thickness: "3.5"
124
- }))
93
+ _: 1
94
+ }, 8, ["class", "variant"]),
95
+ e(x) && e(x) !== h ? (c(), m(e(g), {
96
+ 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) ?? "",
103
+ "proxyUrl",
104
+ e(x)
105
+ );
106
+ })
107
+ }, {
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)
125
118
  ]),
126
- t[6] || (t[6] = i(" Skip the proxy "))
127
- ]),
128
- _: 1
129
- }, 8, ["class", "variant"])
130
- ])
131
- ]),
119
+ _: 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) ?? "",
128
+ "proxyUrl",
129
+ ""
130
+ );
131
+ })
132
+ }, {
133
+ default: l(() => {
134
+ var k;
135
+ return [
136
+ r("div", H, [
137
+ (k = e(o)) != null && k.proxyUrl ? b("", !0) : (c(), m(e(y), {
138
+ key: 0,
139
+ icon: "Checkmark",
140
+ size: "xs",
141
+ thickness: "3.5"
142
+ }))
143
+ ]),
144
+ t[6] || (t[6] = i(" Skip the proxy "))
145
+ ];
146
+ }),
147
+ _: 1
148
+ }, 8, ["class", "variant"])
149
+ ])
150
+ ];
151
+ }),
132
152
  _: 1
133
153
  }),
134
- n(g, null, {
154
+ a(_, null, {
135
155
  title: l(() => t[7] || (t[7] = [
136
156
  i("Themes")
137
157
  ])),
@@ -139,63 +159,69 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py
139
159
  i(" We’ve got a whole rainbow of themes for you to play with: ")
140
160
  ])),
141
161
  default: l(() => [
142
- r("div", D, [
143
- r("div", G, [
144
- (a(), h(C, null, U(S, (s) => n(e(p), {
145
- key: s,
146
- class: c(["px-2 flex items-center justify-between gap-2 text-c-1 border-1/2", [
147
- e(o).themeId === s ? "bg-b-2" : "bg-b-1"
148
- ]]),
149
- variant: "ghost",
150
- onClick: ($) => _(s)
151
- }, {
152
- default: l(() => [
153
- r("div", q, [
154
- r("div", {
155
- class: c(["flex items-center justify-center w-5 h-5 rounded-full border-2 border-c-3", {
156
- "bg-primary": e(o).themeId === s
157
- }])
158
- }, [
159
- r("div", H, [
160
- e(o).themeId === s ? (a(), d(e(m), {
161
- key: 0,
162
- icon: "Checkmark",
163
- size: "xs",
164
- thickness: "3.5"
165
- })) : f("", !0)
162
+ r("div", M, [
163
+ r("div", X, [
164
+ (c(), U($, null, T(A, (s) => {
165
+ var d;
166
+ return a(e(g), {
167
+ 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)
173
+ }, {
174
+ default: l(() => {
175
+ var n, f;
176
+ return [
177
+ r("div", Y, [
178
+ 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
181
+ }])
182
+ }, [
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
+ ])
191
+ ], 2),
192
+ i(" " + j(e(B)[s]), 1)
193
+ ]),
194
+ r("div", K, [
195
+ r("span", {
196
+ class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
197
+ style: S({
198
+ backgroundColor: C(s).light
199
+ })
200
+ }, null, 4),
201
+ r("span", {
202
+ class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
203
+ style: S({
204
+ backgroundColor: C(s).dark
205
+ })
206
+ }, null, 4),
207
+ r("span", {
208
+ class: "inline-block w-5 h-5 rounded-full border-c-3",
209
+ style: S({
210
+ backgroundColor: C(s).accent
211
+ })
212
+ }, null, 4)
166
213
  ])
167
- ], 2),
168
- i(" " + v(e(j)[s]), 1)
169
- ]),
170
- r("div", M, [
171
- r("span", {
172
- class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
173
- style: w({
174
- backgroundColor: y(s).light
175
- })
176
- }, null, 4),
177
- r("span", {
178
- class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
179
- style: w({
180
- backgroundColor: y(s).dark
181
- })
182
- }, null, 4),
183
- r("span", {
184
- class: "inline-block w-5 h-5 rounded-full border-c-3",
185
- style: w({
186
- backgroundColor: y(s).accent
187
- })
188
- }, null, 4)
189
- ])
190
- ]),
191
- _: 2
192
- }, 1032, ["class", "onClick"])), 64))
214
+ ];
215
+ }),
216
+ _: 2
217
+ }, 1032, ["class", "onClick"]);
218
+ }), 64))
193
219
  ])
194
220
  ])
195
221
  ]),
196
222
  _: 1
197
223
  }),
198
- n(g, null, {
224
+ a(_, null, {
199
225
  title: l(() => t[9] || (t[9] = [
200
226
  i("Framework Themes")
201
227
  ])),
@@ -203,46 +229,52 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py
203
229
  i(" Are you a real fan? Show your support by using your favorite framework’s theme! ")
204
230
  ])),
205
231
  default: l(() => [
206
- r("div", X, [
207
- (a(), h(C, null, U(z, (s) => n(e(p), {
208
- key: s,
209
- class: c(["px-2 flex items-center justify-between gap-2 text-c-1 border-1/2", [
210
- e(o).themeId === s ? "bg-b-2" : "bg-b-1"
211
- ]]),
212
- variant: "ghost",
213
- onClick: ($) => _(s)
214
- }, {
215
- default: l(() => [
216
- r("div", Y, [
217
- r("div", {
218
- class: c(["flex items-center justify-center w-5 h-5 rounded-full border-2 border-c-3", {
219
- "bg-primary": e(o).themeId === s
220
- }])
221
- }, [
222
- r("div", J, [
223
- e(o).themeId === s ? (a(), d(e(m), {
224
- key: 0,
225
- icon: "Checkmark",
226
- size: "xs",
227
- thickness: "3.5"
228
- })) : f("", !0)
232
+ r("div", Q, [
233
+ (c(), U($, null, T(E, (s) => {
234
+ var d;
235
+ return a(e(g), {
236
+ 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)
242
+ }, {
243
+ default: l(() => {
244
+ var n, f;
245
+ return [
246
+ r("div", Z, [
247
+ 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
250
+ }])
251
+ }, [
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
+ ])
260
+ ], 2),
261
+ i(" " + j(e(B)[s]), 1)
262
+ ]),
263
+ r("div", ee, [
264
+ r("div", te, [
265
+ a(N, { integration: s }, null, 8, ["integration"])
266
+ ])
229
267
  ])
230
- ], 2),
231
- i(" " + v(e(j)[s]), 1)
232
- ]),
233
- r("div", K, [
234
- r("div", Q, [
235
- n(B, { integration: s }, null, 8, ["integration"])
236
- ])
237
- ])
238
- ]),
239
- _: 2
240
- }, 1032, ["class", "onClick"])), 64))
268
+ ];
269
+ }),
270
+ _: 2
271
+ }, 1032, ["class", "onClick"]);
272
+ }), 64))
241
273
  ])
242
274
  ]),
243
275
  _: 1
244
276
  }),
245
- n(g, null, {
277
+ a(_, null, {
246
278
  title: l(() => t[11] || (t[11] = [
247
279
  i("Appearance")
248
280
  ])),
@@ -250,7 +282,7 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py
250
282
  i(" Choose between light, dark, or system-based appearance for your workspace. ")
251
283
  ])),
252
284
  default: l(() => [
253
- n(E)
285
+ a(V)
254
286
  ]),
255
287
  _: 1
256
288
  })
@@ -260,5 +292,5 @@ const N = { class: "bg-b-1 w-full h-full overflow-auto" }, R = { class: "px-5 py
260
292
  }
261
293
  });
262
294
  export {
263
- ne as default
295
+ fe as default
264
296
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.2.21",
21
+ "version": "2.2.23",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -171,17 +171,17 @@
171
171
  "zod": "^3.23.8",
172
172
  "@scalar/components": "0.13.10",
173
173
  "@scalar/draggable": "0.1.8",
174
- "@scalar/import": "0.2.11",
174
+ "@scalar/import": "0.2.12",
175
175
  "@scalar/icons": "0.1.2",
176
- "@scalar/object-utils": "1.1.12",
176
+ "@scalar/oas-utils": "0.2.92",
177
177
  "@scalar/openapi-parser": "0.10.2",
178
- "@scalar/oas-utils": "0.2.91",
179
178
  "@scalar/openapi-types": "0.1.5",
180
- "@scalar/postman-to-openapi": "0.1.14",
179
+ "@scalar/object-utils": "1.1.12",
181
180
  "@scalar/themes": "0.9.58",
182
- "@scalar/types": "0.0.25",
181
+ "@scalar/postman-to-openapi": "0.1.15",
183
182
  "@scalar/use-codemirror": "0.11.54",
184
183
  "@scalar/use-hooks": "0.1.11",
184
+ "@scalar/types": "0.0.25",
185
185
  "@scalar/use-tooltip": "1.0.4",
186
186
  "@scalar/use-toasts": "0.7.7"
187
187
  },