@scalar/api-client 2.2.17 → 2.2.18

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 +1 @@
1
- {"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/Environment.vue"],"names":[],"mappings":";AA+0CA,wBAMG"}
1
+ {"version":3,"file":"Environment.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Environment/Environment.vue"],"names":[],"mappings":";AA80CA,wBAMG"}
@@ -212,7 +212,7 @@ const Re = { class: "flex-1" }, je = ["onClick"], nn = /* @__PURE__ */ re({
212
212
  class: "flex flex-col gap-0.25"
213
213
  }, [
214
214
  y("button", {
215
- class: "flex font-medium gap-1.5 group items-center px-2 py-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
215
+ class: "flex font-medium gap-1.5 group items-center p-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
216
216
  type: "button",
217
217
  onClick: (a) => r(k)(n.uid)
218
218
  }, [
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAolBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAs4BF,wBAOG"}
1
+ {"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestBody.vue"],"names":[],"mappings":"AAolBA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;AAu4BF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBody.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7d610d02"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a3031462"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -13,7 +13,7 @@ import { useWorkspace as de } from "../../../store/store.js";
13
13
  import { useFileDialog as H } from "../../../hooks/useFileDialog.js";
14
14
  const se = {
15
15
  key: 0,
16
- class: "text-c-3 flex min-h-10 w-full items-center justify-center p-2 text-sm"
16
+ class: "border-t-1/2 text-c-3 flex min-h-10 w-full items-center justify-center p-2 text-sm"
17
17
  }, ce = {
18
18
  key: 1,
19
19
  class: "flex items-center justify-center p-1.5 overflow-hidden"
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-317bb675"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a26ad87b"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,27 +1,27 @@
1
- import { defineComponent as B, computed as S, ref as b, watch as V, openBlock as d, createBlock as w, unref as o, withCtx as x, createElementVNode as A, createElementBlock as v, createCommentVNode as C, toDisplayString as R, createVNode as s, withDirectives as i, vShow as r } from "vue";
2
- import H from "../../../components/ContextBar.vue.js";
3
- import N from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
- import { useActiveEntities as E } from "../../../store/active-entities.js";
5
- import K from "./RequestBody.vue.js";
6
- import f from "./RequestParams.vue.js";
7
- import U from "./RequestPathParams.vue.js";
8
- import { canMethodHaveBody as h } from "@scalar/oas-utils/helpers";
9
- import Q from "./RequestAuth/RequestAuth.vue.js";
10
- import { useWorkspace as $ } from "../../../store/store.js";
11
- const D = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none group" }, M = {
1
+ import { defineComponent as b, computed as x, ref as V, watch as w, openBlock as d, createBlock as C, unref as o, withCtx as A, createElementVNode as g, createElementBlock as v, createCommentVNode as R, toDisplayString as H, createVNode as s, withDirectives as i, vShow as r } from "vue";
2
+ import N from "../../../components/ContextBar.vue.js";
3
+ import E from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
+ import { useActiveEntities as K } from "../../../store/active-entities.js";
5
+ import U from "./RequestBody.vue.js";
6
+ import h from "./RequestParams.vue.js";
7
+ import Q from "./RequestPathParams.vue.js";
8
+ import { canMethodHaveBody as f } from "@scalar/oas-utils/helpers";
9
+ import $ from "./RequestAuth/RequestAuth.vue.js";
10
+ import { useWorkspace as D } from "../../../store/store.js";
11
+ const M = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none group" }, z = {
12
12
  key: 0,
13
13
  class: "absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text",
14
14
  for: "requestname"
15
- }, z = ["value"], I = {
15
+ }, I = ["value"], L = {
16
16
  key: 2,
17
17
  class: "flex items-center text-c-1 h-8"
18
- }, L = { class: "request-section-content custom-scroll flex flex-1 flex-col px-3 xl:px-4 py-2.5" }, ee = /* @__PURE__ */ B({
18
+ }, O = { class: "request-section-content custom-scroll flex flex-1 flex-col px-3 xl:px-4 py-2.5" }, te = /* @__PURE__ */ b({
19
19
  __name: "RequestSection",
20
20
  props: {
21
21
  selectedSecuritySchemeUids: {}
22
22
  },
23
- setup(O) {
24
- const { activeRequest: l, activeExample: y } = E(), { isReadOnly: p, requestMutators: g } = $(), k = S(() => {
23
+ setup(P) {
24
+ const { activeRequest: l, activeExample: y } = K(), { isReadOnly: p, requestMutators: k } = D(), q = x(() => {
25
25
  var a, u;
26
26
  const t = /* @__PURE__ */ new Set([
27
27
  "All",
@@ -32,52 +32,52 @@ const D = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
32
32
  "Headers",
33
33
  "Body"
34
34
  ]);
35
- return (a = y.value) != null && a.parameters.path.length || t.delete("Variables"), h(((u = l.value) == null ? void 0 : u.method) ?? "get") || t.delete("Body"), _.value && t.delete("Auth"), [...t];
36
- }), _ = S(
35
+ return (a = y.value) != null && a.parameters.path.length || t.delete("Variables"), f(((u = l.value) == null ? void 0 : u.method) ?? "get") || t.delete("Body"), _.value && t.delete("Auth"), [...t];
36
+ }), _ = x(
37
37
  () => {
38
38
  var t, a;
39
39
  return p && ((a = (t = l.value) == null ? void 0 : t.security) == null ? void 0 : a.length) === 0;
40
40
  }
41
- ), e = b("All");
42
- V(l, (t) => {
43
- e.value === "Body" && t && !h(t.method) && (e.value = "All");
41
+ ), e = V("All");
42
+ w(l, (t) => {
43
+ e.value === "Body" && t && !f(t.method) && (e.value = "All");
44
44
  });
45
- const q = (t) => {
45
+ const B = (t) => {
46
46
  if (!l.value) return;
47
47
  const a = t.target;
48
- g.edit(l.value.uid, "summary", a.value);
48
+ k.edit(l.value.uid, "summary", a.value);
49
49
  };
50
50
  return (t, a) => {
51
51
  var u;
52
- return d(), w(N, {
52
+ return d(), C(E, {
53
53
  "aria-label": `Request: ${(u = o(l)) == null ? void 0 : u.summary}`
54
54
  }, {
55
- title: x(() => {
55
+ title: A(() => {
56
56
  var n, c;
57
57
  return [
58
- A("div", D, [
59
- o(p) ? C("", !0) : (d(), v("label", M)),
60
- o(p) ? (d(), v("span", I, R((c = o(l)) == null ? void 0 : c.summary), 1)) : (d(), v("input", {
58
+ g("div", M, [
59
+ o(p) ? R("", !0) : (d(), v("label", z)),
60
+ o(p) ? (d(), v("span", L, H((c = o(l)) == null ? void 0 : c.summary), 1)) : (d(), v("input", {
61
61
  key: 1,
62
62
  id: "requestname",
63
63
  class: "text-c-1 rounded pointer-events-auto relative w-full pl-2 -ml-0.5 md:-ml-1 xl:-ml-2 has-[:focus-visible]:outline h-8 group-hover-input has-[:focus-visible]:outline z-10",
64
64
  placeholder: "Request Name",
65
65
  value: (n = o(l)) == null ? void 0 : n.summary,
66
- onInput: q
67
- }, null, 40, z))
66
+ onInput: B
67
+ }, null, 40, I))
68
68
  ]),
69
- s(H, {
69
+ s(N, {
70
70
  activeSection: e.value,
71
- sections: k.value,
71
+ sections: q.value,
72
72
  onSetActiveSection: a[0] || (a[0] = (m) => e.value = m)
73
73
  }, null, 8, ["activeSection", "sections"])
74
74
  ];
75
75
  }),
76
- default: x(() => {
77
- var n, c, m;
76
+ default: A(() => {
77
+ var n, c, m, S;
78
78
  return [
79
- A("div", L, [
80
- i(s(Q, {
79
+ g("div", O, [
80
+ i(s($, {
81
81
  selectedSecuritySchemeUids: t.selectedSecuritySchemeUids,
82
82
  title: "Authentication"
83
83
  }, null, 8, ["selectedSecuritySchemeUids"]), [
@@ -86,7 +86,7 @@ const D = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
86
86
  !_.value && (e.value === "All" || e.value === "Auth")
87
87
  ]
88
88
  ]),
89
- i(s(U, {
89
+ i(s(Q, {
90
90
  paramKey: "path",
91
91
  title: "Variables"
92
92
  }, null, 512), [
@@ -95,28 +95,28 @@ const D = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
95
95
  (e.value === "All" || e.value === "Variables") && ((m = (c = (n = o(y)) == null ? void 0 : n.parameters) == null ? void 0 : c.path) == null ? void 0 : m.length)
96
96
  ]
97
97
  ]),
98
- i(s(f, {
98
+ i(s(h, {
99
99
  paramKey: "cookies",
100
100
  title: "Cookies"
101
101
  }, null, 512), [
102
102
  [r, e.value === "All" || e.value === "Cookies"]
103
103
  ]),
104
- i(s(f, {
104
+ i(s(h, {
105
105
  paramKey: "headers",
106
106
  title: "Headers"
107
107
  }, null, 512), [
108
108
  [r, e.value === "All" || e.value === "Headers"]
109
109
  ]),
110
- i(s(f, {
110
+ i(s(h, {
111
111
  paramKey: "query",
112
112
  title: "Query Parameters"
113
113
  }, null, 512), [
114
114
  [r, e.value === "All" || e.value === "Query"]
115
115
  ]),
116
- i(s(K, { title: "Body" }, null, 512), [
116
+ i(s(U, { title: "Body" }, null, 512), [
117
117
  [
118
118
  r,
119
- o(l) && (e.value === "All" || e.value === "Body") && o(h)(o(l).method)
119
+ ((S = o(l)) == null ? void 0 : S.method) && (e.value === "All" || e.value === "Body") && o(f)(o(l).method)
120
120
  ]
121
121
  ])
122
122
  ])
@@ -128,5 +128,5 @@ const D = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none
128
128
  }
129
129
  });
130
130
  export {
131
- ee as default
131
+ te as default
132
132
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./RequestSubpageHeader.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-48474404"]]);
4
+ const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-061ac4e9"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -9,7 +9,7 @@ import B from "./components/WorkspaceDropdown.vue.js";
9
9
  import h from "../../components/OpenApiClientButton.vue.js";
10
10
  import { useWorkspace as z } from "../../store/store.js";
11
11
  import { useLayout as A } from "../../hooks/useLayout.js";
12
- const E = { class: "lg:min-h-client-header flex items-center w-full justify-center p-2 pt-2 lg:pt-1 lg:p-1 flex-wrap t-app__top-container border-b-1/2" }, M = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, N = { class: "flex flex-row items-center gap-1 lg:px-2.5 lg:mb-0 mb-2 lg:flex-1 justify-end w-6/12" }, J = /* @__PURE__ */ C({
12
+ const E = { class: "lg:min-h-client-header flex items-center w-full justify-center p-2 pt-2 lg:pt-1 lg:p-1 flex-wrap t-app__top-container border-b-1/2" }, M = { class: "flex flex-row items-center gap-1 lg:px-2 lg:mb-0 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, N = { class: "flex flex-row items-center gap-1 lg:px-2 lg:mb-0 mb-2 lg:flex-1 justify-end w-6/12" }, J = /* @__PURE__ */ C({
13
13
  __name: "RequestSubpageHeader",
14
14
  props: {
15
15
  modelValue: { type: Boolean },
@@ -17,7 +17,7 @@ const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
17
17
  a.commandPalette.emit({ commandName: "Create Request" });
18
18
  }, y = (i) => {
19
19
  i != null && i.createNew && v.name === "request" && f();
20
- }, h = "2.2.17";
20
+ }, h = "2.2.18";
21
21
  return R(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (r(), l("div", K, [
22
22
  o("div", {
23
23
  class: k(["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.2.17",
21
+ "version": "2.2.18",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -169,20 +169,20 @@
169
169
  "whatwg-mimetype": "^4.0.0",
170
170
  "yaml": "^2.4.5",
171
171
  "zod": "^3.23.8",
172
- "@scalar/components": "0.13.8",
172
+ "@scalar/components": "0.13.9",
173
173
  "@scalar/draggable": "0.1.7",
174
- "@scalar/import": "0.2.10",
174
+ "@scalar/icons": "0.1.2",
175
+ "@scalar/import": "0.2.11",
175
176
  "@scalar/oas-utils": "0.2.91",
176
177
  "@scalar/object-utils": "1.1.12",
177
- "@scalar/icons": "0.1.2",
178
- "@scalar/openapi-parser": "0.10.1",
179
- "@scalar/postman-to-openapi": "0.1.14",
178
+ "@scalar/openapi-parser": "0.10.2",
180
179
  "@scalar/openapi-types": "0.1.5",
180
+ "@scalar/postman-to-openapi": "0.1.14",
181
181
  "@scalar/themes": "0.9.58",
182
- "@scalar/use-codemirror": "0.11.52",
183
182
  "@scalar/types": "0.0.25",
184
- "@scalar/use-toasts": "0.7.7",
183
+ "@scalar/use-codemirror": "0.11.53",
185
184
  "@scalar/use-hooks": "0.1.11",
185
+ "@scalar/use-toasts": "0.7.7",
186
186
  "@scalar/use-tooltip": "1.0.4"
187
187
  },
188
188
  "devDependencies": {