@scalar/api-client 2.3.2 → 2.3.4

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 (39) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/components/CodeInput/CodeInput.test.d.ts +2 -0
  3. package/dist/components/CodeInput/CodeInput.test.d.ts.map +1 -0
  4. package/dist/components/CodeInput/CodeInput.vue.d.ts +8 -0
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  7. package/dist/components/CodeInput/CodeInput.vue2.js +86 -80
  8. package/dist/components/DataTable/DataTableInput.vue.d.ts +13 -1
  9. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  10. package/dist/layouts/App/create-api-client-app.d.ts +3 -3
  11. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  12. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  13. package/dist/layouts/Modal/ApiClientModal.vue2.js +27 -28
  14. package/dist/layouts/Modal/create-api-client-modal.d.ts +6 -6
  15. package/dist/layouts/Web/create-api-client-web.d.ts +3 -3
  16. package/dist/libs/create-client.d.ts +3 -3
  17. package/dist/libs/create-client.d.ts.map +1 -1
  18. package/dist/libs/create-client.js +53 -54
  19. package/dist/libs/create-client.test.d.ts +2 -0
  20. package/dist/libs/create-client.test.d.ts.map +1 -0
  21. package/dist/store/import-spec.d.ts.map +1 -1
  22. package/dist/store/store.d.ts +14 -35
  23. package/dist/store/store.d.ts.map +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  26. package/dist/views/Request/RequestRoot.vue.js +1 -1
  27. package/dist/views/Request/RequestRoot.vue2.js +50 -55
  28. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
  29. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +1 -1
  30. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  31. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  32. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +60 -62
  33. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  34. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  35. package/dist/views/Request/RequestSidebar.vue2.js +142 -141
  36. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  37. package/dist/vitest.setup.d.ts +4 -0
  38. package/dist/vitest.setup.d.ts.map +1 -1
  39. package/package.json +12 -12
@@ -1,85 +1,86 @@
1
- import { defineComponent as ve, useId as be, reactive as ge, ref as Se, watch as W, onMounted as ke, onBeforeUnmount as Re, computed as A, openBlock as l, createElementBlock as k, Fragment as D, withDirectives as H, createVNode as p, unref as t, normalizeClass as v, createSlots as ye, withCtx as d, createElementVNode as n, createBlock as u, createCommentVNode as b, toDisplayString as K, isRef as xe, withKeys as $, withModifiers as g, vShow as B, renderList as U, createTextVNode as q, nextTick as we } from "vue";
2
- import { ScalarIcon as M, ScalarSearchInput as Ie, ScalarSearchResultList as Ce, ScalarSearchResultItem as De, ScalarButton as $e } from "@scalar/components";
3
- import { LibraryIcon as qe } from "@scalar/icons";
4
- import { useToasts as Me } from "@scalar/use-toasts";
5
- import { useRouter as Pe } from "vue-router";
6
- import Te from "../../assets/rabbit.ascii.js";
7
- import _e from "../../assets/rabbitjump.ascii.js";
8
- import Ve from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
9
- import Ee from "../../components/HttpMethod/HttpMethod.vue.js";
10
- import G from "../../components/ScalarAsciiArt.vue.js";
11
- import { useSearch as Le } from "../../components/Search/useSearch.js";
12
- import Ne from "../../components/Sidebar/SidebarButton.vue.js";
13
- import { useLayout as Oe } from "../../hooks/useLayout.js";
14
- import { useSidebar as ze } from "../../hooks/useSidebar.js";
15
- import { PathId as j } from "../../routes.js";
16
- import { useActiveEntities as Fe } from "../../store/active-entities.js";
17
- import { createInitialRequest as We } from "../../store/requests.js";
18
- import { dragHandlerFactory as Ae } from "./handle-drag.js";
19
- import He from "./RequestSidebarItemMenu.vue.js";
20
- import { isGettingStarted as Ke } from "./RequestSection/helpers/getting-started.js";
21
- import Be from "./RequestSidebarItem.vue.js";
22
- import Ue from "../../components/Sidebar/Sidebar.vue.js";
23
- import Ge from "./components/WorkspaceDropdown.vue.js";
24
- import { useWorkspace as je } from "../../store/store.js";
25
- const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe = {
1
+ import { defineComponent as ge, useId as Se, reactive as ke, ref as Re, watch as H, onMounted as ye, onBeforeUnmount as xe, computed as D, openBlock as l, createElementBlock as k, Fragment as $, withDirectives as K, createVNode as p, unref as t, normalizeClass as h, createSlots as we, withCtx as d, createElementVNode as n, createBlock as u, createCommentVNode as b, toDisplayString as B, isRef as Ie, withKeys as q, withModifiers as g, vShow as U, renderList as G, createTextVNode as M, nextTick as Ce } from "vue";
2
+ import { ScalarIcon as P, ScalarSearchInput as De, ScalarSearchResultList as $e, ScalarSearchResultItem as qe, ScalarButton as Me } from "@scalar/components";
3
+ import { LibraryIcon as Pe } from "@scalar/icons";
4
+ import { useToasts as Te } from "@scalar/use-toasts";
5
+ import { useRouter as _e } from "vue-router";
6
+ import Ve from "../../assets/rabbit.ascii.js";
7
+ import Ee from "../../assets/rabbitjump.ascii.js";
8
+ import Le from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
9
+ import Ne from "../../components/HttpMethod/HttpMethod.vue.js";
10
+ import j from "../../components/ScalarAsciiArt.vue.js";
11
+ import { useSearch as Oe } from "../../components/Search/useSearch.js";
12
+ import ze from "../../components/Sidebar/SidebarButton.vue.js";
13
+ import { useLayout as Fe } from "../../hooks/useLayout.js";
14
+ import { useSidebar as We } from "../../hooks/useSidebar.js";
15
+ import { PathId as J } from "../../routes.js";
16
+ import { useActiveEntities as Ae } from "../../store/active-entities.js";
17
+ import { createInitialRequest as He } from "../../store/requests.js";
18
+ import { dragHandlerFactory as Ke } from "./handle-drag.js";
19
+ import Be from "./RequestSidebarItemMenu.vue.js";
20
+ import { isGettingStarted as Ue } from "./RequestSection/helpers/getting-started.js";
21
+ import Ge from "./RequestSidebarItem.vue.js";
22
+ import je from "../../components/Sidebar/Sidebar.vue.js";
23
+ import Je from "./components/WorkspaceDropdown.vue.js";
24
+ import { useWorkspace as Qe } from "../../store/store.js";
25
+ const Xe = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Ye = {
26
26
  key: 1,
27
27
  class: "text-c-3"
28
- }, Xe = ["aria-pressed"], Ye = { class: "sr-only" }, Ze = {
28
+ }, Ze = ["aria-pressed"], et = { class: "sr-only" }, tt = {
29
29
  class: "search-button-fade sticky top-12 z-10 px-3 py-2.5 pt-0 focus-within:z-20",
30
30
  role: "search"
31
- }, et = {
31
+ }, ot = {
32
32
  key: 1,
33
33
  class: "contents"
34
- }, tt = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, ot = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, $t = /* @__PURE__ */ ve({
34
+ }, st = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, at = { class: "rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]" }, Mt = /* @__PURE__ */ ge({
35
35
  __name: "RequestSidebar",
36
36
  emits: ["newTab", "clearDrafts"],
37
- setup(st, { emit: J }) {
38
- const Q = J, {
39
- collapsedSidebarFolders: X,
40
- isSidebarOpen: P,
41
- setCollapsedSidebarFolder: Y,
42
- toggleSidebarOpen: Z
43
- } = ze(), { layout: i } = Oe(), T = je(), {
37
+ setup(rt, { emit: Q }) {
38
+ const X = Q, {
39
+ collapsedSidebarFolders: Y,
40
+ isSidebarOpen: T,
41
+ setCollapsedSidebarFolder: Z,
42
+ toggleSidebarOpen: ee
43
+ } = We(), { layout: i } = Fe(), _ = Qe(), {
44
+ activeCollection: V,
44
45
  activeWorkspaceCollections: c,
45
- activeRequest: ee,
46
- activeWorkspaceRequests: _,
47
- activeWorkspace: te
48
- } = Fe(), { findRequestParents: oe, events: R, requestMutators: V, requests: y } = T, { handleDragEnd: se, isDroppable: ae } = Ae(
49
- te,
50
- T
51
- ), { replace: E } = Pe(), re = () => {
46
+ activeRequest: te,
47
+ activeWorkspaceRequests: E,
48
+ activeWorkspace: oe
49
+ } = Ae(), { findRequestParents: se, events: R, requestMutators: L, requests: y } = _, { handleDragEnd: ae, isDroppable: re } = Ke(
50
+ oe,
51
+ _
52
+ ), { replace: N } = _e(), le = () => {
52
53
  R.commandPalette.emit({
53
54
  commandName: "Import from OpenAPI/Swagger/Postman/cURL"
54
55
  });
55
- }, L = be(), { toast: le } = Me(), S = ge({ open: !1 }), m = Se(!1);
56
- W(
57
- ee,
56
+ }, O = Se(), { toast: ne } = Te(), S = ke({ open: !1 }), m = Re(!1);
57
+ H(
58
+ te,
58
59
  (s) => {
59
- s && oe(s).forEach(
60
- (e) => Y(e, !0)
60
+ s && se(s).forEach(
61
+ (e) => Z(e, !0)
61
62
  );
62
63
  },
63
64
  { immediate: !0 }
64
65
  );
65
66
  const {
66
- searchText: h,
67
+ searchText: v,
67
68
  searchResultsWithPlaceholderResults: x,
68
69
  selectedSearchResult: w,
69
- onSearchResultClick: ne,
70
- fuseSearch: ie,
70
+ onSearchResultClick: ie,
71
+ fuseSearch: ue,
71
72
  searchInputRef: I,
72
- searchResultRefs: ue,
73
- navigateSearchResults: N,
74
- selectSearchResult: ce
75
- } = Le(), O = (s) => {
73
+ searchResultRefs: ce,
74
+ navigateSearchResults: z,
75
+ selectSearchResult: de
76
+ } = Oe(), F = (s) => {
76
77
  var e;
77
- s && (s.toggleSidebar && Z(), s.focusRequestSearch && ((e = I.value) == null || e.focus()));
78
+ s && (s.toggleSidebar && ee(), s.focusRequestSearch && ((e = I.value) == null || e.focus()));
78
79
  };
79
- ke(() => R.hotKeys.on(O)), Re(() => {
80
- R.hotKeys.off(O);
80
+ ye(() => R.hotKeys.on(F)), xe(() => {
81
+ R.hotKeys.off(F);
81
82
  });
82
- const de = (s) => {
83
+ const me = (s) => {
83
84
  if (s != null && s.documentUrl) {
84
85
  s.watchMode = !s.watchMode;
85
86
  const e = c.value.find(
@@ -88,31 +89,31 @@ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe
88
89
  e && (e.watchMode = s.watchMode);
89
90
  }
90
91
  };
91
- W(
92
+ H(
92
93
  () => c.value.map(
93
94
  (s) => s.watchMode
94
95
  ),
95
96
  (s, e) => {
96
97
  s.forEach((o, a) => {
97
- var r, f, z;
98
+ var r, f, W;
98
99
  if (i !== "modal" && o !== e[a] && ((f = (r = c.value[a]) == null ? void 0 : r.info) == null ? void 0 : f.title) !== "Drafts" && c.value[a]) {
99
- const F = c.value[a];
100
- if (!F) return;
101
- const he = `${(z = F.info) == null ? void 0 : z.title}: Watch Mode ${o ? "enabled" : "disabled"}`;
102
- le(he, "info");
100
+ const A = c.value[a];
101
+ if (!A) return;
102
+ const be = `${(W = A.info) == null ? void 0 : W.title}: Watch Mode ${o ? "enabled" : "disabled"}`;
103
+ ne(be, "info");
103
104
  }
104
105
  });
105
106
  }
106
107
  );
107
- const me = A(() => {
108
+ const fe = D(() => {
108
109
  var f;
109
110
  const s = x.value;
110
111
  if (!s.length) return "No results found";
111
112
  const e = (f = s[w.value]) == null ? void 0 : f.item;
112
113
  if (!e) return "No result selected";
113
- const o = h.value.length ? `${s.length} result${s.length === 1 ? "" : "s"} found, ` : "", a = `, HTTP Method ${e.httpVerb}, Path ${e.path}`, r = `${e.title} ${a}`;
114
+ const o = v.value.length ? `${s.length} result${s.length === 1 ? "" : "s"} found, ` : "", a = `, HTTP Method ${e.httpVerb}, Path ${e.path}`, r = `${e.title} ${a}`;
114
115
  return `${o}Selected: ${r}`;
115
- }), fe = () => {
116
+ }), pe = () => {
116
117
  const s = c.value.find(
117
118
  (o) => {
118
119
  var a;
@@ -120,82 +121,82 @@ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe
120
121
  }
121
122
  );
122
123
  if (s && s.requests.forEach((o) => {
123
- y[o] && V.delete(y[o], s.uid);
124
- }), _.value.length) {
124
+ y[o] && L.delete(y[o], s.uid);
125
+ }), E.value.length) {
125
126
  const o = c.value[0], a = o == null ? void 0 : o.requests[0];
126
- a && E({
127
+ a && N({
127
128
  name: "request",
128
129
  params: {
129
- [j.Request]: a
130
+ [J.Request]: a
130
131
  }
131
132
  });
132
133
  } else {
133
- const { request: o } = We();
134
- s && (V.add(o, s.uid), E({
134
+ const { request: o } = He();
135
+ s && (L.add(o, s.uid), N({
135
136
  name: "request",
136
137
  params: {
137
- [j.Request]: o.uid
138
+ [J.Request]: o.uid
138
139
  }
139
140
  }));
140
141
  }
141
- }, pe = () => {
142
- m.value = !m.value, m.value || (h.value = ""), m.value && we(() => {
142
+ }, ve = () => {
143
+ m.value = !m.value, m.value || (v.value = ""), m.value && Ce(() => {
143
144
  var s;
144
145
  return (s = I.value) == null ? void 0 : s.focus();
145
146
  });
146
- }, C = A(
147
- () => Ke(
147
+ }, C = D(
148
+ () => Ue(
148
149
  c.value,
149
- _.value,
150
+ E.value,
150
151
  y
151
152
  )
152
- );
153
- return (s, e) => (l(), k(D, null, [
154
- H(p(t(Ue), {
155
- class: v([t(P) ? "sidebar-active-width" : ""])
156
- }, ye({
153
+ ), he = D(() => i === "modal" && V.value ? [V.value] : c.value);
154
+ return (s, e) => (l(), k($, null, [
155
+ K(p(t(je), {
156
+ class: h([t(T) ? "sidebar-active-width" : ""])
157
+ }, we({
157
158
  content: d(() => [
158
- n("div", Je, [
159
+ n("div", Xe, [
159
160
  n("div", {
160
- class: v(["size-8", { "xl:hidden": t(i) !== "modal" }])
161
+ class: h(["size-8", { "xl:hidden": t(i) !== "modal" }])
161
162
  }, null, 2),
162
- t(i) !== "modal" ? (l(), u(t(Ge), { key: 0 })) : b("", !0),
163
- t(i) !== "modal" ? (l(), k("span", Qe, " / ")) : b("", !0),
164
- t(i) !== "modal" ? (l(), u(Ve, { key: 2 })) : b("", !0),
163
+ t(i) !== "modal" ? (l(), u(t(Je), { key: 0 })) : b("", !0),
164
+ t(i) !== "modal" ? (l(), k("span", Ye, " / ")) : b("", !0),
165
+ t(i) !== "modal" ? (l(), u(Le, { key: 2 })) : b("", !0),
165
166
  n("button", {
166
167
  "aria-pressed": m.value,
167
168
  class: "ml-auto",
168
169
  type: "button",
169
- onClick: pe
170
+ onClick: ve
170
171
  }, [
171
- n("span", Ye, K(m.value ? "Hide" : "Show") + " search ", 1),
172
- p(t(M), {
172
+ n("span", et, B(m.value ? "Hide" : "Show") + " search ", 1),
173
+ p(t(P), {
173
174
  class: "text-c-3 hover:bg-b-2 p-1.75 max-h-8 max-w-8 rounded-lg text-sm",
174
175
  icon: "Search"
175
176
  })
176
- ], 8, Xe)
177
+ ], 8, Ze)
177
178
  ]),
178
- H(n("div", Ze, [
179
- p(t(Ie), {
179
+ K(n("div", tt, [
180
+ p(t(De), {
180
181
  ref_key: "searchInputRef",
181
182
  ref: I,
182
- modelValue: t(h),
183
- "onUpdate:modelValue": e[0] || (e[0] = (o) => xe(h) ? h.value = o : null),
184
- "aria-controls": t(L),
185
- label: me.value,
183
+ modelValue: t(v),
184
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => Ie(v) ? v.value = o : null),
185
+ "aria-controls": t(O),
186
+ label: fe.value,
186
187
  sidebar: "",
187
- onInput: t(ie),
188
+ onInput: t(ue),
188
189
  onKeydown: [
189
- e[1] || (e[1] = $(g((o) => t(N)("down"), ["stop"]), ["down"])),
190
- e[2] || (e[2] = $(g((o) => t(ce)(), ["stop"]), ["enter"])),
191
- e[3] || (e[3] = $(g((o) => t(N)("up"), ["stop"]), ["up"]))
190
+ e[1] || (e[1] = q(g((o) => t(z)("down"), ["stop"]), ["down"])),
191
+ e[2] || (e[2] = q(g((o) => t(de)(), ["stop"]), ["enter"])),
192
+ e[3] || (e[3] = q(g((o) => t(z)("up"), ["stop"]), ["up"]))
192
193
  ]
193
194
  }, null, 8, ["modelValue", "aria-controls", "label", "onInput"])
194
195
  ], 512), [
195
- [B, m.value]
196
+ [U, m.value]
196
197
  ]),
197
198
  n("div", {
198
- class: v(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pb-3 pt-0", [
199
+ class: h(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pb-3 pt-0", [
199
200
  {
200
201
  "pb-14": t(i) !== "modal"
201
202
  },
@@ -208,72 +209,72 @@ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe
208
209
  onDragover: e[7] || (e[7] = g(() => {
209
210
  }, ["prevent"]))
210
211
  }, [
211
- t(h) ? (l(), u(t(Ce), {
212
+ t(v) ? (l(), u(t($e), {
212
213
  key: 0,
213
- id: t(L),
214
+ id: t(O),
214
215
  "aria-label": "Search Results",
215
216
  class: "gap-px",
216
217
  noResults: !t(x).length
217
218
  }, {
218
219
  default: d(() => [
219
- (l(!0), k(D, null, U(t(x), (o, a) => (l(), u(t(De), {
220
+ (l(!0), k($, null, G(t(x), (o, a) => (l(), u(t(qe), {
220
221
  id: `#search-input-${o.item.id}`,
221
222
  key: o.refIndex,
222
223
  ref_for: !0,
223
- ref: (r) => t(ue)[a] = r,
224
+ ref: (r) => t(ce)[a] = r,
224
225
  active: t(w) === a,
225
226
  class: "px-2",
226
227
  href: o.item.link,
227
- onClick: g((r) => t(ne)(o), ["prevent"]),
228
+ onClick: g((r) => t(ie)(o), ["prevent"]),
228
229
  onFocus: (r) => w.value = a
229
230
  }, {
230
231
  addon: d(() => [
231
232
  e[9] || (e[9] = n("span", { class: "sr-only" }, "HTTP Method:", -1)),
232
- p(Ee, {
233
+ p(Ne, {
233
234
  class: "font-bold",
234
235
  method: o.item.httpVerb ?? "get"
235
236
  }, null, 8, ["method"])
236
237
  ]),
237
238
  default: d(() => [
238
- q(K(o.item.title) + " ", 1)
239
+ M(B(o.item.title) + " ", 1)
239
240
  ]),
240
241
  _: 2
241
242
  }, 1032, ["id", "active", "href", "onClick", "onFocus"]))), 128))
242
243
  ]),
243
244
  _: 1
244
- }, 8, ["id", "noResults"])) : (l(), k("nav", et, [
245
- (l(!0), k(D, null, U(t(c), (o) => {
245
+ }, 8, ["id", "noResults"])) : (l(), k("nav", ot, [
246
+ (l(!0), k($, null, G(he.value, (o) => {
246
247
  var a;
247
- return l(), u(Be, {
248
+ return l(), u(Ge, {
248
249
  key: o.uid,
249
250
  isDraggable: t(i) !== "modal" && ((a = o.info) == null ? void 0 : a.title) !== "Drafts",
250
- isDroppable: t(ae),
251
+ isDroppable: t(re),
251
252
  menuItem: S,
252
253
  parentUids: [],
253
254
  uid: o.uid,
254
- onNewTab: e[4] || (e[4] = (r, f) => Q("newTab", { name: r, uid: f })),
255
- onOnDragEnd: t(se),
255
+ onNewTab: e[4] || (e[4] = (r, f) => X("newTab", { name: r, uid: f })),
256
+ onOnDragEnd: t(ae),
256
257
  onOpenMenu: e[5] || (e[5] = (r) => Object.assign(S, r))
257
258
  }, {
258
259
  leftIcon: d(() => {
259
260
  var r;
260
261
  return [
261
- ((r = o.info) == null ? void 0 : r.title) === "Drafts" ? (l(), u(t(M), {
262
+ ((r = o.info) == null ? void 0 : r.title) === "Drafts" ? (l(), u(t(P), {
262
263
  key: 0,
263
264
  class: "text-sidebar-c-2 group-hover:hidden",
264
265
  icon: "Scribble",
265
266
  thickness: "2.25"
266
- })) : (l(), u(t(qe), {
267
+ })) : (l(), u(t(Pe), {
267
268
  key: 1,
268
269
  class: "text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",
269
270
  src: o["x-scalar-icon"] || "interface-content-folder"
270
271
  }, null, 8, ["src"])),
271
272
  n("div", {
272
- class: v({
273
- "rotate-90": t(X)[o.uid]
273
+ class: h({
274
+ "rotate-90": t(Y)[o.uid]
274
275
  })
275
276
  }, [
276
- p(t(M), {
277
+ p(t(P), {
277
278
  class: "text-c-3 hover:text-c-1 hidden text-sm group-hover:block",
278
279
  icon: "ChevronRight",
279
280
  size: "md"
@@ -289,18 +290,18 @@ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe
289
290
  ]),
290
291
  button: d(() => [
291
292
  n("div", {
292
- class: v({
293
+ class: h({
293
294
  "empty-sidebar-item": C.value
294
295
  })
295
296
  }, [
296
- n("div", tt, [
297
- n("div", ot, [
298
- p(G, {
299
- art: t(Te),
297
+ n("div", st, [
298
+ n("div", at, [
299
+ p(j, {
300
+ art: t(Ve),
300
301
  class: "rabbitsit font-bold"
301
302
  }, null, 8, ["art"]),
302
- p(G, {
303
- art: t(_e),
303
+ p(j, {
304
+ art: t(Ee),
304
305
  class: "rabbitjump absolute left-0 top-0 font-bold"
305
306
  }, null, 8, ["art"])
306
307
  ]),
@@ -309,25 +310,25 @@ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe
309
310
  n("p", { class: "mt-2" }, " Create request, folder, collection or import from OpenAPI/Postman ")
310
311
  ], -1))
311
312
  ]),
312
- t(i) !== "modal" ? (l(), u(t($e), {
313
+ t(i) !== "modal" ? (l(), u(t(Me), {
313
314
  key: 0,
314
- class: v(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0", {
315
+ class: h(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0", {
315
316
  "flex opacity-100": C.value
316
317
  }]),
317
- onClick: re
318
+ onClick: le
318
319
  }, {
319
320
  default: d(() => e[11] || (e[11] = [
320
- q(" Import Collection ")
321
+ M(" Import Collection ")
321
322
  ])),
322
323
  _: 1
323
324
  }, 8, ["class"])) : b("", !0),
324
- t(i) !== "modal" ? (l(), u(Ne, {
325
+ t(i) !== "modal" ? (l(), u(ze, {
325
326
  key: 1,
326
327
  click: t(R).commandPalette.emit,
327
328
  hotkey: "K"
328
329
  }, {
329
330
  title: d(() => e[12] || (e[12] = [
330
- q(" Add Item ")
331
+ M(" Add Item ")
331
332
  ])),
332
333
  _: 1
333
334
  }, 8, ["click"])) : b("", !0)
@@ -341,18 +342,18 @@ const Je = { class: "bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3" }, Qe
341
342
  key: "0"
342
343
  } : void 0
343
344
  ]), 1032, ["class"]), [
344
- [B, t(P)]
345
+ [U, t(T)]
345
346
  ]),
346
- t(i) !== "modal" && S ? (l(), u(He, {
347
+ t(i) !== "modal" && S ? (l(), u(Be, {
347
348
  key: 0,
348
349
  menuItem: S,
349
- onClearDrafts: fe,
350
+ onClearDrafts: pe,
350
351
  onCloseMenu: e[8] || (e[8] = (o) => S.open = !1),
351
- onToggleWatchMode: de
352
+ onToggleWatchMode: me
352
353
  }, null, 8, ["menuItem"])) : b("", !0)
353
354
  ], 64));
354
355
  }
355
356
  });
356
357
  export {
357
- $t as default
358
+ Mt as default
358
359
  };
@@ -36,7 +36,7 @@ const P = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, T = {
36
36
  }));
37
37
  }, y = (s) => {
38
38
  s != null && s.createNew && w.name === "request" && k();
39
- }, N = "2.3.2";
39
+ }, N = "2.3.4";
40
40
  return B(() => r.hotKeys.on(y)), E(() => r.hotKeys.off(y)), (s, e) => (u(), i("div", P, [
41
41
  o("div", {
42
42
  class: q(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
@@ -13,4 +13,8 @@ export declare const resetConsoleSpies: () => void;
13
13
  export declare const enableConsoleWarn: () => boolean;
14
14
  /** Helper to disable console warn checks */
15
15
  export declare const disableConsoleWarn: () => boolean;
16
+ /** Helper to enable console error checks */
17
+ export declare const enableConsoleError: () => boolean;
18
+ /** Helper to disable console error checks */
19
+ export declare const disableConsoleError: () => boolean;
16
20
  //# sourceMappingURL=vitest.setup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vitest.setup.d.ts","sourceRoot":"","sources":["../src/vitest.setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAqC,KAAK,IAAI,EAAE,MAAM,QAAQ,CAAA;AAOrE,eAAO,MAAM,aAAa,EAAgB,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAA;AAMhF,eAAO,MAAM,cAAc,EAAiB,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAA;AAEnF,0BAA0B;AAC1B,eAAO,MAAM,cAAc,gFAA4B,CAAA;AAGvD,2BAA2B;AAC3B,eAAO,MAAM,eAAe,gFAA6B,CAAA;AAEzD,sBAAsB;AACtB,eAAO,MAAM,iBAAiB,YAG7B,CAAA;AAED,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,eAAsC,CAAA;AAEpE,4CAA4C;AAC5C,eAAO,MAAM,kBAAkB,eAAuC,CAAA"}
1
+ {"version":3,"file":"vitest.setup.d.ts","sourceRoot":"","sources":["../src/vitest.setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAqC,KAAK,IAAI,EAAE,MAAM,QAAQ,CAAA;AAOrE,eAAO,MAAM,aAAa,EAAgB,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAA;AAMhF,eAAO,MAAM,cAAc,EAAiB,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAA;AAEnF,0BAA0B;AAC1B,eAAO,MAAM,cAAc,gFAA4B,CAAA;AAGvD,2BAA2B;AAC3B,eAAO,MAAM,eAAe,gFAA6B,CAAA;AAGzD,sBAAsB;AACtB,eAAO,MAAM,iBAAiB,YAG7B,CAAA;AAED,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,eAAsC,CAAA;AAEpE,4CAA4C;AAC5C,eAAO,MAAM,kBAAkB,eAAuC,CAAA;AAEtE,4CAA4C;AAC5C,eAAO,MAAM,kBAAkB,eAAuC,CAAA;AAEtE,6CAA6C;AAC7C,eAAO,MAAM,mBAAmB,eAAwC,CAAA"}
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.3.2",
21
+ "version": "2.3.4",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -188,20 +188,20 @@
188
188
  "whatwg-mimetype": "^4.0.0",
189
189
  "yaml": "^2.4.5",
190
190
  "zod": "^3.23.8",
191
- "@scalar/components": "0.13.36",
191
+ "@scalar/icons": "0.1.3",
192
+ "@scalar/components": "0.13.37",
193
+ "@scalar/import": "0.3.2",
192
194
  "@scalar/draggable": "0.1.11",
193
- "@scalar/import": "0.3.1",
195
+ "@scalar/oas-utils": "0.2.120",
194
196
  "@scalar/object-utils": "1.1.13",
195
- "@scalar/icons": "0.1.3",
196
- "@scalar/oas-utils": "0.2.119",
197
197
  "@scalar/openapi-parser": "0.10.10",
198
198
  "@scalar/openapi-types": "0.1.9",
199
- "@scalar/postman-to-openapi": "0.1.42",
199
+ "@scalar/postman-to-openapi": "0.1.43",
200
200
  "@scalar/snippetz": "0.2.16",
201
- "@scalar/themes": "0.9.78",
202
- "@scalar/types": "0.1.0",
203
- "@scalar/use-codemirror": "0.11.81",
204
- "@scalar/use-hooks": "0.1.32",
201
+ "@scalar/themes": "0.9.79",
202
+ "@scalar/types": "0.1.1",
203
+ "@scalar/use-codemirror": "0.11.82",
204
+ "@scalar/use-hooks": "0.1.33",
205
205
  "@scalar/use-toasts": "0.7.9",
206
206
  "@scalar/use-tooltip": "1.0.6"
207
207
  },
@@ -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/build-tooling": "0.1.17",
223
- "@scalar/galaxy": "0.2.24"
222
+ "@scalar/galaxy": "0.2.24",
223
+ "@scalar/build-tooling": "0.1.17"
224
224
  },
225
225
  "scripts": {
226
226
  "build": "scalar-build-vite",