@scalar/api-client 2.2.19 → 2.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";;cAkR8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA4YjD,wBAMG"}
1
+ {"version":3,"file":"Request.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/Request.vue"],"names":[],"mappings":";;cAyS8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAmajD,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Request.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-fa0c6bf7"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-df9ec365"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };
@@ -1,177 +1,190 @@
1
- import { defineComponent as X, ref as S, computed as O, watch as Y, onMounted as Z, onBeforeUnmount as ee, openBlock as x, createElementBlock as te, Fragment as oe, createElementVNode as b, normalizeClass as g, unref as s, createVNode as d, withCtx as I, createBlock as T, createCommentVNode as M } from "vue";
2
- import re from "../../components/ImportCurl/ImportCurlModal.vue.js";
3
- import se from "../../components/ViewLayout/ViewLayout.vue.js";
4
- import le from "../../components/ViewLayout/ViewLayoutContent.vue.js";
5
- import { importCurlCommand as ae } from "../../libs/importers/curl.js";
6
- import { useActiveEntities as ue } from "../../store/active-entities.js";
7
- import ne from "./RequestSection/RequestSection.vue.js";
8
- import ie from "./RequestSubpageHeader.vue.js";
9
- import ce from "./ResponseSection/ResponseSection.vue.js";
10
- import { useOpenApiWatcher as me } from "./hooks/useOpenApiWatcher.js";
11
- import { safeJSON as de } from "@scalar/object-utils/parse";
12
- import { useBreakpoints as ve } from "@scalar/use-hooks/useBreakpoints";
13
- import { useToasts as fe } from "@scalar/use-toasts";
14
- import { useRouter as pe } from "vue-router";
15
- import ye from "./RequestSidebar.vue.js";
16
- import { createRequestOperation as Se } from "../../libs/send-request/send-request.js";
17
- import { ERRORS as Re } from "../../libs/errors.js";
18
- import { useWorkspace as he } from "../../store/store.js";
19
- import { useLayout as qe } from "../../hooks/useLayout.js";
20
- const xe = { class: "flex h-full" }, be = { class: "flex flex-1 flex-col h-full" }, ze = /* @__PURE__ */ X({
1
+ import { defineComponent as re, ref as R, computed as M, watch as se, onMounted as le, onBeforeUnmount as ue, openBlock as w, createElementBlock as ae, Fragment as ie, createElementVNode as U, normalizeClass as _, unref as l, createVNode as d, withCtx as A, createBlock as L, createCommentVNode as D } from "vue";
2
+ import ne from "../../components/ImportCurl/ImportCurlModal.vue.js";
3
+ import ce from "../../components/ViewLayout/ViewLayout.vue.js";
4
+ import me from "../../components/ViewLayout/ViewLayoutContent.vue.js";
5
+ import { importCurlCommand as de } from "../../libs/importers/curl.js";
6
+ import { useActiveEntities as ve } from "../../store/active-entities.js";
7
+ import fe from "./RequestSection/RequestSection.vue.js";
8
+ import pe from "./RequestSubpageHeader.vue.js";
9
+ import ye from "./ResponseSection/ResponseSection.vue.js";
10
+ import { useOpenApiWatcher as Se } from "./hooks/useOpenApiWatcher.js";
11
+ import { safeJSON as Re } from "@scalar/object-utils/parse";
12
+ import { useBreakpoints as he } from "@scalar/use-hooks/useBreakpoints";
13
+ import { useToasts as qe } from "@scalar/use-toasts";
14
+ import { useRouter as xe } from "vue-router";
15
+ import be from "./RequestSidebar.vue.js";
16
+ import { createRequestOperation as we } from "../../libs/send-request/send-request.js";
17
+ import { ERRORS as Ue } from "../../libs/errors.js";
18
+ import { useWorkspace as ke } from "../../store/store.js";
19
+ import { useLayout as Ee } from "../../hooks/useLayout.js";
20
+ const Ve = { class: "flex h-full" }, Be = { class: "flex flex-1 flex-col h-full" }, Ke = /* @__PURE__ */ re({
21
21
  __name: "Request",
22
22
  emits: ["newTab"],
23
- setup(we) {
24
- const _ = he(), { toast: w } = fe(), { layout: A } = qe(), {
25
- activeCollection: U,
23
+ setup(Ce) {
24
+ const H = ke(), { toast: k } = qe(), { layout: W } = Ee(), {
25
+ activeCollection: h,
26
26
  activeExample: v,
27
- activeEnvironment: k,
28
- activeRequest: R,
29
- activeWorkspace: a,
30
- activeServer: L
31
- } = ue(), {
32
- cookies: H,
33
- isReadOnly: u,
34
- modalState: n,
35
- requestHistory: E,
36
- securitySchemes: $,
37
- requestMutators: j,
38
- serverMutators: W,
39
- servers: z,
27
+ activeEnvironment: E,
28
+ activeRequest: q,
29
+ activeWorkspace: x,
30
+ activeServer: $,
31
+ activeWorkspaceCollections: j
32
+ } = ve(), {
33
+ cookies: z,
34
+ isReadOnly: a,
35
+ modalState: i,
36
+ requestHistory: V,
37
+ securitySchemes: F,
38
+ requestMutators: Q,
39
+ serverMutators: J,
40
+ servers: G,
40
41
  events: f
41
- } = _, l = S(!u), V = S(), t = S(), h = S(""), D = pe(), F = O(
42
- () => E.findLast((o) => {
43
- var e;
44
- return o.request.uid === ((e = v.value) == null ? void 0 : e.uid);
42
+ } = H, u = R(!a), B = R(), e = R(), b = R(""), K = xe(), P = M(
43
+ () => V.findLast((o) => {
44
+ var t;
45
+ return o.request.uid === ((t = v.value) == null ? void 0 : t.uid);
45
46
  })
46
- ), { mediaQueries: Q } = ve();
47
- Y(Q.xl, (o) => l.value = o, {
48
- immediate: A !== "modal"
47
+ ), { mediaQueries: X } = he();
48
+ se(X.xl, (o) => u.value = o, {
49
+ immediate: W !== "modal"
49
50
  });
50
- const C = O(
51
+ const C = M(
51
52
  () => {
52
- var o, e;
53
- return (u ? (o = U.value) == null ? void 0 : o.selectedSecuritySchemeUids : (e = R.value) == null ? void 0 : e.selectedSecuritySchemeUids) ?? [];
53
+ var o, t;
54
+ return (a ? (o = h.value) == null ? void 0 : o.selectedSecuritySchemeUids : (t = q.value) == null ? void 0 : t.selectedSecuritySchemeUids) ?? [];
54
55
  }
55
- ), B = async () => {
56
- if (!R.value || !v.value || !U.value)
56
+ ), N = async () => {
57
+ if (!q.value || !v.value || !h.value)
57
58
  return;
58
- const o = typeof k.value == "object" ? k.value.value : "{}", e = de.parse(o);
59
- e.error && console.error("INVALID ENVIRONMENT!");
60
- const r = e.error || typeof e.data != "object" ? {} : e.data ?? {}, p = a.value.cookies.map((y) => H[y]), [i, c] = Se({
61
- request: R.value,
59
+ const o = typeof E.value == "object" ? E.value.value : "{}", t = Re.parse(o);
60
+ t.error && console.error("INVALID ENVIRONMENT!");
61
+ const s = t.error || typeof t.data != "object" ? {} : t.data ?? {}, r = x.value.cookies.map((y) => z[y]), [n, c] = we({
62
+ request: q.value,
62
63
  example: v.value,
63
64
  selectedSecuritySchemeUids: C.value,
64
- proxyUrl: a.value.proxyUrl ?? "",
65
- environment: r,
66
- globalCookies: p,
65
+ proxyUrl: x.value.proxyUrl ?? "",
66
+ environment: s,
67
+ globalCookies: r,
67
68
  status: f.requestStatus,
68
- securitySchemes: $,
69
- server: L.value
69
+ securitySchemes: F,
70
+ server: $.value
70
71
  });
71
- if (i) {
72
- w(i.message, "error");
72
+ if (n) {
73
+ k(n.message, "error");
73
74
  return;
74
75
  }
75
- V.value = c.controller;
76
- const [m, q] = await c.sendRequest();
77
- m ? w(m.message, "error") : E.push(q);
78
- }, J = async () => {
76
+ B.value = c.controller;
77
+ const [m, p] = await c.sendRequest();
78
+ m ? k(m.message, "error") : V.push(p);
79
+ }, Y = async () => {
79
80
  var o;
80
- return (o = V.value) == null ? void 0 : o.abort(Re.REQUEST_ABORTED);
81
+ return (o = B.value) == null ? void 0 : o.abort(Ue.REQUEST_ABORTED);
81
82
  };
82
- Z(() => {
83
- f.executeRequest.on(B), f.cancelRequest.on(J);
84
- }), me(), ee(() => f.executeRequest.off(B));
85
- function G({ requestName: o }) {
86
- var r, p, i, c;
87
- if (!t.value) return;
88
- if (t.value.servers) {
89
- const m = Object.values(z).find(
90
- (q) => {
91
- var y, N;
92
- return q.url === ((N = (y = t == null ? void 0 : t.value) == null ? void 0 : y.servers) == null ? void 0 : N[0]);
83
+ le(() => {
84
+ f.executeRequest.on(N), f.cancelRequest.on(Y);
85
+ }), Se(), ue(() => f.executeRequest.off(N));
86
+ function Z({
87
+ requestName: o,
88
+ collectionUid: t
89
+ }) {
90
+ var c, m, p, y, O, g;
91
+ if (!e.value) return;
92
+ const s = j.value.find(
93
+ (S) => S.uid === t
94
+ );
95
+ if (!s) return;
96
+ const r = ((c = s == null ? void 0 : s.info) == null ? void 0 : c.title) === "Drafts";
97
+ if (!r && e.value.servers) {
98
+ const S = Object.values(G).find(
99
+ (oe) => {
100
+ var I, T;
101
+ return oe.url === ((T = (I = e == null ? void 0 : e.value) == null ? void 0 : I.servers) == null ? void 0 : T[0]);
93
102
  }
94
103
  );
95
- m ? h.value = m.uid : h.value = W.add(
96
- { url: t.value.servers[0] },
97
- a.value.collections[0]
104
+ S ? b.value = S.uid : b.value = J.add(
105
+ { url: e.value.servers[0] },
106
+ s.uid
98
107
  ).uid;
99
108
  }
100
- const e = j.add(
109
+ const n = Q.add(
101
110
  {
102
111
  summary: o,
103
- path: (r = t == null ? void 0 : t.value) == null ? void 0 : r.path,
104
- method: (p = t == null ? void 0 : t.value) == null ? void 0 : p.method,
105
- parameters: (i = t == null ? void 0 : t.value) == null ? void 0 : i.parameters,
106
- selectedServerUid: h.value,
107
- requestBody: (c = t == null ? void 0 : t.value) == null ? void 0 : c.requestBody
112
+ path: r ? (m = e == null ? void 0 : e.value) == null ? void 0 : m.url : (p = e == null ? void 0 : e.value) == null ? void 0 : p.path,
113
+ method: (y = e == null ? void 0 : e.value) == null ? void 0 : y.method,
114
+ parameters: (O = e == null ? void 0 : e.value) == null ? void 0 : O.parameters,
115
+ selectedServerUid: r ? void 0 : b.value,
116
+ requestBody: (g = e == null ? void 0 : e.value) == null ? void 0 : g.requestBody
108
117
  },
109
- a.value.collections[0]
118
+ s.uid
110
119
  );
111
- e && D.push(
112
- `/workspace/${a.value.uid}/request/${e.uid}`
113
- ), n.hide();
120
+ n && K.push(
121
+ `/workspace/${x.value.uid}/request/${n.uid}`
122
+ ), i.hide();
114
123
  }
115
- function K(o) {
116
- t.value = ae(o), n.show();
124
+ function ee(o) {
125
+ e.value = de(o), i.show();
117
126
  }
118
- function P(o) {
119
- console.log("hello", o), l.value = o;
127
+ function te(o) {
128
+ console.log("hello", o), u.value = o;
120
129
  }
121
- return (o, e) => (x(), te(oe, null, [
122
- b("div", {
123
- class: g(["flex flex-1 flex-col pt-0 h-full bg-b-1 relative z-0 overflow-hidden", {
124
- "!mr-0 !mb-0 !border-0": s(u)
125
- }])
126
- }, [
127
- b("div", xe, [
128
- d(ye, {
129
- isReadonly: s(u),
130
- showSidebar: l.value,
131
- onNewTab: e[0] || (e[0] = (r) => o.$emit("newTab", r)),
132
- "onUpdate:showSidebar": P
133
- }, null, 8, ["isReadonly", "showSidebar"]),
134
- b("div", be, [
135
- d(ie, {
136
- modelValue: l.value,
137
- "onUpdate:modelValue": e[1] || (e[1] = (r) => l.value = r),
138
- isReadonly: s(u),
139
- onHideModal: e[2] || (e[2] = () => s(n).hide()),
140
- onImportCurl: K
141
- }, null, 8, ["modelValue", "isReadonly"]),
142
- d(se, null, {
143
- default: I(() => [
144
- s(v) ? (x(), T(le, {
145
- key: 0,
146
- class: g(["flex-1", [l.value ? "sidebar-active-hide-layout" : ""]])
147
- }, {
148
- default: I(() => {
149
- var r;
150
- return [
151
- d(ne, { selectedSecuritySchemeUids: C.value }, null, 8, ["selectedSecuritySchemeUids"]),
152
- d(ce, {
153
- response: (r = F.value) == null ? void 0 : r.response
154
- }, null, 8, ["response"])
155
- ];
156
- }),
157
- _: 1
158
- }, 8, ["class"])) : M("", !0)
159
- ]),
160
- _: 1
161
- })
130
+ return (o, t) => {
131
+ var s;
132
+ return w(), ae(ie, null, [
133
+ U("div", {
134
+ class: _(["flex flex-1 flex-col pt-0 h-full bg-b-1 relative z-0 overflow-hidden", {
135
+ "!mr-0 !mb-0 !border-0": l(a)
136
+ }])
137
+ }, [
138
+ U("div", Ve, [
139
+ d(be, {
140
+ isReadonly: l(a),
141
+ showSidebar: u.value,
142
+ onNewTab: t[0] || (t[0] = (r) => o.$emit("newTab", r)),
143
+ "onUpdate:showSidebar": te
144
+ }, null, 8, ["isReadonly", "showSidebar"]),
145
+ U("div", Be, [
146
+ d(pe, {
147
+ modelValue: u.value,
148
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => u.value = r),
149
+ isReadonly: l(a),
150
+ onHideModal: t[2] || (t[2] = () => l(i).hide()),
151
+ onImportCurl: ee
152
+ }, null, 8, ["modelValue", "isReadonly"]),
153
+ d(ce, null, {
154
+ default: A(() => [
155
+ l(v) ? (w(), L(me, {
156
+ key: 0,
157
+ class: _(["flex-1", [u.value ? "sidebar-active-hide-layout" : ""]])
158
+ }, {
159
+ default: A(() => {
160
+ var r;
161
+ return [
162
+ d(fe, { selectedSecuritySchemeUids: C.value }, null, 8, ["selectedSecuritySchemeUids"]),
163
+ d(ye, {
164
+ response: (r = P.value) == null ? void 0 : r.response
165
+ }, null, 8, ["response"])
166
+ ];
167
+ }),
168
+ _: 1
169
+ }, 8, ["class"])) : D("", !0)
170
+ ]),
171
+ _: 1
172
+ })
173
+ ])
162
174
  ])
163
- ])
164
- ], 2),
165
- t.value ? (x(), T(re, {
166
- key: 0,
167
- parsedCurl: t.value,
168
- state: s(n),
169
- onClose: e[3] || (e[3] = (r) => s(n).hide()),
170
- onImportCurl: G
171
- }, null, 8, ["parsedCurl", "state"])) : M("", !0)
172
- ], 64));
175
+ ], 2),
176
+ e.value ? (w(), L(ne, {
177
+ key: 0,
178
+ collectionUid: ((s = l(h)) == null ? void 0 : s.uid) ?? "",
179
+ parsedCurl: e.value,
180
+ state: l(i),
181
+ onClose: t[3] || (t[3] = (r) => l(i).hide()),
182
+ onImportCurl: Z
183
+ }, null, 8, ["collectionUid", "parsedCurl", "state"])) : D("", !0)
184
+ ], 64);
185
+ };
173
186
  }
174
187
  });
175
188
  export {
176
- ze as default
189
+ Ke as default
177
190
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AA+LA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,iCAAiC,CAAA;AAKxC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;CAC7C,CAAC;;AAmSF,wBAOG"}
1
+ {"version":3,"file":"RequestParams.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestParams.vue"],"names":[],"mappings":"AA4MA,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,iCAAiC,CAAA;AAKxC,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,CAAA;CAC7C,CAAC;;AAqUF,wBAOG"}
@@ -1,124 +1,137 @@
1
- import { defineComponent as $, computed as y, onMounted as w, ref as x, watch as E, openBlock as A, createBlock as S, withCtx as i, createTextVNode as h, toDisplayString as g, createElementVNode as c, createVNode as R, unref as T, withModifiers as B, nextTick as k } from "vue";
2
- import M from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
3
- import { useActiveEntities as N } from "../../../store/active-entities.js";
4
- import V from "./RequestTable.vue.js";
5
- import { ScalarButton as W } from "@scalar/components";
6
- import { requestExampleParametersSchema as _ } from "@scalar/oas-utils/entities/spec";
7
- import { useWorkspace as z } from "../../../store/store.js";
8
- const D = { class: "text-c-2 flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 has-[:focus-visible]:opacity-100 request-meta-buttons" }, U = { class: "sr-only" }, Y = /* @__PURE__ */ $({
1
+ import { defineComponent as K, computed as y, onMounted as $, ref as E, watch as S, openBlock as T, createBlock as A, withCtx as n, createTextVNode as h, toDisplayString as x, createElementVNode as o, createVNode as f, unref as R, withModifiers as z, nextTick as k } from "vue";
2
+ import B from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
3
+ import { useActiveEntities as M } from "../../../store/active-entities.js";
4
+ import N from "./RequestTable.vue.js";
5
+ import { ScalarTooltip as V, ScalarButton as W } from "@scalar/components";
6
+ import { requestExampleParametersSchema as b } from "@scalar/oas-utils/entities/spec";
7
+ import { useWorkspace as D } from "../../../store/store.js";
8
+ const O = { class: "text-c-2 flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 has-[:focus-visible]:opacity-100 request-meta-buttons" }, U = { class: "sr-only" }, Z = /* @__PURE__ */ K({
9
9
  __name: "RequestParams",
10
10
  props: {
11
11
  title: {},
12
12
  paramKey: {}
13
13
  },
14
- setup(b) {
15
- const r = b, { activeRequest: o, activeExample: a } = N(), { requestExampleMutators: n } = z(), l = y(
14
+ setup(_) {
15
+ const r = _, { activeRequest: u, activeExample: a } = M(), { requestExampleMutators: i } = D(), l = y(
16
16
  () => {
17
17
  var e;
18
18
  return ((e = a.value) == null ? void 0 : e.parameters[r.paramKey]) ?? [];
19
19
  }
20
20
  );
21
- w(() => {
22
- f();
21
+ $(() => {
22
+ v();
23
23
  });
24
- const u = () => {
25
- if (!o.value || !a.value) return;
26
- const e = _.parse({ enabled: !1 }), t = [...l.value, e];
27
- n.edit(
24
+ const p = () => {
25
+ if (!u.value || !a.value) return;
26
+ const e = b.parse({ enabled: !1 }), t = [...l.value, e];
27
+ i.edit(
28
28
  a.value.uid,
29
29
  `parameters.${r.paramKey}`,
30
30
  t
31
31
  );
32
- }, p = x(null), q = (e, t, v) => {
33
- if (!o.value || !a.value) return;
34
- const m = l.value;
35
- if (m.length > e) {
36
- const s = [...m];
37
- s[e] = { ...s[e], [t]: v }, (s[e].key !== "" || s[e].value !== "") && (s[e].enabled = !0), s[e].key === "" && s[e].value === "" && s.splice(e, 1), n.edit(
32
+ }, m = E(null), q = (e, t, d) => {
33
+ if (!u.value || !a.value) return;
34
+ const c = l.value;
35
+ if (c.length > e) {
36
+ const s = [...c];
37
+ s[e] = { ...s[e], [t]: d }, (s[e].key !== "" || s[e].value !== "") && (s[e].enabled = !0), s[e].key === "" && s[e].value === "" && s.splice(e, 1), i.edit(
38
38
  a.value.uid,
39
39
  `parameters.${r.paramKey}`,
40
40
  s
41
41
  );
42
42
  } else {
43
- const s = [_.parse({ [t]: v })];
44
- n.edit(
43
+ const s = [b.parse({ [t]: d })];
44
+ i.edit(
45
45
  a.value.uid,
46
46
  `parameters.${r.paramKey}`,
47
47
  s
48
48
  ), k(() => {
49
- var d;
50
- if (!p.value) return;
51
- (d = p.value.querySelectorAll("input")[t === "key" ? 0 : 1]) == null || d.focus();
49
+ var g;
50
+ if (!m.value) return;
51
+ (g = m.value.querySelectorAll("input")[t === "key" ? 0 : 1]) == null || g.focus();
52
52
  });
53
53
  }
54
- e === m.length - 1 && u();
55
- }, P = (e, t) => o.value && a.value && n.edit(
54
+ e === c.length - 1 && p();
55
+ }, w = (e, t) => u.value && a.value && i.edit(
56
56
  a.value.uid,
57
57
  `parameters.${r.paramKey}.${e}.enabled`,
58
58
  t
59
59
  ), C = () => {
60
- if (!o.value || !a.value) return;
61
- const e = l.value.filter(
62
- (t) => t.enabled || t.required
63
- );
64
- n.edit(
60
+ if (!u.value || !a.value) return;
61
+ const e = l.value.filter((t) => t.required);
62
+ i.edit(
65
63
  a.value.uid,
66
64
  `parameters.${r.paramKey}`,
67
65
  e
68
66
  ), k(() => {
69
- u();
67
+ p();
70
68
  });
71
69
  };
72
- function f() {
70
+ function v() {
73
71
  if (l.value.length === 0)
74
- u();
72
+ p();
75
73
  else if (l.value.length >= 1) {
76
74
  const e = l.value[l.value.length - 1];
77
- e.key !== "" && e.value !== "" && u();
75
+ e.key !== "" && e.value !== "" && p();
78
76
  }
79
77
  }
80
- const K = y(
78
+ const P = y(
81
79
  () => l.value.filter((e) => e.key || e.value).length
82
80
  );
83
- return E(
81
+ return S(
84
82
  () => a.value,
85
83
  (e, t) => {
86
- e !== t && f();
84
+ e !== t && v();
87
85
  },
88
86
  { immediate: !0 }
89
- ), (e, t) => (A(), S(M, {
87
+ ), (e, t) => (T(), A(B, {
90
88
  class: "group/params",
91
- itemCount: K.value
89
+ itemCount: P.value
92
90
  }, {
93
- title: i(() => [
94
- h(g(e.title), 1)
91
+ title: n(() => [
92
+ h(x(e.title), 1)
95
93
  ]),
96
- actions: i(() => [
97
- c("div", D, [
98
- R(T(W), {
99
- class: "px-1 transition-none",
100
- size: "sm",
101
- variant: "ghost",
102
- onClick: B(C, ["stop"])
94
+ actions: n(() => [
95
+ o("div", O, [
96
+ f(R(V), {
97
+ side: "right",
98
+ sideOffset: 12
103
99
  }, {
104
- default: i(() => [
105
- t[0] || (t[0] = h(" Clear")),
106
- c("span", U, "All " + g(e.title), 1)
100
+ trigger: n(() => [
101
+ f(R(W), {
102
+ class: "px-1 transition-none",
103
+ size: "sm",
104
+ variant: "ghost",
105
+ onClick: z(C, ["stop"])
106
+ }, {
107
+ default: n(() => [
108
+ t[0] || (t[0] = h(" Clear ")),
109
+ o("span", U, "All " + x(e.title), 1)
110
+ ]),
111
+ _: 1
112
+ })
107
113
  ]),
114
+ content: n(() => t[1] || (t[1] = [
115
+ o("div", { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-context p-2 text-xxs leading-5 z-10 text-c-1" }, [
116
+ o("div", { class: "flex items-center text-c-2" }, [
117
+ o("span", null, "Clear optional parameters")
118
+ ])
119
+ ], -1)
120
+ ])),
108
121
  _: 1
109
122
  })
110
123
  ])
111
124
  ]),
112
- default: i(() => [
113
- c("div", {
125
+ default: n(() => [
126
+ o("div", {
114
127
  ref_key: "tableWrapperRef",
115
- ref: p
128
+ ref: m
116
129
  }, [
117
- R(V, {
130
+ f(N, {
118
131
  class: "flex-1",
119
132
  columns: ["32px", "", ""],
120
133
  items: l.value,
121
- onToggleRow: P,
134
+ onToggleRow: w,
122
135
  onUpdateRow: q
123
136
  }, null, 8, ["items"])
124
137
  ], 512)
@@ -128,5 +141,5 @@ const D = { class: "text-c-2 flex whitespace-nowrap opacity-0 group-hover/params
128
141
  }
129
142
  });
130
143
  export {
131
- Y as default
144
+ Z as default
132
145
  };
@@ -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.19";
20
+ }, h = "2.2.21";
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.19",
21
+ "version": "2.2.21",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -169,18 +169,18 @@
169
169
  "whatwg-mimetype": "^4.0.0",
170
170
  "yaml": "^2.4.5",
171
171
  "zod": "^3.23.8",
172
- "@scalar/components": "0.13.9",
173
- "@scalar/draggable": "0.1.7",
174
- "@scalar/icons": "0.1.2",
172
+ "@scalar/components": "0.13.10",
173
+ "@scalar/draggable": "0.1.8",
175
174
  "@scalar/import": "0.2.11",
175
+ "@scalar/icons": "0.1.2",
176
+ "@scalar/object-utils": "1.1.12",
176
177
  "@scalar/openapi-parser": "0.10.2",
177
178
  "@scalar/oas-utils": "0.2.91",
178
- "@scalar/object-utils": "1.1.12",
179
179
  "@scalar/openapi-types": "0.1.5",
180
180
  "@scalar/postman-to-openapi": "0.1.14",
181
181
  "@scalar/themes": "0.9.58",
182
182
  "@scalar/types": "0.0.25",
183
- "@scalar/use-codemirror": "0.11.53",
183
+ "@scalar/use-codemirror": "0.11.54",
184
184
  "@scalar/use-hooks": "0.1.11",
185
185
  "@scalar/use-tooltip": "1.0.4",
186
186
  "@scalar/use-toasts": "0.7.7"