@scalar/api-client 2.1.32 → 2.1.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 (78) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  3. package/dist/components/ScalarHotkey.vue.d.ts +5 -6
  4. package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
  5. package/dist/components/ScalarHotkey.vue.js +9 -18
  6. package/dist/components/Sidebar/SidebarButton.vue.d.ts +4 -0
  7. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  8. package/dist/components/Sidebar/SidebarButton.vue.js +19 -17
  9. package/dist/index.d.ts +1 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +8 -8
  12. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  13. package/dist/layouts/App/ApiClientApp.vue.js +35 -29
  14. package/dist/layouts/App/create-api-client-app.d.ts +257 -45
  15. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  16. package/dist/layouts/App/create-api-client-app.js +10 -10
  17. package/dist/layouts/App/hotkeys.js +1 -1
  18. package/dist/layouts/Modal/create-api-client-modal.d.ts +514 -90
  19. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  20. package/dist/layouts/Modal/create-api-client-modal.js +24 -22
  21. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  22. package/dist/layouts/Web/ApiClientWeb.vue.js +33 -27
  23. package/dist/layouts/Web/create-api-client-web.d.ts +258 -46
  24. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  25. package/dist/layouts/Web/create-api-client-web.js +9 -9
  26. package/dist/libs/create-client.d.ts +280 -50
  27. package/dist/libs/create-client.d.ts.map +1 -1
  28. package/dist/libs/create-client.js +25 -24
  29. package/dist/libs/hot-keys.d.ts +1 -1
  30. package/dist/libs/local-storage.d.ts +2 -2
  31. package/dist/libs/local-storage.d.ts.map +1 -1
  32. package/dist/libs/send-request.d.ts +2 -1
  33. package/dist/libs/send-request.d.ts.map +1 -1
  34. package/dist/libs/send-request.js +98 -97
  35. package/dist/router.d.ts +5 -5
  36. package/dist/router.d.ts.map +1 -1
  37. package/dist/router.js +32 -32
  38. package/dist/store/collections.d.ts +14 -4
  39. package/dist/store/collections.d.ts.map +1 -1
  40. package/dist/store/events.d.ts +1 -1
  41. package/dist/store/import-spec.d.ts +16 -31
  42. package/dist/store/import-spec.d.ts.map +1 -1
  43. package/dist/store/import-spec.js +43 -56
  44. package/dist/store/requests.d.ts +14 -14
  45. package/dist/store/store.d.ts +514 -90
  46. package/dist/store/store.d.ts.map +1 -1
  47. package/dist/store/store.js +43 -43
  48. package/dist/store/workspace.d.ts +10 -10
  49. package/dist/store/workspace.d.ts.map +1 -1
  50. package/dist/style.css +1 -1
  51. package/dist/views/Cookies/Cookies.vue.d.ts +5 -1
  52. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  53. package/dist/views/Cookies/Cookies.vue2.js +64 -55
  54. package/dist/views/Environment/Environment.vue.d.ts +5 -1
  55. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  56. package/dist/views/Environment/Environment.vue2.js +75 -66
  57. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  58. package/dist/views/Request/Request.vue.js +1 -1
  59. package/dist/views/Request/Request.vue2.js +98 -91
  60. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +2 -0
  61. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  62. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  63. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +104 -111
  64. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +5 -1
  65. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
  66. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +37 -34
  67. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts +5 -1
  68. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  69. package/dist/views/Request/RequestSection/RequestSection.vue.js +43 -37
  70. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  71. package/dist/views/Request/RequestSidebar.vue.js +4 -4
  72. package/dist/views/Request/RequestSidebar.vue2.js +43 -42
  73. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  74. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
  75. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +27 -26
  76. package/dist/views/Settings/SettingsGeneral.vue.js +3 -3
  77. package/dist/views/Settings/SettingsGeneralMode.vue.js +3 -3
  78. package/package.json +9 -9
@@ -45,7 +45,7 @@ const V = { class: "bg-b-1 w-full h-full overflow-auto" }, $ = { class: "flex fl
45
45
  r[5] || (r[5] = j('<h2 class="font-bold text-xl mb-5 mt-10">Settings</h2><h3 class="font-bold mb-1">CORS Proxy</h3><p class="text-c-2 mb-2 leading-[21px]"> Browsers block cross-origin requests for security. We provide a public proxy to <a class="hover:text-c-1 underline-offset-2" href="https://en.wikipedia.org/wiki/Cross-origin_resource_sharing" target="_blank">bypass CORS issues</a>. Check the <a class="hover:text-c-1 underline-offset-2" href="https://github.com/scalar/scalar/tree/main/examples/proxy-server" target="_blank">source code on GitHub</a>. </p>', 3)),
46
46
  t("div", T, [
47
47
  d(e(m), {
48
- class: u(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-2 border-1/2", { "bg-b-1 text-c-1": e(l) }]),
48
+ class: u(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-1 border-1/2", { "bg-b-2 text-c-1": e(l) }]),
49
49
  variant: e(l) ? "primary" : "secondary",
50
50
  onClick: r[0] || (r[0] = (s) => e(x)("https://proxy.scalar.com"))
51
51
  }, {
@@ -82,7 +82,7 @@ const V = { class: "bg-b-1 w-full h-full overflow-auto" }, $ = { class: "flex fl
82
82
  _: 1
83
83
  })) : c("", !0),
84
84
  d(e(m), {
85
- class: u(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-2 border-1/2", { "bg-b-1 text-c-1": !e(l) }]),
85
+ class: u(["w-full shadow-none text-c-1 justify-start pl-2 gap-2 bg-b-1 border-1/2", { "bg-b-2 text-c-1": !e(l) }]),
86
86
  variant: e(l) ? "secondary" : "primary",
87
87
  onClick: r[2] || (r[2] = (s) => e(x)(""))
88
88
  }, {
@@ -110,7 +110,7 @@ const V = { class: "bg-b-1 w-full h-full overflow-auto" }, $ = { class: "flex fl
110
110
  key: s,
111
111
  class: u(["px-2", [
112
112
  "flex items-center justify-between gap-2 text-c-1 border-1/2",
113
- e(i).themeId === s ? "bg-b-1" : "bg-b-2"
113
+ e(i).themeId === s ? "bg-b-2" : "bg-b-1"
114
114
  ]]),
115
115
  variant: "ghost",
116
116
  onClick: (H) => C(s)
@@ -20,7 +20,7 @@ const C = { class: "flex flex-col gap-2" }, S = { class: "flex items-center just
20
20
  a(r(f), {
21
21
  class: n([
22
22
  "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border-1/2",
23
- e.value === "System Preference" ? "bg-b-1 text-c-1" : "bg-b-2"
23
+ e.value === "System Preference" ? "bg-b-2 text-c-1" : "bg-b-1"
24
24
  ]),
25
25
  onClick: p
26
26
  }, {
@@ -40,7 +40,7 @@ const C = { class: "flex flex-col gap-2" }, S = { class: "flex items-center just
40
40
  a(r(f), {
41
41
  class: n([
42
42
  "w-full shadow-none text-c-1 justify-start pl-2 gap-2 border-1/2",
43
- e.value === "Light" ? "bg-b-1 text-c-1" : "bg-b-2"
43
+ e.value === "Light" ? "bg-b-2 text-c-1" : "bg-b-1"
44
44
  ]),
45
45
  onClick: b
46
46
  }, {
@@ -60,7 +60,7 @@ const C = { class: "flex flex-col gap-2" }, S = { class: "flex items-center just
60
60
  a(r(f), {
61
61
  class: n([
62
62
  "w-full shadow-none text-c-1 justify-start pl-2 gap-2 mb-8 border-1/2",
63
- e.value === "Dark" ? "bg-b-1 text-c-1" : "bg-b-2"
63
+ e.value === "Dark" ? "bg-b-2 text-c-1" : "bg-b-1"
64
64
  ]),
65
65
  onClick: x
66
66
  }, {
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.1.32",
21
+ "version": "2.1.34",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -153,16 +153,16 @@
153
153
  "whatwg-mimetype": "^4.0.0",
154
154
  "yaml": "^2.4.5",
155
155
  "zod": "^3.23.8",
156
+ "@scalar/components": "0.12.60",
156
157
  "@scalar/icons": "0.1.1",
157
158
  "@scalar/draggable": "0.1.6",
158
- "@scalar/components": "0.12.58",
159
- "@scalar/openapi-parser": "0.8.7",
160
- "@scalar/oas-utils": "0.2.60",
159
+ "@scalar/openapi-parser": "0.8.8",
161
160
  "@scalar/object-utils": "1.1.10",
162
161
  "@scalar/openapi-types": "0.1.4",
162
+ "@scalar/themes": "0.9.42",
163
+ "@scalar/oas-utils": "0.2.61",
163
164
  "@scalar/types": "0.0.17",
164
- "@scalar/themes": "0.9.41",
165
- "@scalar/use-codemirror": "0.11.25",
165
+ "@scalar/use-codemirror": "0.11.27",
166
166
  "@scalar/use-toasts": "0.7.7",
167
167
  "@scalar/use-tooltip": "1.0.3"
168
168
  },
@@ -178,11 +178,11 @@
178
178
  "tailwindcss": "^3.4.4",
179
179
  "tailwindcss-color-mix": "^0.0.8",
180
180
  "type-fest": "^4.20.0",
181
- "vite": "^5.2.10",
181
+ "vite": "^5.4.9",
182
182
  "vite-svg-loader": "^5.1.0",
183
183
  "vitest": "^1.6.0",
184
- "@scalar/galaxy": "0.2.12",
185
- "@scalar/build-tooling": "0.1.11"
184
+ "@scalar/build-tooling": "0.1.11",
185
+ "@scalar/galaxy": "0.2.13"
186
186
  },
187
187
  "scripts": {
188
188
  "build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",