@scalar/api-client 2.3.19 → 2.3.21

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 (52) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  3. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  4. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +138 -125
  5. package/dist/hooks/useClientConfig.d.ts +3 -3
  6. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  7. package/dist/layouts/App/create-api-client-app.d.ts +10 -10
  8. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  9. package/dist/layouts/Modal/create-api-client-modal.d.ts +20 -20
  10. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  11. package/dist/layouts/Web/create-api-client-web.d.ts +10 -10
  12. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  13. package/dist/libs/create-client.d.ts +10 -10
  14. package/dist/libs/create-client.d.ts.map +1 -1
  15. package/dist/store/active-entities.d.ts +1 -1
  16. package/dist/store/active-entities.d.ts.map +1 -1
  17. package/dist/store/store.d.ts +10 -10
  18. package/dist/store/store.d.ts.map +1 -1
  19. package/dist/store/workspace.d.ts +10 -10
  20. package/dist/store/workspace.d.ts.map +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
  23. package/dist/views/Collection/CollectionAuthentication.vue.js +2 -2
  24. package/dist/views/Collection/CollectionAuthentication.vue2.js +22 -19
  25. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
  26. package/dist/views/Collection/CollectionSettings.vue.js +1 -1
  27. package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
  28. package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
  29. package/dist/views/Collection/components/MarkdownInput.vue.js +2 -2
  30. package/dist/views/Collection/components/MarkdownInput.vue2.js +11 -11
  31. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  32. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  33. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +29 -30
  34. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  35. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +3 -3
  36. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +33 -32
  37. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  38. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  39. package/dist/views/Request/RequestSection/RequestBody.vue2.js +129 -126
  40. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  41. package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
  42. package/dist/views/Request/RequestSidebarItem.vue2.js +235 -241
  43. package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -1
  44. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +12 -12
  45. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  46. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
  47. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  48. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
  49. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +9 -9
  50. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  51. package/dist/views/Settings/SettingsGeneral.vue.js +2 -0
  52. package/package.json +12 -12
@@ -1 +1 @@
1
- {"version":3,"file":"RequestHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/RequestHeaders.vue"],"names":[],"mappings":"AAgFA,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAA;AAEhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAC;;AAiLF,wBAOG"}
1
+ {"version":3,"file":"RequestHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/RequestHeaders.vue"],"names":[],"mappings":"AAgFA,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAA;AAEhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAC;;AAgLF,wBAOG"}
@@ -1,14 +1,14 @@
1
- import { defineComponent as y, openBlock as r, createBlock as f, withCtx as e, createTextVNode as n, createElementBlock as l, createVNode as a, unref as u, Fragment as i, renderList as b, toDisplayString as c } from "vue";
2
- import g from "../../../components/DataTable/DataTable.vue.js";
1
+ import { defineComponent as y, openBlock as r, createBlock as f, withCtx as e, createTextVNode as n, createElementBlock as l, createVNode as a, unref as d, Fragment as i, renderList as g, toDisplayString as c } from "vue";
2
+ import k from "../../../components/DataTable/DataTable.vue.js";
3
3
  import p from "../../../components/DataTable/DataTableRow.vue.js";
4
4
  import _ from "../../../components/DataTable/DataTableText.vue.js";
5
- import k from "../../../components/HelpfulLink.vue.js";
6
- import w from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
5
+ import w from "../../../components/HelpfulLink.vue.js";
6
+ import b from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
7
  import { httpHeaders as h } from "../../../data/httpHeaders.js";
8
8
  import x from "../../../components/DataTable/DataTableHeader.vue.js";
9
9
  const H = {
10
10
  key: 0,
11
- class: "max-h-[calc(100%-32px)] overflow-y-auto border-t"
11
+ class: "max-h-[calc(100%-32px)] overflow-y-auto"
12
12
  }, C = {
13
13
  key: 1,
14
14
  class: "text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-sm"
@@ -21,7 +21,7 @@ const H = {
21
21
  const m = (s) => h.find(
22
22
  (t) => t.name.toLowerCase() === s.toLowerCase()
23
23
  );
24
- return (s, t) => (r(), f(w, {
24
+ return (s, t) => (r(), f(b, {
25
25
  class: "overflow-auto",
26
26
  defaultOpen: !1,
27
27
  itemCount: s.headers.length
@@ -31,20 +31,20 @@ const H = {
31
31
  ])),
32
32
  default: e(() => [
33
33
  s.headers.length ? (r(), l("div", H, [
34
- a(g, {
34
+ a(k, {
35
35
  columns: ["minmax(auto, min-content)", "minmax(50%, 1fr)"],
36
36
  scroll: ""
37
37
  }, {
38
38
  default: e(() => [
39
39
  a(p, { class: "sr-only !block" }, {
40
40
  default: e(() => [
41
- a(u(x), null, {
41
+ a(d(x), null, {
42
42
  default: e(() => t[1] || (t[1] = [
43
43
  n("Header Key")
44
44
  ])),
45
45
  _: 1
46
46
  }),
47
- a(u(x), null, {
47
+ a(d(x), null, {
48
48
  default: e(() => t[2] || (t[2] = [
49
49
  n("Header Value")
50
50
  ])),
@@ -53,16 +53,16 @@ const H = {
53
53
  ]),
54
54
  _: 1
55
55
  }),
56
- (r(!0), l(i, null, b(s.headers, (o) => (r(), f(p, {
56
+ (r(!0), l(i, null, g(s.headers, (o) => (r(), f(p, {
57
57
  key: o.name,
58
58
  class: "group/row text-c-1"
59
59
  }, {
60
60
  default: e(() => [
61
61
  a(_, { class: "z-1 bg-b-1 sticky left-0 max-w-48 group-first/row:border-t-0" }, {
62
62
  default: e(() => {
63
- var d;
63
+ var u;
64
64
  return [
65
- typeof ((d = m(o.name)) == null ? void 0 : d.url) == "string" ? (r(), f(k, {
65
+ typeof ((u = m(o.name)) == null ? void 0 : u.url) == "string" ? (r(), f(w, {
66
66
  key: 0,
67
67
  class: "decoration-c-3",
68
68
  href: m(o.name).url
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-233b510c"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1e73a183"]]);
5
5
  export {
6
- e as default
6
+ s as default
7
7
  };
@@ -10,7 +10,7 @@ import { mediaTypes as q } from "../consts/mediaTypes.js";
10
10
  const z = {
11
11
  key: 0,
12
12
  class: "bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"
13
- }, A = { class: "flex min-h-8 items-center justify-between border-y px-3 py-1.5" }, G = { class: "text-xxs font-code leading-3" }, Y = /* @__PURE__ */ C({
13
+ }, A = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, G = { class: "text-xxs font-code leading-3" }, Y = /* @__PURE__ */ C({
14
14
  __name: "ResponseBody",
15
15
  props: {
16
16
  title: {},
@@ -34,7 +34,7 @@ const W = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, $ = {
34
34
  }));
35
35
  }, k = (o) => {
36
36
  o != null && o.createNew && x.name === "request" && f();
37
- }, w = "2.3.19";
37
+ }, w = "2.3.21";
38
38
  return R(() => a.hotKeys.on(k)), v(() => a.hotKeys.off(k)), (o, e) => (l(), u("div", W, [
39
39
  s("div", {
40
40
  class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseHeaders.vue"],"names":[],"mappings":"AAgFA,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAA;AAEhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAC;;AAiLF,wBAOG"}
1
+ {"version":3,"file":"ResponseHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseHeaders.vue"],"names":[],"mappings":"AAgFA,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAA;AAEhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAC;;AAgLF,wBAOG"}
@@ -1,14 +1,14 @@
1
- import { defineComponent as y, openBlock as t, createBlock as f, withCtx as e, createTextVNode as n, createElementBlock as l, createVNode as a, unref as u, Fragment as i, renderList as b, toDisplayString as p } from "vue";
2
- import g from "../../../components/DataTable/DataTable.vue.js";
1
+ import { defineComponent as y, openBlock as t, createBlock as f, withCtx as e, createTextVNode as n, createElementBlock as l, createVNode as a, unref as u, Fragment as i, renderList as g, toDisplayString as p } from "vue";
2
+ import k from "../../../components/DataTable/DataTable.vue.js";
3
3
  import c from "../../../components/DataTable/DataTableRow.vue.js";
4
4
  import _ from "../../../components/DataTable/DataTableText.vue.js";
5
- import k from "../../../components/HelpfulLink.vue.js";
6
- import w from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
5
+ import w from "../../../components/HelpfulLink.vue.js";
6
+ import b from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
7
7
  import { httpHeaders as h } from "../../../data/httpHeaders.js";
8
8
  import x from "../../../components/DataTable/DataTableHeader.vue.js";
9
9
  const H = {
10
10
  key: 0,
11
- class: "max-h-[calc(100%-32px)] overflow-y-auto border-t"
11
+ class: "max-h-[calc(100%-32px)] overflow-y-auto"
12
12
  }, C = {
13
13
  key: 1,
14
14
  class: "text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-sm"
@@ -21,7 +21,7 @@ const H = {
21
21
  const m = (s) => h.find(
22
22
  (r) => r.name.toLowerCase() === s.toLowerCase()
23
23
  );
24
- return (s, r) => (t(), f(w, {
24
+ return (s, r) => (t(), f(b, {
25
25
  class: "overflow-auto",
26
26
  defaultOpen: !1,
27
27
  itemCount: s.headers.length
@@ -31,7 +31,7 @@ const H = {
31
31
  ])),
32
32
  default: e(() => [
33
33
  s.headers.length ? (t(), l("div", H, [
34
- a(g, {
34
+ a(k, {
35
35
  columns: ["minmax(auto, min-content)", "minmax(50%, 1fr)"],
36
36
  scroll: ""
37
37
  }, {
@@ -53,7 +53,7 @@ const H = {
53
53
  ]),
54
54
  _: 1
55
55
  }),
56
- (t(!0), l(i, null, b(s.headers, (o) => (t(), f(c, {
56
+ (t(!0), l(i, null, g(s.headers, (o) => (t(), f(c, {
57
57
  key: o.name,
58
58
  class: "group/row text-c-1"
59
59
  }, {
@@ -62,7 +62,7 @@ const H = {
62
62
  default: e(() => {
63
63
  var d;
64
64
  return [
65
- typeof ((d = m(o.name)) == null ? void 0 : d.url) == "string" ? (t(), f(k, {
65
+ typeof ((d = m(o.name)) == null ? void 0 : d.url) == "string" ? (t(), f(w, {
66
66
  key: 0,
67
67
  class: "decoration-c-3",
68
68
  href: m(o.name).url
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AA22BA,wBAMG"}
1
+ {"version":3,"file":"SettingsGeneral.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Settings/SettingsGeneral.vue"],"names":[],"mappings":";AA+2BA,wBAMG"}
@@ -20,6 +20,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto
20
20
  "kepler"
21
21
  // 'mars',
22
22
  // 'deepSpace',
23
+ // 'laserwave',
23
24
  ], N = ["elysiajs", "fastify"], _ = (x) => ({
24
25
  default: { light: "#fff", dark: "#0f0f0f", accent: "#0099ff" },
25
26
  alternate: { light: "#f9f9f9", dark: "#131313", accent: "#e7e7e7" },
@@ -31,6 +32,7 @@ const D = { class: "bg-b-1 h-full w-full overflow-auto" }, G = { class: "ml-auto
31
32
  kepler: { light: "#f6f6f6", dark: "#0d0f1e", accent: "#7070ff" },
32
33
  mars: { light: "#f2efe8", dark: "#321116", accent: "#c75549" },
33
34
  deepSpace: { light: "#f4f4f5", dark: "#09090b", accent: "#8ab4f8" },
35
+ laserwave: { light: "#f4f2f7", dark: "#27212e", accent: "#ed78c2" },
34
36
  none: { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }
35
37
  })[x] || { light: "#ffffff", dark: "#000000", accent: "#3b82f6" }, T = (x) => {
36
38
  var t;
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.3.19",
21
+ "version": "2.3.21",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -189,20 +189,20 @@
189
189
  "whatwg-mimetype": "^4.0.0",
190
190
  "yaml": "^2.4.5",
191
191
  "zod": "^3.23.8",
192
- "@scalar/components": "0.13.47",
193
- "@scalar/import": "0.3.13",
194
192
  "@scalar/draggable": "0.1.11",
195
- "@scalar/oas-utils": "0.2.130",
196
193
  "@scalar/icons": "0.1.3",
194
+ "@scalar/import": "0.3.15",
195
+ "@scalar/oas-utils": "0.2.132",
197
196
  "@scalar/object-utils": "1.1.13",
197
+ "@scalar/openapi-parser": "0.10.16",
198
198
  "@scalar/openapi-types": "0.2.0",
199
- "@scalar/postman-to-openapi": "0.2.3",
200
- "@scalar/openapi-parser": "0.10.14",
199
+ "@scalar/components": "0.13.48",
201
200
  "@scalar/snippetz": "0.2.19",
202
- "@scalar/types": "0.1.7",
203
- "@scalar/themes": "0.9.86",
204
- "@scalar/use-codemirror": "0.11.92",
205
- "@scalar/use-hooks": "0.1.40",
201
+ "@scalar/postman-to-openapi": "0.2.5",
202
+ "@scalar/types": "0.1.8",
203
+ "@scalar/use-codemirror": "0.11.93",
204
+ "@scalar/themes": "0.10.0",
205
+ "@scalar/use-hooks": "0.1.41",
206
206
  "@scalar/use-toasts": "0.7.9",
207
207
  "@scalar/use-tooltip": "1.0.6"
208
208
  },
@@ -219,8 +219,8 @@
219
219
  "vite": "^5.4.10",
220
220
  "vite-svg-loader": "^5.1.0",
221
221
  "vitest": "^1.6.0",
222
- "@scalar/galaxy": "0.3.1",
223
- "@scalar/build-tooling": "0.1.17"
222
+ "@scalar/build-tooling": "0.1.17",
223
+ "@scalar/galaxy": "0.3.1"
224
224
  },
225
225
  "scripts": {
226
226
  "build": "scalar-build-vite",