@scalar/api-client 2.2.49 → 2.2.51

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