@scalar/api-client 2.5.32 → 2.5.34

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 (235) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue2.js +120 -128
  4. package/dist/components/AddressBar/AddressBarHistory.vue.js +1 -1
  5. package/dist/components/AddressBar/AddressBarHistory.vue2.js +57 -63
  6. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  7. package/dist/components/CodeInput/CodeInput.vue2.js +143 -150
  8. package/dist/components/CodeInput/codeVariableWidget.js +70 -75
  9. package/dist/components/CommandPalette/CommandActionInput.vue.js +17 -19
  10. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +26 -27
  11. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +53 -55
  12. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +129 -133
  13. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue.js +1 -1
  14. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +84 -98
  15. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +64 -74
  16. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +5 -11
  17. package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
  18. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +164 -183
  19. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  20. package/dist/components/DataTable/DataTableInput.vue.js +4 -4
  21. package/dist/components/DataTable/DataTableInput.vue2.js +31 -31
  22. package/dist/components/DataTable/DataTableInputSelect.vue.js +1 -2
  23. package/dist/components/EmptyState.vue.js +1 -1
  24. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +75 -84
  25. package/dist/components/Form/LabelInput.vue.js +1 -1
  26. package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
  27. package/dist/components/HttpMethod/HttpMethod.vue2.js +11 -11
  28. package/dist/components/ImportCollection/DropEventListener.vue.js +42 -44
  29. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +22 -23
  30. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +141 -149
  31. package/dist/components/ImportCollection/ImportCollectionModal.vue3.js +1 -1
  32. package/dist/components/ImportCollection/ImportNowButton.vue.js +22 -23
  33. package/dist/components/ImportCollection/IntegrationLogo.vue.js +12 -13
  34. package/dist/components/ImportCollection/PasteEventListener.vue.js +11 -12
  35. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +69 -76
  36. package/dist/components/ImportCollection/utils/get-openapi-version.js +8 -8
  37. package/dist/components/ImportCollection/utils/import-collection.js +14 -14
  38. package/dist/components/OpenApiClientButton.vue.js +1 -1
  39. package/dist/components/OpenApiClientButton.vue2.js +10 -10
  40. package/dist/components/ScalarAsciiArt.vue.js +1 -1
  41. package/dist/components/ScalarAsciiArt.vue2.js +19 -22
  42. package/dist/components/Search/useSearch.js +51 -61
  43. package/dist/components/SectionFilter.vue.js +1 -1
  44. package/dist/components/SectionFilter.vue2.js +26 -29
  45. package/dist/components/Server/ServerDropdown.vue.js +70 -96
  46. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  47. package/dist/components/Server/ServerDropdownItem.vue2.js +57 -67
  48. package/dist/components/Server/ServerSelector.vue.js +44 -55
  49. package/dist/components/Server/ServerVariablesForm.vue.js +36 -42
  50. package/dist/components/Server/ServerVariablesSelect.vue.js +6 -6
  51. package/dist/components/SideNav/DownloadAppButton.vue.js +1 -1
  52. package/dist/components/SideNav/SideNav.vue.js +68 -74
  53. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
  54. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  55. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  56. package/dist/components/TopNav/TopNav.vue.js +107 -122
  57. package/dist/components/TopNav/TopNavItem.vue.js +1 -1
  58. package/dist/hooks/useFileDialog.js +12 -12
  59. package/dist/hooks/useResponseBody.js +14 -16
  60. package/dist/index.d.ts +1 -1
  61. package/dist/index.js +2 -2
  62. package/dist/layouts/App/ApiClientApp.vue.js +50 -56
  63. package/dist/layouts/App/ApiClientApp.vue3.js +1 -1
  64. package/dist/layouts/App/create-api-client-app.js +19 -20
  65. package/dist/layouts/App/index.js +1 -1
  66. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
  67. package/dist/layouts/Modal/ApiClientModal.vue2.js +18 -21
  68. package/dist/layouts/Web/ApiClientWeb.vue.js +45 -51
  69. package/dist/layouts/Web/ApiClientWeb.vue3.js +1 -1
  70. package/dist/layouts/Web/create-api-client-web.js +19 -20
  71. package/dist/layouts/Web/index.js +1 -1
  72. package/dist/libs/create-client.js +102 -109
  73. package/dist/libs/env-helpers.js +3 -3
  74. package/dist/libs/event-bus.js +15 -15
  75. package/dist/libs/extractAttachmentFilename.js +5 -6
  76. package/dist/libs/find-request.js +9 -10
  77. package/dist/libs/get-request-uid-by-path-method.js +12 -12
  78. package/dist/libs/getOpenApiDocumentDetails.js +7 -7
  79. package/dist/libs/importers/curl.js +3 -3
  80. package/dist/libs/normalize-headers.js +9 -10
  81. package/dist/libs/postman.js +15 -17
  82. package/dist/libs/send-request/build-request-security.js +9 -10
  83. package/dist/libs/send-request/create-fetch-body.js +11 -12
  84. package/dist/libs/send-request/create-fetch-query-params.js +13 -13
  85. package/dist/libs/send-request/create-request-operation.js +83 -84
  86. package/dist/libs/send-request/decode-buffer.d.ts.map +1 -1
  87. package/dist/libs/send-request/set-request-cookies.js +12 -12
  88. package/dist/libs/string-template.js +21 -21
  89. package/dist/libs/validate-parameters.js +5 -8
  90. package/dist/plugins/plugin-manager.js +11 -17
  91. package/dist/store/active-entities.js +90 -117
  92. package/dist/store/collections.js +41 -42
  93. package/dist/store/import-spec.js +25 -26
  94. package/dist/store/request-example.js +20 -24
  95. package/dist/store/requests.js +63 -81
  96. package/dist/store/router-params.js +7 -7
  97. package/dist/store/security-schemes.js +35 -36
  98. package/dist/store/store.js +2 -2
  99. package/dist/store/tags.js +20 -21
  100. package/dist/style.css +1 -1
  101. package/dist/views/Collection/Collection.vue2.js +21 -22
  102. package/dist/views/Collection/CollectionAuthentication.vue.js +1 -1
  103. package/dist/views/Collection/CollectionAuthentication.vue2.js +43 -47
  104. package/dist/views/Collection/CollectionEnvironment.vue.js +1 -1
  105. package/dist/views/Collection/CollectionEnvironment.vue2.js +196 -207
  106. package/dist/views/Collection/CollectionInfoForm.vue.js +1 -1
  107. package/dist/views/Collection/CollectionInfoForm.vue2.js +34 -41
  108. package/dist/views/Collection/CollectionNavigation.vue.js +116 -125
  109. package/dist/views/Collection/CollectionOverview.vue2.js +22 -25
  110. package/dist/views/Collection/CollectionServerForm.vue.js +39 -45
  111. package/dist/views/Collection/CollectionServers.vue2.js +88 -98
  112. package/dist/views/Collection/CollectionSettings.vue.js +1 -1
  113. package/dist/views/Collection/CollectionSettings.vue2.js +101 -108
  114. package/dist/views/Collection/components/EnvironmentForm.vue.js +1 -1
  115. package/dist/views/Collection/components/EnvironmentForm.vue2.js +141 -145
  116. package/dist/views/Collection/components/MarkdownInput.vue.js +1 -1
  117. package/dist/views/Collection/components/MarkdownInput.vue2.js +1 -2
  118. package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +15 -15
  119. package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.js +15 -16
  120. package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +61 -64
  121. package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +9 -10
  122. package/dist/views/Cookies/CookieModal.vue.js +1 -1
  123. package/dist/views/Cookies/Cookies.vue2.js +90 -93
  124. package/dist/views/Environment/Environment.vue2.js +267 -295
  125. package/dist/views/Environment/EnvironmentModal.vue.js +63 -70
  126. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -42
  127. package/dist/views/Request/Request.vue.js +1 -1
  128. package/dist/views/Request/Request.vue2.js +60 -67
  129. package/dist/views/Request/RequestRoot.vue.js +1 -1
  130. package/dist/views/Request/RequestRoot.vue2.js +78 -89
  131. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +37 -44
  132. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +44 -45
  133. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +111 -127
  134. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  135. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +120 -139
  136. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +1 -1
  137. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +97 -97
  138. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  139. package/dist/views/Request/RequestSection/RequestBody.vue2.js +287 -310
  140. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +1 -1
  141. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +86 -94
  142. package/dist/views/Request/RequestSection/RequestParams.vue.js +37 -38
  143. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +36 -38
  144. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  145. package/dist/views/Request/RequestSection/RequestSection.vue2.js +28 -31
  146. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  147. package/dist/views/Request/RequestSection/RequestTable.vue2.js +49 -52
  148. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
  149. package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +16 -16
  150. package/dist/views/Request/RequestSection/helpers/getting-started.js +7 -11
  151. package/dist/views/Request/RequestSection/helpers/update-scheme.js +7 -8
  152. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  153. package/dist/views/Request/RequestSidebar.vue2.js +199 -211
  154. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  155. package/dist/views/Request/RequestSidebarItem.vue2.js +332 -349
  156. package/dist/views/Request/RequestSidebarItemMenu.vue.js +1 -1
  157. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +210 -240
  158. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  159. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +38 -41
  160. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +1 -1
  161. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +58 -64
  162. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -2
  163. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  164. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +1 -1
  165. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +20 -23
  166. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue3.js +1 -1
  167. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  168. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +29 -30
  169. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +38 -41
  170. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +3 -3
  171. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +28 -29
  172. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  173. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +128 -140
  174. package/dist/views/Request/components/WorkspaceDropdown.vue.js +116 -124
  175. package/dist/views/Request/consts/mediaTypes.js +2 -3
  176. package/dist/views/Request/handle-drag.js +24 -28
  177. package/dist/views/Request/hooks/useOpenApiWatcher.js +26 -33
  178. package/dist/views/Request/libs/auth.js +37 -43
  179. package/dist/views/Request/libs/oauth2.js +30 -32
  180. package/dist/views/Request/libs/watch-mode.js +100 -103
  181. package/dist/views/Settings/SettingsGeneral.vue.js +206 -236
  182. package/package.json +22 -22
  183. package/dist/components/AddressBar/AddressBar.vue3.js +0 -4
  184. package/dist/components/AddressBar/AddressBarHistory.vue3.js +0 -4
  185. package/dist/components/CodeInput/CodeInput.vue3.js +0 -4
  186. package/dist/components/CodeInput/CodeInput.vue4.js +0 -4
  187. package/dist/components/CommandPalette/CommandPaletteImportCurl.vue3.js +0 -4
  188. package/dist/components/CommandPalette/TheCommandPalette.vue3.js +0 -4
  189. package/dist/components/DataTable/DataTableInput.vue3.js +0 -4
  190. package/dist/components/EmptyState.vue3.js +0 -4
  191. package/dist/components/Form/LabelInput.vue3.js +0 -4
  192. package/dist/components/HttpMethod/HttpMethod.vue3.js +0 -4
  193. package/dist/components/ImportCollection/ImportCollectionModal.vue2.js +0 -4
  194. package/dist/components/OpenApiClientButton.vue3.js +0 -4
  195. package/dist/components/ScalarAsciiArt.vue3.js +0 -4
  196. package/dist/components/SectionFilter.vue3.js +0 -4
  197. package/dist/components/Server/ServerDropdownItem.vue3.js +0 -4
  198. package/dist/components/SideNav/DownloadAppButton.vue3.js +0 -4
  199. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue3.js +0 -4
  200. package/dist/components/Sidebar/Sidebar.vue3.js +0 -4
  201. package/dist/components/Sidebar/SidebarListElement.vue3.js +0 -4
  202. package/dist/components/Sidebar/SidebarListElement.vue4.js +0 -4
  203. package/dist/components/TopNav/TopNavItem.vue3.js +0 -4
  204. package/dist/layouts/App/ApiClientApp.vue2.js +0 -4
  205. package/dist/layouts/Modal/ApiClientModal.vue3.js +0 -4
  206. package/dist/layouts/Web/ApiClientWeb.vue2.js +0 -4
  207. package/dist/style.css.js +0 -4
  208. package/dist/views/Collection/CollectionAuthentication.vue3.js +0 -4
  209. package/dist/views/Collection/CollectionEnvironment.vue3.js +0 -4
  210. package/dist/views/Collection/CollectionInfoForm.vue3.js +0 -4
  211. package/dist/views/Collection/CollectionSettings.vue3.js +0 -4
  212. package/dist/views/Collection/components/EnvironmentForm.vue3.js +0 -4
  213. package/dist/views/Collection/components/MarkdownInput.vue3.js +0 -4
  214. package/dist/views/Cookies/CookieModal.vue3.js +0 -4
  215. package/dist/views/Request/Request.vue3.js +0 -4
  216. package/dist/views/Request/RequestRoot.vue3.js +0 -4
  217. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue3.js +0 -4
  218. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue3.js +0 -4
  219. package/dist/views/Request/RequestSection/RequestBody.vue3.js +0 -4
  220. package/dist/views/Request/RequestSection/RequestCodeExample.vue3.js +0 -4
  221. package/dist/views/Request/RequestSection/RequestSection.vue3.js +0 -4
  222. package/dist/views/Request/RequestSection/RequestTable.vue3.js +0 -4
  223. package/dist/views/Request/RequestSection/RequestTableTooltip.vue3.js +0 -4
  224. package/dist/views/Request/RequestSidebar.vue3.js +0 -4
  225. package/dist/views/Request/RequestSidebarItem.vue3.js +0 -4
  226. package/dist/views/Request/RequestSidebarItem.vue4.js +0 -4
  227. package/dist/views/Request/RequestSidebarItemMenu.vue3.js +0 -4
  228. package/dist/views/Request/RequestSubpageHeader.vue3.js +0 -4
  229. package/dist/views/Request/ResponseSection/ResponseBody.vue3.js +0 -4
  230. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue3.js +0 -4
  231. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue3.js +0 -4
  232. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue2.js +0 -4
  233. package/dist/views/Request/ResponseSection/ResponseEmpty.vue3.js +0 -4
  234. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue3.js +0 -4
  235. package/dist/views/Request/ResponseSection/ResponseSection.vue3.js +0 -4
@@ -1,15 +1,15 @@
1
- import { defineComponent as P, createElementBlock as S, openBlock as d, createElementVNode as r, createVNode as c, withCtx as n, createBlock as m, createCommentVNode as b, unref as e, normalizeClass as f, createTextVNode as a, 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
- import F from "./components/SettingsAppearance.vue.js";
7
- import w from "./components/SettingsSection.vue.js";
8
- import { useWorkspace as O } from "../../store/store.js";
9
- const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto ml-auto w-full max-w-[720px] px-5 py-5" }, q = { class: "flex flex-col gap-8" }, H = { class: "flex flex-col gap-2" }, M = { class: "flex flex-col gap-2" }, X = { class: "grid grid-cols-2 gap-2" }, Y = { class: "flex items-center gap-2" }, J = { class: "flex items-center gap-1" }, K = { class: "grid grid-cols-2 gap-2" }, Q = { class: "flex items-center gap-2" }, Z = { class: "flex items-center gap-1" }, I = { class: "size-7 rounded-xl" }, _ = "https://proxy.scalar.com", ce = /* @__PURE__ */ P({
1
+ import { defineComponent as E, createElementBlock as _, openBlock as c, createElementVNode as r, createVNode as a, withCtx as l, createBlock as u, createCommentVNode as p, unref as e, normalizeClass as i, createTextVNode as n, toDisplayString as w, Fragment as z, renderList as $, normalizeStyle as C } from "vue";
2
+ import { cva as L, ScalarButton as x, cx as m, ScalarIcon as b } from "@scalar/components";
3
+ import { themeLabels as j } from "@scalar/themes";
4
+ import N from "../../components/ImportCollection/IntegrationLogo.vue.js";
5
+ import { useActiveEntities as P } from "../../store/active-entities.js";
6
+ import R from "./components/SettingsAppearance.vue.js";
7
+ import y from "./components/SettingsSection.vue.js";
8
+ import { useWorkspace as V } from "../../store/store.js";
9
+ const W = { class: "bg-b-1 h-full w-full overflow-auto" }, F = { class: "mr-auto ml-auto w-full max-w-[720px] px-5 py-5" }, O = { class: "flex flex-col gap-8" }, D = { class: "flex flex-col gap-2" }, G = { class: "flex flex-col gap-2" }, q = { class: "grid grid-cols-2 gap-2" }, H = { class: "flex items-center gap-2" }, 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 gap-1" }, K = { class: "size-7 rounded-xl" }, g = "https://proxy.scalar.com", ne = /* @__PURE__ */ E({
10
10
  __name: "SettingsGeneral",
11
- setup(ee) {
12
- const { activeWorkspace: o } = W(), { proxyUrl: k, workspaceMutators: j } = O(), L = [
11
+ setup(Q) {
12
+ const { activeWorkspace: o } = P(), { proxyUrl: f, workspaceMutators: U } = V(), T = [
13
13
  "default",
14
14
  "alternate",
15
15
  // 'moon',
@@ -21,7 +21,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
21
21
  // 'mars',
22
22
  // 'deepSpace',
23
23
  // 'laserwave',
24
- ], N = ["elysiajs", "fastify"], C = (x) => ({
24
+ ], B = ["elysiajs", "fastify"], v = (d) => ({
25
25
  default: { light: "#fff", dark: "#0f0f0f", accent: "#0099ff" },
26
26
  alternate: { light: "#f9f9f9", dark: "#131313", accent: "#e7e7e7" },
27
27
  moon: { light: "#ccc9b3", dark: "#313332", accent: "#645b0f" },
@@ -34,10 +34,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
34
34
  deepSpace: { light: "#f4f4f5", dark: "#09090b", accent: "#8ab4f8" },
35
35
  laserwave: { light: "#f4f2f7", dark: "#27212e", accent: "#ed78c2" },
36
36
  none: { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }
37
- })[x] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, T = (x) => {
38
- var t;
39
- return j.edit((t = o.value) == null ? void 0 : t.uid, "themeId", x);
40
- }, g = R({
37
+ })[d] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, S = (d) => U.edit(o.value?.uid, "themeId", d), k = L({
41
38
  base: "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",
42
39
  variants: {
43
40
  active: {
@@ -45,266 +42,239 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
45
42
  false: "bg-b-1 hover:bg-b-2"
46
43
  }
47
44
  }
48
- }), U = (x) => {
49
- var t;
50
- return j.edit((t = o.value) == null ? void 0 : t.uid, "proxyUrl", x);
51
- };
52
- return (x, t) => (d(), S("div", D, [
53
- r("div", G, [
54
- r("div", q, [
45
+ }), h = (d) => U.edit(o.value?.uid, "proxyUrl", d);
46
+ return (d, t) => (c(), _("div", W, [
47
+ r("div", F, [
48
+ r("div", O, [
55
49
  t[13] || (t[13] = r("div", null, [
56
50
  r("h2", { class: "mt-10 text-xl font-bold" }, "Settings")
57
51
  ], -1)),
58
- c(w, null, {
59
- title: n(() => t[3] || (t[3] = [
60
- a(" CORS Proxy ")
52
+ a(y, null, {
53
+ title: l(() => t[3] || (t[3] = [
54
+ n(" CORS Proxy ")
61
55
  ])),
62
- description: n(() => t[4] || (t[4] = [
63
- a(" Browsers block cross-origin requests for security. We provide a public proxy to "),
56
+ description: l(() => t[4] || (t[4] = [
57
+ n(" Browsers block cross-origin requests for security. We provide a public proxy to "),
64
58
  r("a", {
65
59
  class: "hover:text-c-1 underline-offset-2",
66
60
  href: "https://en.wikipedia.org/wiki/Cross-origin_resource_sharing",
67
61
  target: "_blank"
68
62
  }, " bypass CORS issues ", -1),
69
- a(" . Check the "),
63
+ n(" . Check the "),
70
64
  r("a", {
71
65
  class: "hover:text-c-1 underline-offset-2",
72
66
  href: "https://github.com/scalar/scalar/tree/main/examples/proxy-server",
73
67
  target: "_blank"
74
68
  }, " source code on GitHub ", -1),
75
- a(" . ")
69
+ n(" . ")
76
70
  ])),
77
- default: n(() => {
78
- var s, u, i;
79
- return [
80
- r("div", H, [
81
- c(e(y), {
82
- class: f(
83
- e(v)(
84
- e(g)({
85
- active: ((s = e(o)) == null ? void 0 : s.proxyUrl) === _
86
- })
87
- )
88
- ),
89
- onClick: t[0] || (t[0] = (l) => U(_))
90
- }, {
91
- default: n(() => {
92
- var l, p;
93
- return [
94
- r("div", {
95
- class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
96
- "bg-c-accent text-b-1 border-transparent": ((l = e(o)) == null ? void 0 : l.proxyUrl) === _
97
- }])
98
- }, [
99
- ((p = e(o)) == null ? void 0 : p.proxyUrl) === _ ? (d(), m(e(h), {
100
- key: 0,
101
- icon: "Checkmark",
102
- size: "xs",
103
- thickness: "3.5"
104
- })) : b("", !0)
105
- ], 2),
106
- t[5] || (t[5] = a(" Use proxy.scalar.com (default) "))
107
- ];
108
- }),
109
- _: 1,
110
- __: [5]
111
- }, 8, ["class"]),
112
- e(k) && e(k) !== _ ? (d(), m(e(y), {
113
- key: 0,
114
- class: f(
115
- e(v)(
116
- e(g)({
117
- active: ((u = e(o)) == null ? void 0 : u.proxyUrl) === e(k)
71
+ default: l(() => [
72
+ r("div", D, [
73
+ a(e(x), {
74
+ class: i(
75
+ e(m)(
76
+ e(k)({
77
+ active: e(o)?.proxyUrl === g
78
+ })
79
+ )
80
+ ),
81
+ onClick: t[0] || (t[0] = (s) => h(g))
82
+ }, {
83
+ default: l(() => [
84
+ r("div", {
85
+ class: i(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
86
+ "bg-c-accent text-b-1 border-transparent": e(o)?.proxyUrl === g
87
+ }])
88
+ }, [
89
+ e(o)?.proxyUrl === g ? (c(), u(e(b), {
90
+ key: 0,
91
+ icon: "Checkmark",
92
+ size: "xs",
93
+ thickness: "3.5"
94
+ })) : p("", !0)
95
+ ], 2),
96
+ t[5] || (t[5] = n(" Use proxy.scalar.com (default) "))
97
+ ]),
98
+ _: 1,
99
+ __: [5]
100
+ }, 8, ["class"]),
101
+ e(f) && e(f) !== g ? (c(), u(e(x), {
102
+ key: 0,
103
+ class: i(
104
+ e(m)(
105
+ e(k)({
106
+ active: e(o)?.proxyUrl === e(f)
107
+ })
108
+ )
109
+ ),
110
+ onClick: t[1] || (t[1] = (s) => h(e(f)))
111
+ }, {
112
+ default: l(() => [
113
+ r("div", {
114
+ class: i(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
115
+ "bg-c-accent text-b-1 border-transparent": e(o)?.proxyUrl === e(f)
116
+ }])
117
+ }, [
118
+ e(o)?.proxyUrl === e(f) ? (c(), u(e(b), {
119
+ key: 0,
120
+ icon: "Checkmark",
121
+ size: "xs",
122
+ thickness: "3.5"
123
+ })) : p("", !0)
124
+ ], 2),
125
+ n(" Use custom proxy (" + w(e(f)) + ") ", 1)
126
+ ]),
127
+ _: 1
128
+ }, 8, ["class"])) : p("", !0),
129
+ a(e(x), {
130
+ class: i(e(m)(e(k)({ active: !e(o)?.proxyUrl }))),
131
+ onClick: t[2] || (t[2] = (s) => h(void 0))
132
+ }, {
133
+ default: l(() => [
134
+ r("div", {
135
+ class: i([
136
+ "flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",
137
+ !e(o)?.proxyUrl && "bg-c-accent text-b-1 border-transparent"
138
+ ])
139
+ }, [
140
+ e(o)?.proxyUrl ? p("", !0) : (c(), u(e(b), {
141
+ key: 0,
142
+ icon: "Checkmark",
143
+ size: "xs",
144
+ thickness: "3.5"
145
+ }))
146
+ ], 2),
147
+ t[6] || (t[6] = n(" Skip the proxy "))
148
+ ]),
149
+ _: 1,
150
+ __: [6]
151
+ }, 8, ["class"])
152
+ ])
153
+ ]),
154
+ _: 1
155
+ }),
156
+ a(y, null, {
157
+ title: l(() => t[7] || (t[7] = [
158
+ n(" Themes ")
159
+ ])),
160
+ description: l(() => t[8] || (t[8] = [
161
+ n(" We've got a whole rainbow of themes for you to play with: ")
162
+ ])),
163
+ default: l(() => [
164
+ r("div", G, [
165
+ r("div", q, [
166
+ (c(), _(z, null, $(T, (s) => a(e(x), {
167
+ key: s,
168
+ class: i(
169
+ e(m)(
170
+ e(k)({
171
+ active: e(o)?.themeId === s
118
172
  })
119
173
  )
120
174
  ),
121
- onClick: t[1] || (t[1] = (l) => U(e(k)))
175
+ onClick: (A) => S(s)
122
176
  }, {
123
- default: n(() => {
124
- var l, p;
125
- return [
177
+ default: l(() => [
178
+ r("div", H, [
126
179
  r("div", {
127
- class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
128
- "bg-c-accent text-b-1 border-transparent": ((l = e(o)) == null ? void 0 : l.proxyUrl) === e(k)
180
+ class: i(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
181
+ "bg-c-accent text-b-1 border-transparent": e(o)?.themeId === s
129
182
  }])
130
183
  }, [
131
- ((p = e(o)) == null ? void 0 : p.proxyUrl) === e(k) ? (d(), m(e(h), {
184
+ e(o)?.themeId === s ? (c(), u(e(b), {
132
185
  key: 0,
133
186
  icon: "Checkmark",
134
187
  size: "xs",
135
188
  thickness: "3.5"
136
- })) : b("", !0)
189
+ })) : p("", !0)
137
190
  ], 2),
138
- a(" Use custom proxy (" + z(e(k)) + ") ", 1)
139
- ];
140
- }),
141
- _: 1
142
- }, 8, ["class"])) : b("", !0),
143
- c(e(y), {
144
- class: f(e(v)(e(g)({ active: !((i = e(o)) != null && i.proxyUrl) }))),
145
- onClick: t[2] || (t[2] = (l) => U(void 0))
146
- }, {
147
- default: n(() => {
148
- var l, p;
149
- return [
150
- r("div", {
151
- class: f([
152
- "flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",
153
- !((l = e(o)) != null && l.proxyUrl) && "bg-c-accent text-b-1 border-transparent"
154
- ])
155
- }, [
156
- (p = e(o)) != null && p.proxyUrl ? b("", !0) : (d(), m(e(h), {
157
- key: 0,
158
- icon: "Checkmark",
159
- size: "xs",
160
- thickness: "3.5"
161
- }))
162
- ], 2),
163
- t[6] || (t[6] = a(" Skip the proxy "))
164
- ];
165
- }),
166
- _: 1,
167
- __: [6]
168
- }, 8, ["class"])
169
- ])
170
- ];
171
- }),
172
- _: 1
173
- }),
174
- c(w, null, {
175
- title: n(() => t[7] || (t[7] = [
176
- a(" Themes ")
177
- ])),
178
- description: n(() => t[8] || (t[8] = [
179
- a(" We've got a whole rainbow of themes for you to play with: ")
180
- ])),
181
- default: n(() => [
182
- r("div", M, [
183
- r("div", X, [
184
- (d(), S(B, null, A(L, (s) => {
185
- var u;
186
- return c(e(y), {
187
- key: s,
188
- class: f(
189
- e(v)(
190
- e(g)({
191
- active: ((u = e(o)) == null ? void 0 : u.themeId) === s
191
+ n(" " + w(e(j)[s]), 1)
192
+ ]),
193
+ r("div", M, [
194
+ r("span", {
195
+ class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
196
+ style: C({
197
+ backgroundColor: v(s).light
198
+ })
199
+ }, null, 4),
200
+ r("span", {
201
+ class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
202
+ style: C({
203
+ backgroundColor: v(s).dark
204
+ })
205
+ }, null, 4),
206
+ r("span", {
207
+ class: "border-c-3 inline-block h-5 w-5 rounded-full",
208
+ style: C({
209
+ backgroundColor: v(s).accent
192
210
  })
193
- )
194
- ),
195
- onClick: (i) => T(s)
196
- }, {
197
- default: n(() => {
198
- var i, l;
199
- return [
200
- r("div", Y, [
201
- r("div", {
202
- class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
203
- "bg-c-accent text-b-1 border-transparent": ((i = e(o)) == null ? void 0 : i.themeId) === s
204
- }])
205
- }, [
206
- ((l = e(o)) == null ? void 0 : l.themeId) === s ? (d(), m(e(h), {
207
- key: 0,
208
- icon: "Checkmark",
209
- size: "xs",
210
- thickness: "3.5"
211
- })) : b("", !0)
212
- ], 2),
213
- a(" " + z(e(E)[s]), 1)
214
- ]),
215
- r("div", J, [
216
- r("span", {
217
- class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
218
- style: $({
219
- backgroundColor: C(s).light
220
- })
221
- }, null, 4),
222
- r("span", {
223
- class: "border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",
224
- style: $({
225
- backgroundColor: C(s).dark
226
- })
227
- }, null, 4),
228
- r("span", {
229
- class: "border-c-3 inline-block h-5 w-5 rounded-full",
230
- style: $({
231
- backgroundColor: C(s).accent
232
- })
233
- }, null, 4)
234
- ])
235
- ];
236
- }),
237
- _: 2
238
- }, 1032, ["class", "onClick"]);
239
- }), 64))
211
+ }, null, 4)
212
+ ])
213
+ ]),
214
+ _: 2
215
+ }, 1032, ["class", "onClick"])), 64))
240
216
  ])
241
217
  ])
242
218
  ]),
243
219
  _: 1
244
220
  }),
245
- c(w, null, {
246
- title: n(() => t[9] || (t[9] = [
247
- a(" Framework Themes ")
221
+ a(y, null, {
222
+ title: l(() => t[9] || (t[9] = [
223
+ n(" Framework Themes ")
248
224
  ])),
249
- description: n(() => t[10] || (t[10] = [
250
- a(" Are you a real fan? Show your support by using your favorite framework's theme! ")
225
+ description: l(() => t[10] || (t[10] = [
226
+ n(" Are you a real fan? Show your support by using your favorite framework's theme! ")
251
227
  ])),
252
- default: n(() => [
253
- r("div", K, [
254
- (d(), S(B, null, A(N, (s) => {
255
- var u;
256
- return c(e(y), {
257
- key: s,
258
- class: f(
259
- e(v)(
260
- e(g)({
261
- active: ((u = e(o)) == null ? void 0 : u.themeId) === s
262
- })
263
- )
264
- ),
265
- onClick: (i) => T(s)
266
- }, {
267
- default: n(() => {
268
- var i, l;
269
- return [
270
- r("div", Q, [
271
- r("div", {
272
- class: f(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
273
- "bg-c-accent text-b-1 border-transparent": ((i = e(o)) == null ? void 0 : i.themeId) === s
274
- }])
275
- }, [
276
- ((l = e(o)) == null ? void 0 : l.themeId) === s ? (d(), m(e(h), {
277
- key: 0,
278
- icon: "Checkmark",
279
- size: "xs",
280
- thickness: "3.5"
281
- })) : b("", !0)
282
- ], 2),
283
- a(" " + z(e(E)[s]), 1)
284
- ]),
285
- r("div", Z, [
286
- r("div", I, [
287
- c(V, { integration: s }, null, 8, ["integration"])
288
- ])
289
- ])
290
- ];
291
- }),
292
- _: 2
293
- }, 1032, ["class", "onClick"]);
294
- }), 64))
228
+ default: l(() => [
229
+ r("div", X, [
230
+ (c(), _(z, null, $(B, (s) => a(e(x), {
231
+ key: s,
232
+ class: i(
233
+ e(m)(
234
+ e(k)({
235
+ active: e(o)?.themeId === s
236
+ })
237
+ )
238
+ ),
239
+ onClick: (A) => S(s)
240
+ }, {
241
+ default: l(() => [
242
+ r("div", Y, [
243
+ r("div", {
244
+ class: i(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1", {
245
+ "bg-c-accent text-b-1 border-transparent": e(o)?.themeId === s
246
+ }])
247
+ }, [
248
+ e(o)?.themeId === s ? (c(), u(e(b), {
249
+ key: 0,
250
+ icon: "Checkmark",
251
+ size: "xs",
252
+ thickness: "3.5"
253
+ })) : p("", !0)
254
+ ], 2),
255
+ n(" " + w(e(j)[s]), 1)
256
+ ]),
257
+ r("div", J, [
258
+ r("div", K, [
259
+ a(N, { integration: s }, null, 8, ["integration"])
260
+ ])
261
+ ])
262
+ ]),
263
+ _: 2
264
+ }, 1032, ["class", "onClick"])), 64))
295
265
  ])
296
266
  ]),
297
267
  _: 1
298
268
  }),
299
- c(w, null, {
300
- title: n(() => t[11] || (t[11] = [
301
- a(" Appearance ")
269
+ a(y, null, {
270
+ title: l(() => t[11] || (t[11] = [
271
+ n(" Appearance ")
302
272
  ])),
303
- description: n(() => t[12] || (t[12] = [
304
- a(" Choose between light, dark, or system-based appearance for your workspace. ")
273
+ description: l(() => t[12] || (t[12] = [
274
+ n(" Choose between light, dark, or system-based appearance for your workspace. ")
305
275
  ])),
306
- default: n(() => [
307
- c(F)
276
+ default: l(() => [
277
+ a(R)
308
278
  ]),
309
279
  _: 1
310
280
  })
@@ -314,5 +284,5 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "mr-auto
314
284
  }
315
285
  });
316
286
  export {
317
- ce as default
287
+ ne as default
318
288
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.5.32",
21
+ "version": "2.5.34",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
@@ -188,10 +188,10 @@
188
188
  "module": "dist/index.js",
189
189
  "dependencies": {
190
190
  "@headlessui/tailwindcss": "^0.2.2",
191
- "@headlessui/vue": "^1.7.23",
191
+ "@headlessui/vue": "1.7.23",
192
192
  "@types/har-format": "^1.2.15",
193
- "@vueuse/core": "^11.2.0",
194
- "@vueuse/integrations": "^11.2.0",
193
+ "@vueuse/core": "13.9.0",
194
+ "@vueuse/integrations": "13.9.0",
195
195
  "focus-trap": "^7",
196
196
  "fuse.js": "^7.1.0",
197
197
  "js-base64": "^3.7.8",
@@ -208,36 +208,36 @@
208
208
  "zod": "3.24.1",
209
209
  "@scalar/analytics-client": "1.0.0",
210
210
  "@scalar/draggable": "0.2.0",
211
- "@scalar/helpers": "0.0.10",
212
- "@scalar/components": "0.14.33",
213
- "@scalar/oas-utils": "0.4.28",
214
- "@scalar/import": "0.4.23",
211
+ "@scalar/helpers": "0.0.11",
215
212
  "@scalar/icons": "0.4.7",
216
- "@scalar/openapi-parser": "0.20.5",
217
- "@scalar/object-utils": "1.2.6",
213
+ "@scalar/import": "0.4.25",
214
+ "@scalar/components": "0.14.35",
215
+ "@scalar/oas-utils": "0.4.30",
216
+ "@scalar/object-utils": "1.2.7",
218
217
  "@scalar/openapi-types": "0.3.7",
219
- "@scalar/postman-to-openapi": "0.3.31",
220
- "@scalar/themes": "0.13.16",
221
- "@scalar/snippetz": "0.4.9",
222
- "@scalar/types": "0.2.15",
223
- "@scalar/use-codemirror": "0.12.34",
224
- "@scalar/use-hooks": "0.2.4",
218
+ "@scalar/openapi-parser": "0.21.0",
219
+ "@scalar/postman-to-openapi": "0.3.33",
220
+ "@scalar/snippetz": "0.4.10",
221
+ "@scalar/types": "0.2.16",
222
+ "@scalar/use-codemirror": "0.12.36",
223
+ "@scalar/themes": "0.13.18",
225
224
  "@scalar/use-toasts": "0.8.0",
226
- "@scalar/workspace-store": "0.15.5"
225
+ "@scalar/use-hooks": "0.2.5",
226
+ "@scalar/workspace-store": "0.15.7"
227
227
  },
228
228
  "devDependencies": {
229
229
  "@tailwindcss/vite": "^4.1.7",
230
230
  "@types/shell-quote": "^1.7.5",
231
231
  "@types/whatwg-mimetype": "^3.0.2",
232
- "@vitejs/plugin-vue": "^5.2.4",
232
+ "@vitejs/plugin-vue": "6.0.1",
233
233
  "@vue/test-utils": "^2.4.1",
234
234
  "jsdom": "^22.1.0",
235
235
  "tailwindcss": "^4.1.7",
236
- "vite": "6.1.6",
236
+ "vite": "7.1.5",
237
237
  "vite-svg-loader": "^5.1.0",
238
- "vitest": "^3.2.4",
239
- "@scalar/build-tooling": "0.2.7",
240
- "@scalar/galaxy": "0.5.8"
238
+ "vitest": "3.2.4",
239
+ "@scalar/galaxy": "0.5.8",
240
+ "@scalar/build-tooling": "0.2.7"
241
241
  },
242
242
  "scripts": {
243
243
  "build": "scalar-build-vite",
@@ -1,4 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
@@ -1,4 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };