@scalar/api-client 2.5.18 → 2.5.19

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 (25) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/components/SectionFilter.vue.d.ts.map +1 -1
  3. package/dist/components/SectionFilter.vue.js +2 -2
  4. package/dist/components/SectionFilter.vue2.js +8 -8
  5. package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
  6. package/dist/components/Server/ServerSelector.vue.js +1 -1
  7. package/dist/components/Server/ServerVariablesForm.vue.js +1 -1
  8. package/dist/components/Server/ServerVariablesSelect.vue.d.ts.map +1 -1
  9. package/dist/components/Server/ServerVariablesSelect.vue.js +7 -7
  10. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  11. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +14 -14
  12. package/dist/style.css +1 -1
  13. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  14. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  15. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +7 -7
  16. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  17. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +1 -1
  18. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +1 -1
  19. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +9 -9
  20. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +1 -1
  21. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  22. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +3 -3
  23. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +4 -4
  24. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  25. package/package.json +14 -14
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AA+XA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAMrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAe1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAybF,wBAOG"}
1
+ {"version":3,"file":"RequestAuth.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuth.vue"],"names":[],"mappings":"AA+XA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EAET,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAMrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAe1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,0BAA0B,EAAE,0BAA0B,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AA0bF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuth.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0b3f2a3a"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ae6b8295"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, useId as N, ref as k, computed as h, createBlock as K, openBlock as m, withCtx as d, createVNode as f, unref as r, createElementVNode as a, createElementBlock as v, Fragment as x, createTextVNode as A, toDisplayString as C, createCommentVNode as j, normalizeClass as z } from "vue";
1
+ import { defineComponent as $, useId as N, ref as x, computed as h, createBlock as K, openBlock as m, withCtx as d, createVNode as f, unref as r, createElementVNode as a, createElementBlock as v, Fragment as k, createTextVNode as A, toDisplayString as C, createCommentVNode as j, normalizeClass as z } from "vue";
2
2
  import { useModal as W, ScalarComboboxMultiselect as Y, ScalarButton as F, ScalarIcon as H } from "@scalar/components";
3
3
  import { safeLocalStorage as J, CLIENT_LS_KEYS as P } from "@scalar/helpers/object/local-storage";
4
4
  import { isDefined as G } from "@scalar/oas-utils/helpers";
@@ -28,9 +28,9 @@ const se = ["id"], re = { class: "absolute right-1 flex flex-1" }, ie = { class:
28
28
  securitySchemeMutators: O,
29
29
  requestMutators: w,
30
30
  collectionMutators: U
31
- } = Z(), R = N(), S = k(null), p = W(), b = k(
31
+ } = Z(), R = N(), S = x(null), p = W(), b = x(
32
32
  null
33
- ), V = k(!1), D = h(() => {
33
+ ), V = x(!1), D = h(() => {
34
34
  const t = te(s.operation, s.collection);
35
35
  return { filteredRequirements: t.filter((o) => Object.keys(o).length), requirements: t };
36
36
  }), g = h(() => {
@@ -118,7 +118,7 @@ const se = ["id"], re = { class: "absolute right-1 flex flex-1" }, ie = { class:
118
118
  title: d(() => [
119
119
  a("div", {
120
120
  id: r(R),
121
- class: "inline-flex items-center gap-0.5"
121
+ class: "inline-flex items-center gap-0.5 leading-[20px]"
122
122
  }, [
123
123
  a("span", null, C(t.title), 1),
124
124
  g.value ? (m(), v("span", {
@@ -154,13 +154,13 @@ const se = ["id"], re = { class: "absolute right-1 flex flex-1" }, ie = { class:
154
154
  var o;
155
155
  return [
156
156
  a("div", ie, [
157
- u.value.length === 0 ? (m(), v(x, { key: 0 }, [
157
+ u.value.length === 0 ? (m(), v(k, { key: 0 }, [
158
158
  e[3] || (e[3] = a("span", { class: "sr-only" }, "Select", -1)),
159
159
  e[4] || (e[4] = A(" Auth Type "))
160
- ], 64)) : u.value.length === 1 ? (m(), v(x, { key: 1 }, [
160
+ ], 64)) : u.value.length === 1 ? (m(), v(k, { key: 1 }, [
161
161
  e[5] || (e[5] = a("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
162
162
  A(" " + C((o = u.value[0]) == null ? void 0 : o.label), 1)
163
- ], 64)) : (m(), v(x, { key: 2 }, [
163
+ ], 64)) : (m(), v(k, { key: 2 }, [
164
164
  e[6] || (e[6] = A(" Multiple ")),
165
165
  e[7] || (e[7] = a("span", { class: "sr-only" }, "Auth Types Selected", -1))
166
166
  ], 64))
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuthDataTable.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-d0e4c96f"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-3e25725c"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -39,7 +39,7 @@ const M = ["onClick"], N = { class: "relative z-10 font-medium whitespace-nowrap
39
39
  }, [
40
40
  e.selectedSchemeOptions.length > 1 ? (o(), l("div", {
41
41
  key: 0,
42
- class: s(["box-content flex h-8 flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", e.layout === "client" && "border-r-0"])
42
+ class: s(["box-content flex h-8 flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", e.layout === "client" && "border-x-0"])
43
43
  }, [
44
44
  (o(!0), l(S, null, x(e.selectedSchemeOptions, (n, a) => (o(), l("div", {
45
45
  key: n.id,
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuthTab.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-292b33c8"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0b5ee843"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -24,9 +24,9 @@ const J = {
24
24
  workspace: {}
25
25
  },
26
26
  setup(c) {
27
- const C = D(), { collectionMutators: L, securitySchemes: U, securitySchemeMutators: M } = C, x = P(
27
+ const C = D(), { collectionMutators: L, securitySchemes: x, securitySchemeMutators: M } = C, U = P(
28
28
  () => c.securitySchemeUids.map((t) => ({
29
- scheme: U[t]
29
+ scheme: x[t]
30
30
  }))
31
31
  ), s = R(""), O = (t) => {
32
32
  const r = t.description ? `: ${t.description}` : "", e = `${g(t.nameKey)}${r || `: ${t.type}`}`;
@@ -45,9 +45,9 @@ const J = {
45
45
  return;
46
46
  const t = JSON.parse(
47
47
  I().getItem(N.AUTH) ?? "{}"
48
- ), r = Object.keys(U).reduce(
48
+ ), r = Object.keys(x).reduce(
49
49
  (e, o) => {
50
- const a = U[o];
50
+ const a = x[o];
51
51
  return a && (e[a.nameKey] = a.uid), e;
52
52
  },
53
53
  {}
@@ -71,10 +71,10 @@ const J = {
71
71
  envVariables: c.envVariables,
72
72
  workspace: c.workspace
73
73
  };
74
- return (t, r) => (l(!0), i(p, null, $(x.value, ({ scheme: e }) => (l(), i(p, {
74
+ return (t, r) => (l(!0), i(p, null, $(U.value, ({ scheme: e }) => (l(), i(p, {
75
75
  key: e == null ? void 0 : e.uid
76
76
  }, [
77
- x.value.length > 1 ? (l(), S(d(f), {
77
+ U.value.length > 1 ? (l(), S(d(f), {
78
78
  key: 0,
79
79
  class: _({
80
80
  "request-example-references-header": t.layout === "reference"
@@ -92,15 +92,15 @@ const J = {
92
92
  ]),
93
93
  _: 2
94
94
  }, 1032, ["class"])) : v("", !0),
95
- e != null && e.description && x.value.length <= 1 ? (l(), S(d(f), { key: 1 }, {
95
+ e != null && e.description && U.value.length <= 1 ? (l(), S(d(f), { key: 1 }, {
96
96
  default: n(() => [
97
97
  u(d(B), {
98
98
  "aria-label": e.description,
99
- class: "text-c-2 auth-description-container group/auth -mb-0.25 flex items-center whitespace-nowrap outline-none hover:whitespace-normal"
99
+ class: "text-c-2 auth-description-container group/auth flex items-center whitespace-nowrap outline-none hover:whitespace-normal"
100
100
  }, {
101
101
  default: n(() => [
102
102
  u(d(z), {
103
- class: "auth-description bg-b-1 text-c-2 outline-b-3 top-0 z-1 line-clamp-1 h-full w-full px-3 py-1.5 group-hover/auth:line-clamp-none",
103
+ class: "auth-description bg-b-1 text-c-2 outline-b-3 top-0 z-1 h-full w-full px-3 py-1.25 *:first:line-clamp-1 *:first:text-ellipsis group-hover/auth:*:first:line-clamp-none",
104
104
  value: e.description
105
105
  }, null, 8, ["value"])
106
106
  ]),
@@ -15,7 +15,7 @@ const x = ["download", "href"], h = /* @__PURE__ */ l({
15
15
  return n.filename ? n.filename : `response${o}`;
16
16
  });
17
17
  return (o, e) => (i(), a("a", {
18
- class: "text-c-3 text-xxs hover:bg-b-3 no-underlin flex items-center gap-1 rounded px-1.5 py-0.5",
18
+ class: "text-c-3 text-xxs hover:bg-b-3 flex items-center gap-1 rounded px-1.5 py-0.5 no-underline",
19
19
  download: `${r.value}`,
20
20
  href: o.href,
21
21
  onClick: e[0] || (e[0] = d(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBodyRaw.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyRaw.vue"],"names":[],"mappings":"AAkHA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAM/E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,EAAE,kBAAkB,GAAG,SAAS,CAAA;CACzC,CAAC;;AAwHF,wBAOG"}
1
+ {"version":3,"file":"ResponseBodyRaw.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyRaw.vue"],"names":[],"mappings":"AAkHA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAM/E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,EAAE,kBAAkB,GAAG,SAAS,CAAA;CACzC,CAAC;;AAuHF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseBodyRaw.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ a(o, [["__scopeId", "data-v-fbacaa3e"]]);
3
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-27e5c2e0"]]);
5
5
  export {
6
- r as default
6
+ s as default
7
7
  };
@@ -6,8 +6,8 @@ import { useClipboard as _ } from "@scalar/use-hooks/useClipboard";
6
6
  const k = { class: "body-raw grid min-h-0 overflow-hidden p-px outline-none has-[:focus-visible]:outline" }, w = {
7
7
  key: 0,
8
8
  class: "scalar-code-copy"
9
- }, x = {
10
- class: "body-raw-scroller custom-scroll relative overflow-x-auto overscroll-contain",
9
+ }, R = {
10
+ class: "body-raw-scroller relative overflow-auto overscroll-contain",
11
11
  tabindex: "0"
12
12
  }, E = /* @__PURE__ */ m({
13
13
  __name: "ResponseBodyRaw",
@@ -32,7 +32,7 @@ const k = { class: "body-raw grid min-h-0 overflow-hidden p-px outline-none has-
32
32
  e("button", {
33
33
  class: "copy-button",
34
34
  type: "button",
35
- onClick: o[0] || (o[0] = (R) => a(u)(s()))
35
+ onClick: o[0] || (o[0] = (x) => a(u)(s()))
36
36
  }, [
37
37
  o[1] || (o[1] = e("span", { class: "sr-only" }, "Copy content", -1)),
38
38
  b(a(v), {
@@ -41,7 +41,7 @@ const k = { class: "body-raw grid min-h-0 overflow-hidden p-px outline-none has-
41
41
  })
42
42
  ])
43
43
  ])) : y("", !0),
44
- e("div", x, [
44
+ e("div", R, [
45
45
  e("div", {
46
46
  ref_key: "codeMirrorRef",
47
47
  ref: n
@@ -34,7 +34,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
34
34
  }));
35
35
  }, k = (o) => {
36
36
  o != null && o.createNew && g.name === "request" && f();
37
- }, w = "2.5.18";
37
+ }, w = "2.5.19";
38
38
  return R(() => a.hotKeys.on(k)), v(() => a.hotKeys.off(k)), (o, e) => (u(), i("div", W, [
39
39
  s("div", {
40
40
  class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.5.18",
21
+ "version": "2.5.19",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
@@ -205,23 +205,23 @@
205
205
  "whatwg-mimetype": "^4.0.0",
206
206
  "yaml": "2.8.0",
207
207
  "zod": "3.24.1",
208
+ "@scalar/components": "0.14.20",
208
209
  "@scalar/draggable": "0.2.0",
209
- "@scalar/components": "0.14.19",
210
- "@scalar/icons": "0.4.6",
211
210
  "@scalar/helpers": "0.0.6",
212
- "@scalar/import": "0.4.13",
213
- "@scalar/oas-utils": "0.4.14",
211
+ "@scalar/import": "0.4.14",
212
+ "@scalar/icons": "0.4.6",
214
213
  "@scalar/object-utils": "1.2.2",
215
- "@scalar/openapi-parser": "0.18.1",
216
214
  "@scalar/openapi-types": "0.3.6",
217
- "@scalar/postman-to-openapi": "0.3.17",
218
- "@scalar/themes": "0.13.10",
219
- "@scalar/types": "0.2.9",
220
- "@scalar/use-codemirror": "0.12.20",
221
- "@scalar/use-hooks": "0.2.4",
222
- "@scalar/use-tooltip": "1.1.0",
215
+ "@scalar/openapi-parser": "0.18.2",
216
+ "@scalar/oas-utils": "0.4.15",
217
+ "@scalar/postman-to-openapi": "0.3.18",
218
+ "@scalar/snippetz": "0.4.3",
219
+ "@scalar/themes": "0.13.11",
220
+ "@scalar/types": "0.2.10",
221
+ "@scalar/use-codemirror": "0.12.21",
223
222
  "@scalar/use-toasts": "0.8.0",
224
- "@scalar/snippetz": "0.4.2"
223
+ "@scalar/use-hooks": "0.2.4",
224
+ "@scalar/use-tooltip": "1.1.0"
225
225
  },
226
226
  "devDependencies": {
227
227
  "@tailwindcss/vite": "^4.1.7",
@@ -235,7 +235,7 @@
235
235
  "vite-svg-loader": "^5.1.0",
236
236
  "vitest": "^1.6.1",
237
237
  "@scalar/build-tooling": "0.2.4",
238
- "@scalar/galaxy": "0.5.4"
238
+ "@scalar/galaxy": "0.5.5"
239
239
  },
240
240
  "scripts": {
241
241
  "build": "scalar-build-vite",