@scalar/api-client 2.2.48 → 2.2.50

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 (217) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts +15 -3
  3. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  5. package/dist/components/AddressBar/AddressBar.vue2.js +102 -94
  6. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts +2 -0
  7. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  9. package/dist/components/AddressBar/AddressBarHistory.vue2.js +54 -58
  10. package/dist/components/CodeInput/CodeInput.vue.d.ts +9 -0
  11. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  12. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  13. package/dist/components/CodeInput/CodeInput.vue2.js +95 -93
  14. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  15. package/dist/components/CodeInput/codeVariableWidget.js +1 -3
  16. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -22
  18. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  19. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +13 -13
  20. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  21. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +12 -12
  22. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  23. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +54 -49
  24. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
  25. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +9 -9
  26. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  27. package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
  28. package/dist/components/DataTable/DataTableCell.vue.js +11 -8
  29. package/dist/components/DataTable/DataTableInput.vue.d.ts +6 -0
  30. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  31. package/dist/components/DataTable/DataTableInput.vue.js +4 -4
  32. package/dist/components/DataTable/DataTableInput.vue2.js +36 -30
  33. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  34. package/dist/components/DataTable/DataTableInputSelect.vue.js +15 -15
  35. package/dist/components/Form/Form.vue.d.ts +3 -1
  36. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  37. package/dist/components/Form/Form.vue.js +30 -25
  38. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  39. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +41 -41
  40. package/dist/components/ImportCollection/ImportNowButton.vue.js +24 -24
  41. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  42. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
  43. package/dist/components/Server/ServerDropdown.vue.js +13 -13
  44. package/dist/components/Server/ServerDropdownItem.vue.d.ts +1 -1
  45. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  46. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  47. package/dist/components/Server/ServerDropdownItem.vue2.js +19 -19
  48. package/dist/layouts/App/create-api-client-app.d.ts +387 -477
  49. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  50. package/dist/layouts/Modal/create-api-client-modal.d.ts +774 -954
  51. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  52. package/dist/layouts/Web/create-api-client-web.d.ts +387 -477
  53. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  54. package/dist/libs/create-client.d.ts +390 -479
  55. package/dist/libs/create-client.d.ts.map +1 -1
  56. package/dist/libs/create-client.js +3 -15
  57. package/dist/libs/env-helpers.d.ts.map +1 -1
  58. package/dist/libs/find-request.d.ts +7 -7
  59. package/dist/libs/find-request.d.ts.map +1 -1
  60. package/dist/libs/hot-keys.d.ts +3 -1
  61. package/dist/libs/hot-keys.d.ts.map +1 -1
  62. package/dist/libs/hot-keys.js +11 -15
  63. package/dist/libs/hot-keys.test.d.ts +2 -0
  64. package/dist/libs/hot-keys.test.d.ts.map +1 -0
  65. package/dist/libs/index.js +27 -26
  66. package/dist/libs/send-request/build-request-security.d.ts +1 -1
  67. package/dist/libs/send-request/build-request-security.js +19 -16
  68. package/dist/libs/send-request/create-request-operation.test.d.ts +10 -10
  69. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  70. package/dist/libs/send-request/set-request-cookies.d.ts +1 -1
  71. package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
  72. package/dist/libs/send-request/set-request-cookies.js +37 -34
  73. package/dist/store/active-entities.d.ts +58 -67
  74. package/dist/store/active-entities.d.ts.map +1 -1
  75. package/dist/store/active-entities.js +61 -74
  76. package/dist/store/collections.d.ts +90 -90
  77. package/dist/store/collections.d.ts.map +1 -1
  78. package/dist/store/collections.js +4 -17
  79. package/dist/store/cookies.d.ts +14 -14
  80. package/dist/store/environment.d.ts +19 -18
  81. package/dist/store/environment.d.ts.map +1 -1
  82. package/dist/store/environment.js +2 -8
  83. package/dist/store/import-spec.d.ts +16 -106
  84. package/dist/store/import-spec.d.ts.map +1 -1
  85. package/dist/store/import-spec.js +9 -14
  86. package/dist/store/request-example.d.ts +25 -25
  87. package/dist/store/request-example.d.ts.map +1 -1
  88. package/dist/store/request-example.js +15 -20
  89. package/dist/store/requests.d.ts +84 -84
  90. package/dist/store/requests.d.ts.map +1 -1
  91. package/dist/store/requests.js +17 -40
  92. package/dist/store/router-params.d.ts +13 -11
  93. package/dist/store/router-params.d.ts.map +1 -1
  94. package/dist/store/router-params.js +5 -5
  95. package/dist/store/security-schemes.d.ts +58 -58
  96. package/dist/store/security-schemes.d.ts.map +1 -1
  97. package/dist/store/security-schemes.js +1 -3
  98. package/dist/store/servers.d.ts +17 -17
  99. package/dist/store/servers.d.ts.map +1 -1
  100. package/dist/store/servers.js +2 -9
  101. package/dist/store/store.d.ts +387 -477
  102. package/dist/store/store.d.ts.map +1 -1
  103. package/dist/store/store.js +2 -4
  104. package/dist/store/tags.d.ts +28 -28
  105. package/dist/store/tags.d.ts.map +1 -1
  106. package/dist/store/tags.js +19 -34
  107. package/dist/store/workspace.d.ts +36 -36
  108. package/dist/store/workspace.d.ts.map +1 -1
  109. package/dist/store/workspace.js +1 -5
  110. package/dist/style.css +1 -1
  111. package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
  112. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  113. package/dist/views/Cookies/CookieForm.vue.js +18 -18
  114. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
  115. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  116. package/dist/views/Cookies/Cookies.vue2.js +24 -24
  117. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  118. package/dist/views/Environment/Environment.vue2.js +140 -132
  119. package/dist/views/Environment/EnvironmentModal.vue.d.ts +2 -2
  120. package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
  121. package/dist/views/Environment/EnvironmentModal.vue.js +15 -15
  122. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  123. package/dist/views/Request/Request.vue.js +2 -2
  124. package/dist/views/Request/Request.vue2.js +160 -141
  125. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts +2 -1
  126. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.d.ts.map +1 -1
  127. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +7 -7
  128. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +6 -2
  129. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +99 -95
  131. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +4 -0
  132. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  134. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +70 -64
  135. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +4 -0
  136. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
  138. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +40 -34
  139. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +6 -0
  140. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  141. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +32 -26
  142. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts +4 -0
  143. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  144. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  145. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +93 -85
  146. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts +9 -0
  147. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  148. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  149. package/dist/views/Request/RequestSection/RequestBody.vue2.js +214 -244
  150. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +10 -1
  151. package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
  152. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  153. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +77 -80
  154. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts +7 -0
  155. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  156. package/dist/views/Request/RequestSection/RequestParams.vue.js +89 -96
  157. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts +10 -2
  158. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  159. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +59 -66
  160. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +11 -0
  161. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  162. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  163. package/dist/views/Request/RequestSection/RequestSection.vue2.js +176 -155
  164. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +6 -0
  165. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  166. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  167. package/dist/views/Request/RequestSection/RequestTable.vue2.js +97 -100
  168. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  169. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +2 -2
  170. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +31 -22
  171. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts +2 -2
  172. package/dist/views/Request/RequestSection/helpers/getting-started.d.ts.map +1 -1
  173. package/dist/views/Request/RequestSection/helpers/getting-started.js +11 -13
  174. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  175. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  176. package/dist/views/Request/RequestSidebar.vue2.js +50 -48
  177. package/dist/views/Request/RequestSidebarItem.vue.d.ts +1 -1
  178. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  179. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  180. package/dist/views/Request/RequestSidebarItem.vue2.js +38 -44
  181. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +10 -0
  182. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  183. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  184. package/dist/views/Request/RequestSubpageHeader.vue2.js +77 -69
  185. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +7 -7
  186. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts +4 -1
  187. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  188. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  189. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +41 -39
  190. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts +1 -0
  191. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  192. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  193. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +56 -52
  194. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  195. package/dist/views/Request/components/WorkspaceDropdown.vue.js +68 -68
  196. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  197. package/dist/views/Request/handle-drag.d.ts +1 -1
  198. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  199. package/dist/views/Request/handle-drag.js +38 -55
  200. package/dist/views/Request/libs/auth.d.ts +2 -2
  201. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  202. package/dist/views/Request/libs/auth.js +28 -29
  203. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  204. package/dist/views/Request/libs/oauth2.js +42 -65
  205. package/dist/views/Request/libs/request.d.ts +5 -0
  206. package/dist/views/Request/libs/request.d.ts.map +1 -1
  207. package/dist/views/Request/libs/request.js +37 -2
  208. package/dist/views/Request/libs/watch-mode.d.ts.map +1 -1
  209. package/dist/views/Request/libs/watch-mode.js +10 -34
  210. package/dist/views/Servers/ServerForm.vue.d.ts +1 -8
  211. package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
  212. package/dist/views/Servers/ServerForm.vue.js +21 -22
  213. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  214. package/dist/views/Servers/Servers.vue2.js +73 -81
  215. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  216. package/dist/views/Settings/SettingsGeneral.vue.js +118 -134
  217. package/package.json +14 -14
@@ -1,15 +1,15 @@
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";
1
+ import { defineComponent as P, openBlock as d, createElementBlock as S, createElementVNode as r, createVNode as c, withCtx as n, createTextVNode as a, unref as e, normalizeClass as f, createBlock as m, createCommentVNode as b, toDisplayString as z, Fragment as B, renderList as A, normalizeStyle as $ } from "vue";
2
+ import { cva as R, ScalarButton as y, cx as v, ScalarIcon as h } from "@scalar/components";
3
+ import { themeLabels as E } from "@scalar/themes";
4
+ import V from "../../components/ImportCollection/IntegrationLogo.vue.js";
5
+ import { useActiveEntities as W } from "../../store/active-entities.js";
6
6
  import F from "./components/SettingsAppearance.vue.js";
7
- import _ from "./components/SettingsSection.vue.js";
7
+ import C from "./components/SettingsSection.vue.js";
8
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({
9
+ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto mr-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({
10
10
  __name: "SettingsGeneral",
11
- setup(I) {
12
- const { activeWorkspace: o } = V(), { proxyUrl: k, workspaceMutators: w } = O(), E = [
11
+ setup(ee) {
12
+ const { activeWorkspace: o } = W(), { proxyUrl: k, workspaceMutators: j } = O(), L = [
13
13
  "default",
14
14
  "alternate",
15
15
  // 'moon',
@@ -20,7 +20,7 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
20
20
  "kepler"
21
21
  // 'mars',
22
22
  // 'deepSpace',
23
- ], L = ["elysiajs", "fastify"], U = (C) => ({
23
+ ], N = ["elysiajs", "fastify"], _ = (x) => ({
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,10 +32,10 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { 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
- })[C] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, j = (C) => {
35
+ })[x] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, T = (x) => {
36
36
  var t;
37
- w.edit(((t = o.value) == null ? void 0 : t.uid) ?? "", "themeId", C);
38
- }, b = W({
37
+ return j.edit((t = o.value) == null ? void 0 : t.uid, "themeId", x);
38
+ }, g = R({
39
39
  base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border-1/2",
40
40
  variants: {
41
41
  active: {
@@ -43,16 +43,19 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
43
43
  false: "bg-b-1 hover:bg-b-2"
44
44
  }
45
45
  }
46
- });
47
- return (C, t) => (u(), S("div", P, [
48
- r("div", D, [
49
- r("div", G, [
50
- t[13] || (t[13] = r("div", null, [
51
- r("h2", { class: "font-bold text-xl mt-10" }, "Settings")
46
+ }), U = (x) => {
47
+ var t;
48
+ return j.edit((t = o.value) == null ? void 0 : t.uid, "proxyUrl", x);
49
+ };
50
+ return (x, t) => (d(), S("div", D, [
51
+ r("div", G, [
52
+ r("div", q, [
53
+ t[15] || (t[15] = r("div", null, [
54
+ r("h2", { class: "mt-10 text-xl font-bold" }, "Settings")
52
55
  ], -1)),
53
- f(_, null, {
56
+ c(C, null, {
54
57
  title: n(() => t[3] || (t[3] = [
55
- a("CORS Proxy")
58
+ a(" CORS Proxy ")
56
59
  ])),
57
60
  description: n(() => t[4] || (t[4] = [
58
61
  a(" Browsers block cross-origin requests for security. We provide a public proxy to "),
@@ -70,112 +73,93 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
70
73
  a(" . ")
71
74
  ])),
72
75
  default: n(() => {
73
- var s, p, c;
76
+ var s, u, i;
74
77
  return [
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
78
+ r("div", H, [
79
+ c(e(y), {
80
+ class: f(
81
+ e(v)(
82
+ e(g)({
83
+ active: ((s = e(o)) == null ? void 0 : s.proxyUrl) === w
81
84
  })
82
85
  )
83
86
  ),
84
- onClick: t[0] || (t[0] = (l) => {
85
- var i;
86
- return e(w).edit(
87
- ((i = e(o)) == null ? void 0 : i.uid) ?? "",
88
- "proxyUrl",
89
- v
90
- );
91
- })
87
+ onClick: t[0] || (t[0] = (l) => U(w))
92
88
  }, {
93
89
  default: n(() => {
94
- var l;
90
+ var l, p;
95
91
  return [
92
+ t[5] || (t[5] = a(' "> ')),
96
93
  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
94
+ class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
95
+ "bg-c-accent text-b-1 border-transparent": ((l = e(o)) == null ? void 0 : l.proxyUrl) === w
99
96
  }])
100
97
  }, [
101
- e(o).proxyUrl === v ? (u(), x(e(h), {
98
+ ((p = e(o)) == null ? void 0 : p.proxyUrl) === w ? (d(), m(e(h), {
102
99
  key: 0,
103
100
  icon: "Checkmark",
104
101
  size: "xs",
105
102
  thickness: "3.5"
106
- })) : m("", !0)
103
+ })) : b("", !0)
107
104
  ], 2),
108
- t[5] || (t[5] = a(" Use proxy.scalar.com (default) "))
105
+ t[6] || (t[6] = a(" Use proxy.scalar.com (default) "))
109
106
  ];
110
107
  }),
111
108
  _: 1
112
109
  }, 8, ["class"]),
113
- e(k) && e(k) !== v ? (u(), x(e(g), {
110
+ e(k) && e(k) !== w ? (d(), m(e(y), {
114
111
  key: 0,
115
- class: d(
116
- e(y)(
117
- e(b)({
118
- active: ((p = e(o)) == null ? void 0 : p.proxyUrl) === e(k)
112
+ class: f(
113
+ e(v)(
114
+ e(g)({
115
+ active: ((u = e(o)) == null ? void 0 : u.proxyUrl) === e(k)
119
116
  })
120
117
  )
121
118
  ),
122
- onClick: t[1] || (t[1] = (l) => {
123
- var i;
124
- return e(w).edit(
125
- ((i = e(o)) == null ? void 0 : i.uid) ?? "",
126
- "proxyUrl",
127
- e(k)
128
- );
129
- })
119
+ onClick: t[1] || (t[1] = (l) => U(e(k)))
130
120
  }, {
131
121
  default: n(() => {
132
- var l;
122
+ var l, p;
133
123
  return [
124
+ t[7] || (t[7] = a(' "> ')),
134
125
  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)
126
+ class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
127
+ "bg-c-accent text-b-1 border-transparent": ((l = e(o)) == null ? void 0 : l.proxyUrl) === e(k)
137
128
  }])
138
129
  }, [
139
- e(o).proxyUrl === e(k) ? (u(), x(e(h), {
130
+ ((p = e(o)) == null ? void 0 : p.proxyUrl) === e(k) ? (d(), m(e(h), {
140
131
  key: 0,
141
132
  icon: "Checkmark",
142
133
  size: "xs",
143
134
  thickness: "3.5"
144
- })) : m("", !0)
135
+ })) : b("", !0)
145
136
  ], 2),
146
137
  a(" Use custom proxy (" + z(e(k)) + ") ", 1)
147
138
  ];
148
139
  }),
149
140
  _: 1
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) ?? "",
157
- "proxyUrl",
158
- ""
159
- );
160
- })
141
+ }, 8, ["class"])) : b("", !0),
142
+ c(e(y), {
143
+ class: f(e(v)(e(g)({ active: !((i = e(o)) != null && i.proxyUrl) }))),
144
+ onClick: t[2] || (t[2] = (l) => U(void 0))
161
145
  }, {
162
146
  default: n(() => {
163
- var l, i;
147
+ var l, p;
164
148
  return [
165
149
  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"
150
+ class: f([
151
+ "flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",
152
+ !((l = e(o)) != null && l.proxyUrl) && "bg-c-accent text-b-1 border-transparent"
169
153
  ])
170
154
  }, [
171
- (i = e(o)) != null && i.proxyUrl ? m("", !0) : (u(), x(e(h), {
155
+ (p = e(o)) != null && p.proxyUrl ? b("", !0) : (d(), m(e(h), {
172
156
  key: 0,
173
157
  icon: "Checkmark",
174
158
  size: "xs",
175
159
  thickness: "3.5"
176
160
  }))
177
161
  ], 2),
178
- t[6] || (t[6] = a(" Skip the proxy "))
162
+ t[8] || (t[8] = a(" Skip the proxy "))
179
163
  ];
180
164
  }),
181
165
  _: 1
@@ -185,64 +169,64 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
185
169
  }),
186
170
  _: 1
187
171
  }),
188
- f(_, null, {
189
- title: n(() => t[7] || (t[7] = [
190
- a("Themes")
172
+ c(C, null, {
173
+ title: n(() => t[9] || (t[9] = [
174
+ a(" Themes ")
191
175
  ])),
192
- description: n(() => t[8] || (t[8] = [
176
+ description: n(() => t[10] || (t[10] = [
193
177
  a(" We’ve got a whole rainbow of themes for you to play with: ")
194
178
  ])),
195
179
  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), {
180
+ r("div", M, [
181
+ r("div", X, [
182
+ (d(), S(B, null, A(L, (s) => {
183
+ var u;
184
+ return c(e(y), {
201
185
  key: s,
202
- class: d(
203
- e(y)(
204
- e(b)({
205
- active: ((p = e(o)) == null ? void 0 : p.themeId) === s
186
+ class: f(
187
+ e(v)(
188
+ e(g)({
189
+ active: ((u = e(o)) == null ? void 0 : u.themeId) === s
206
190
  })
207
191
  )
208
192
  ),
209
- onClick: (c) => j(s)
193
+ onClick: (i) => T(s)
210
194
  }, {
211
195
  default: n(() => {
212
- var c, l;
196
+ var i, l;
213
197
  return [
214
- r("div", X, [
198
+ r("div", Y, [
215
199
  r("div", {
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
200
+ class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
201
+ "bg-c-accent text-b-1 border-transparent": ((i = e(o)) == null ? void 0 : i.themeId) === s
218
202
  }])
219
203
  }, [
220
- ((l = e(o)) == null ? void 0 : l.themeId) === s ? (u(), x(e(h), {
204
+ ((l = e(o)) == null ? void 0 : l.themeId) === s ? (d(), m(e(h), {
221
205
  key: 0,
222
206
  icon: "Checkmark",
223
207
  size: "xs",
224
208
  thickness: "3.5"
225
- })) : m("", !0)
209
+ })) : b("", !0)
226
210
  ], 2),
227
- a(" " + z(e(A)[s]), 1)
211
+ a(" " + z(e(E)[s]), 1)
228
212
  ]),
229
- r("div", Y, [
213
+ r("div", J, [
230
214
  r("span", {
231
- class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
215
+ class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
232
216
  style: $({
233
- backgroundColor: U(s).light
217
+ backgroundColor: _(s).light
234
218
  })
235
219
  }, null, 4),
236
220
  r("span", {
237
- class: "inline-block w-5 h-5 rounded-full border-c-3 -mr-3",
221
+ class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
238
222
  style: $({
239
- backgroundColor: U(s).dark
223
+ backgroundColor: _(s).dark
240
224
  })
241
225
  }, null, 4),
242
226
  r("span", {
243
- class: "inline-block w-5 h-5 rounded-full border-c-3",
227
+ class: "border-c-3 inline-block h-5 w-5 rounded-full",
244
228
  style: $({
245
- backgroundColor: U(s).accent
229
+ backgroundColor: _(s).accent
246
230
  })
247
231
  }, null, 4)
248
232
  ])
@@ -256,49 +240,49 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
256
240
  ]),
257
241
  _: 1
258
242
  }),
259
- f(_, null, {
260
- title: n(() => t[9] || (t[9] = [
261
- a("Framework Themes")
243
+ c(C, null, {
244
+ title: n(() => t[11] || (t[11] = [
245
+ a(" Framework Themes ")
262
246
  ])),
263
- description: n(() => t[10] || (t[10] = [
247
+ description: n(() => t[12] || (t[12] = [
264
248
  a(" Are you a real fan? Show your support by using your favorite framework’s theme! ")
265
249
  ])),
266
250
  default: n(() => [
267
- r("div", J, [
268
- (u(), S(T, null, B(L, (s) => {
269
- var p;
270
- return f(e(g), {
251
+ r("div", K, [
252
+ (d(), S(B, null, A(N, (s) => {
253
+ var u;
254
+ return c(e(y), {
271
255
  key: s,
272
- class: d(
273
- e(y)(
274
- e(b)({
275
- active: ((p = e(o)) == null ? void 0 : p.themeId) === s
256
+ class: f(
257
+ e(v)(
258
+ e(g)({
259
+ active: ((u = e(o)) == null ? void 0 : u.themeId) === s
276
260
  })
277
261
  )
278
262
  ),
279
- onClick: (c) => j(s)
263
+ onClick: (i) => T(s)
280
264
  }, {
281
265
  default: n(() => {
282
- var c, l;
266
+ var i, l;
283
267
  return [
284
- r("div", K, [
268
+ r("div", Q, [
285
269
  r("div", {
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
270
+ class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
271
+ "bg-c-accent text-b-1 border-transparent": ((i = e(o)) == null ? void 0 : i.themeId) === s
288
272
  }])
289
273
  }, [
290
- ((l = e(o)) == null ? void 0 : l.themeId) === s ? (u(), x(e(h), {
274
+ ((l = e(o)) == null ? void 0 : l.themeId) === s ? (d(), m(e(h), {
291
275
  key: 0,
292
276
  icon: "Checkmark",
293
277
  size: "xs",
294
278
  thickness: "3.5"
295
- })) : m("", !0)
279
+ })) : b("", !0)
296
280
  ], 2),
297
- a(" " + z(e(A)[s]), 1)
281
+ a(" " + z(e(E)[s]), 1)
298
282
  ]),
299
- r("div", Q, [
300
- r("div", Z, [
301
- f(R, { integration: s }, null, 8, ["integration"])
283
+ r("div", Z, [
284
+ r("div", I, [
285
+ c(V, { integration: s }, null, 8, ["integration"])
302
286
  ])
303
287
  ])
304
288
  ];
@@ -310,15 +294,15 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
310
294
  ]),
311
295
  _: 1
312
296
  }),
313
- f(_, null, {
314
- title: n(() => t[11] || (t[11] = [
315
- a("Appearance")
297
+ c(C, null, {
298
+ title: n(() => t[13] || (t[13] = [
299
+ a(" Appearance ")
316
300
  ])),
317
- description: n(() => t[12] || (t[12] = [
301
+ description: n(() => t[14] || (t[14] = [
318
302
  a(" Choose between light, dark, or system-based appearance for your workspace. ")
319
303
  ])),
320
304
  default: n(() => [
321
- f(F)
305
+ c(F)
322
306
  ]),
323
307
  _: 1
324
308
  })
@@ -328,5 +312,5 @@ const P = { class: "bg-b-1 w-full h-full overflow-auto" }, D = { class: "px-5 py
328
312
  }
329
313
  });
330
314
  export {
331
- ie as default
315
+ ce as default
332
316
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.2.48",
21
+ "version": "2.2.50",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -193,22 +193,22 @@
193
193
  "whatwg-mimetype": "^4.0.0",
194
194
  "yaml": "^2.4.5",
195
195
  "zod": "^3.23.8",
196
- "@scalar/components": "0.13.24",
197
196
  "@scalar/draggable": "0.1.10",
197
+ "@scalar/components": "0.13.25",
198
198
  "@scalar/icons": "0.1.3",
199
- "@scalar/import": "0.2.25",
199
+ "@scalar/import": "0.2.27",
200
+ "@scalar/oas-utils": "0.2.107",
200
201
  "@scalar/object-utils": "1.1.13",
201
- "@scalar/openapi-parser": "0.10.7",
202
- "@scalar/oas-utils": "0.2.105",
203
- "@scalar/openapi-types": "0.1.7",
204
- "@scalar/postman-to-openapi": "0.1.28",
205
- "@scalar/themes": "0.9.67",
206
- "@scalar/snippetz": "0.2.13",
207
- "@scalar/use-codemirror": "0.11.69",
202
+ "@scalar/openapi-parser": "0.10.8",
203
+ "@scalar/openapi-types": "0.1.8",
204
+ "@scalar/postman-to-openapi": "0.1.30",
205
+ "@scalar/snippetz": "0.2.14",
206
+ "@scalar/themes": "0.9.68",
207
+ "@scalar/types": "0.0.34",
208
+ "@scalar/use-codemirror": "0.11.70",
208
209
  "@scalar/use-toasts": "0.7.9",
209
- "@scalar/types": "0.0.33",
210
- "@scalar/use-tooltip": "1.0.6",
211
- "@scalar/use-hooks": "0.1.21"
210
+ "@scalar/use-hooks": "0.1.22",
211
+ "@scalar/use-tooltip": "1.0.6"
212
212
  },
213
213
  "devDependencies": {
214
214
  "@types/shell-quote": "^1.7.5",
@@ -224,7 +224,7 @@
224
224
  "vite": "^5.4.10",
225
225
  "vite-svg-loader": "^5.1.0",
226
226
  "vitest": "^1.6.0",
227
- "@scalar/build-tooling": "0.1.13",
227
+ "@scalar/build-tooling": "0.1.14",
228
228
  "@scalar/galaxy": "0.2.20"
229
229
  },
230
230
  "scripts": {