@scalar/api-client 2.2.1 → 2.2.3

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.
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as _, computed as m, ref as g, openBlock as n, createBlock as i, withCtx as u, createElementVNode as l, normalizeClass as f, createCommentVNode as c, createVNode as v, createElementBlock as y, Fragment as x } from "vue";
2
- import R from "../../../components/ContextBar.vue.js";
3
- import S from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
- import j from "./ResponseBody.vue.js";
2
+ import j from "../../../components/ContextBar.vue.js";
3
+ import R from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
+ import S from "./ResponseBody.vue.js";
5
5
  import b from "./ResponseEmpty.vue.js";
6
6
  import H from "./ResponseLoadingOverlay.vue.js";
7
7
  import V from "./ResponseMetaInformation.vue.js";
@@ -16,27 +16,27 @@ const E = { class: "flex items-center flex-1 h-8" }, h = 2e5, X = /* @__PURE__ *
16
16
  },
17
17
  setup(k) {
18
18
  const t = k, d = m(() => {
19
- var s;
20
- const e = (s = t.response) == null ? void 0 : s.headers;
21
- return e ? Object.keys(e).map((o) => ({
22
- name: o,
23
- value: e[o],
19
+ var o;
20
+ const e = (o = t.response) == null ? void 0 : o.headers;
21
+ return e ? Object.keys(e).map((s) => ({
22
+ name: s,
23
+ value: e[s],
24
24
  required: !1
25
25
  })).filter(
26
- (o) => ![
26
+ (s) => ![
27
27
  "rest-api-client-content-length",
28
28
  "X-API-Client-Content-Length"
29
- ].includes(o.name)
29
+ ].includes(s.name)
30
30
  ) : [];
31
31
  }), B = m(
32
32
  () => {
33
33
  var e;
34
- return ((e = t.response) == null ? void 0 : e.cookieHeaderKeys.flatMap((s) => {
34
+ return ((e = t.response) == null ? void 0 : e.cookieHeaderKeys.flatMap((o) => {
35
35
  var r, p;
36
- const o = (p = (r = t.response) == null ? void 0 : r.headers) == null ? void 0 : p[s];
37
- return o ? {
38
- name: s,
39
- value: o,
36
+ const s = (p = (r = t.response) == null ? void 0 : r.headers) == null ? void 0 : p[o];
37
+ return s ? {
38
+ name: o,
39
+ value: s,
40
40
  required: !1
41
41
  } : [];
42
42
  })) ?? [];
@@ -74,32 +74,32 @@ const E = { class: "flex items-center flex-1 h-8" }, h = 2e5, X = /* @__PURE__ *
74
74
  "application/x-www-form-urlencoded"
75
75
  ].some((T) => e.includes(T)) && (t.response.size ?? 0) > h;
76
76
  });
77
- return (e, s) => (n(), i(S, { "aria-label": "Response" }, {
77
+ return (e, o) => (n(), i(R, { "aria-label": "Response" }, {
78
78
  title: u(() => [
79
79
  l("div", E, [
80
80
  l("div", {
81
81
  "aria-live": "polite",
82
82
  class: f(["flex items-center", { "animate-response-heading": e.response }])
83
83
  }, [
84
- s[1] || (s[1] = l("span", { class: "response-heading absolute pointer-events-none" }, " Response ", -1)),
84
+ o[1] || (o[1] = l("span", { class: "response-heading absolute pointer-events-none" }, " Response ", -1)),
85
85
  e.response ? (n(), i(V, {
86
86
  key: 0,
87
87
  class: "animate-response-children",
88
88
  response: e.response
89
89
  }, null, 8, ["response"])) : c("", !0)
90
90
  ], 2),
91
- v(R, {
91
+ v(j, {
92
92
  activeSection: a.value,
93
93
  sections: C,
94
- onSetActiveSection: s[0] || (s[0] = (o) => a.value = o)
94
+ onSetActiveSection: o[0] || (o[0] = (s) => a.value = s)
95
95
  }, null, 8, ["activeSection"])
96
96
  ])
97
97
  ]),
98
98
  default: u(() => {
99
- var o;
99
+ var s;
100
100
  return [
101
101
  l("div", {
102
- class: f(["custom-scroll h-full relative grid gap-[.5px] px-2 xl:px-3 py-2.5", {
102
+ class: f(["custom-scroll h-full relative grid gap-[.5px] px-2 xl:px-3 py-2.5 justify-stretch", {
103
103
  "content-start": e.response
104
104
  }])
105
105
  }, [
@@ -116,10 +116,10 @@ const E = { class: "flex items-center flex-1 h-8" }, h = 2e5, X = /* @__PURE__ *
116
116
  A.value ? (n(), i(w, {
117
117
  key: 0,
118
118
  content: t.response.data
119
- }, null, 8, ["content"])) : (n(), i(j, {
119
+ }, null, 8, ["content"])) : (n(), i(S, {
120
120
  key: 1,
121
121
  active: !0,
122
- data: (o = t.response) == null ? void 0 : o.data,
122
+ data: (s = t.response) == null ? void 0 : s.data,
123
123
  headers: d.value,
124
124
  title: "Body"
125
125
  }, null, 8, ["data", "headers"]))
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.2.1",
21
+ "version": "2.2.3",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -155,19 +155,19 @@
155
155
  "whatwg-mimetype": "^4.0.0",
156
156
  "yaml": "^2.4.5",
157
157
  "zod": "^3.23.8",
158
- "@scalar/components": "0.12.74",
158
+ "@scalar/components": "0.12.76",
159
159
  "@scalar/draggable": "0.1.7",
160
- "@scalar/icons": "0.1.2",
160
+ "@scalar/oas-utils": "0.2.81",
161
161
  "@scalar/import": "0.1.2",
162
- "@scalar/oas-utils": "0.2.79",
163
162
  "@scalar/object-utils": "1.1.12",
164
163
  "@scalar/openapi-parser": "0.8.10",
164
+ "@scalar/icons": "0.1.2",
165
165
  "@scalar/openapi-types": "0.1.5",
166
- "@scalar/themes": "0.9.50",
167
- "@scalar/types": "0.0.20",
168
- "@scalar/use-codemirror": "0.11.41",
169
- "@scalar/use-hooks": "0.1.3",
166
+ "@scalar/themes": "0.9.52",
167
+ "@scalar/use-codemirror": "0.11.43",
168
+ "@scalar/use-hooks": "0.1.5",
170
169
  "@scalar/use-toasts": "0.7.7",
170
+ "@scalar/types": "0.0.21",
171
171
  "@scalar/use-tooltip": "1.0.4"
172
172
  },
173
173
  "devDependencies": {
@@ -185,8 +185,8 @@
185
185
  "vite": "^5.4.10",
186
186
  "vite-svg-loader": "^5.1.0",
187
187
  "vitest": "^1.6.0",
188
- "@scalar/galaxy": "0.2.16",
189
- "@scalar/build-tooling": "0.1.12"
188
+ "@scalar/build-tooling": "0.1.12",
189
+ "@scalar/galaxy": "0.2.16"
190
190
  },
191
191
  "scripts": {
192
192
  "build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",