@scalar/api-client 2.1.12 → 2.1.14

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 (34) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBarServer.vue.js +18 -18
  4. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +4 -0
  5. package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
  6. package/dist/components/CommandPalette/CommandActionInput.vue.js +29 -24
  7. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  8. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +90 -49
  9. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  10. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  11. package/dist/components/Sidebar/Sidebar.vue2.js +25 -20
  12. package/dist/libs/getOpenApiDocumentVersion.d.ts +8 -0
  13. package/dist/libs/getOpenApiDocumentVersion.d.ts.map +1 -0
  14. package/dist/libs/getOpenApiDocumentVersion.js +20 -0
  15. package/dist/libs/index.d.ts +3 -0
  16. package/dist/libs/index.d.ts.map +1 -1
  17. package/dist/libs/index.js +29 -23
  18. package/dist/libs/isDocument.d.ts +3 -0
  19. package/dist/libs/isDocument.d.ts.map +1 -0
  20. package/dist/libs/isDocument.js +7 -0
  21. package/dist/libs/isUrl.d.ts +3 -0
  22. package/dist/libs/isUrl.d.ts.map +1 -0
  23. package/dist/libs/isUrl.js +6 -0
  24. package/dist/libs/send-request.js +41 -41
  25. package/dist/store/store.d.ts.map +1 -1
  26. package/dist/store/store.js +65 -65
  27. package/dist/style.css +1 -1
  28. package/dist/views/Request/RequestSection/RequestSection.vue.js +39 -39
  29. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  30. package/dist/views/Request/RequestSidebar.vue.js +3 -3
  31. package/dist/views/Request/RequestSidebar.vue2.js +49 -50
  32. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  33. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  34. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
- import { defineComponent as B, computed as _, ref as g, watch as R, openBlock as m, createBlock as C, withCtx as x, createVNode as n, unref as a, createElementVNode as A, createTextVNode as w, createElementBlock as d, createCommentVNode as H, toDisplayString as N, withDirectives as r, vShow as u } from "vue";
2
- import V from "../../../components/ContextBar.vue.js";
3
- import b from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
1
+ import { defineComponent as B, computed as _, ref as g, watch as V, openBlock as m, createBlock as b, withCtx as x, createVNode as s, unref as o, createElementVNode as A, createTextVNode as C, createElementBlock as d, createCommentVNode as w, toDisplayString as H, withDirectives as n, vShow as i } from "vue";
2
+ import N from "../../../components/ContextBar.vue.js";
3
+ import R from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
4
  import E from "./RequestBody.vue.js";
5
5
  import v from "./RequestParams.vue.js";
6
6
  import K from "./RequestPathParams.vue.js";
@@ -18,102 +18,102 @@ const I = { class: "flex-1 flex gap-1 items-center lg:pr-24 pointer-events-none"
18
18
  }, L = { class: "request-section-content custom-scroll flex flex-1 flex-col px-2 xl:px-5 py-2.5" }, ee = /* @__PURE__ */ B({
19
19
  __name: "RequestSection",
20
20
  setup(O) {
21
- const { activeRequest: o, activeExample: h, isReadOnly: p, requestMutators: k } = D(), q = _(() => {
22
- var l, s;
21
+ const { activeRequest: a, activeExample: h, isReadOnly: p, requestMutators: k } = D(), S = _(() => {
22
+ var l, r;
23
23
  const t = /* @__PURE__ */ new Set([
24
+ "All",
24
25
  "Query",
25
26
  "Auth",
26
- "Request",
27
+ "Variables",
27
28
  "Cookies",
28
29
  "Headers",
29
- "Body",
30
- "All"
30
+ "Body"
31
31
  ]);
32
- return (l = h.value) != null && l.parameters.path.length || t.delete("Request"), f(((s = o.value) == null ? void 0 : s.method) ?? "get") || t.delete("Body"), y.value && t.delete("Auth"), [...t];
32
+ return (l = h.value) != null && l.parameters.path.length || t.delete("Variables"), f(((r = a.value) == null ? void 0 : r.method) ?? "get") || t.delete("Body"), y.value && t.delete("Auth"), [...t];
33
33
  }), y = _(
34
34
  () => {
35
35
  var t, l;
36
- return p.value && ((l = (t = o.value) == null ? void 0 : t.security) == null ? void 0 : l.length) === 0;
36
+ return p.value && ((l = (t = a.value) == null ? void 0 : t.security) == null ? void 0 : l.length) === 0;
37
37
  }
38
38
  ), e = g("All");
39
- R(o, (t) => {
39
+ V(a, (t) => {
40
40
  e.value === "Body" && t && !f(t.method) && (e.value = "All");
41
41
  });
42
- const S = (t) => {
43
- if (!o.value) return;
42
+ const q = (t) => {
43
+ if (!a.value) return;
44
44
  const l = t.target;
45
- k.edit(o.value.uid, "summary", l.value);
45
+ k.edit(a.value.uid, "summary", l.value);
46
46
  };
47
- return (t, l) => (m(), C(b, null, {
47
+ return (t, l) => (m(), b(R, null, {
48
48
  title: x(() => {
49
- var s, i;
49
+ var r, u;
50
50
  return [
51
- n(a($), {
51
+ s(o($), {
52
52
  class: "text-c-3 mr-2 pointer-events-none",
53
53
  icon: "ExternalLink",
54
54
  size: "sm",
55
55
  thickness: "2.5"
56
56
  }),
57
57
  A("div", I, [
58
- w(" Request "),
59
- a(p) ? H("", !0) : (m(), d("label", M)),
60
- a(p) ? (m(), d("span", z, N((i = a(o)) == null ? void 0 : i.summary), 1)) : (m(), d("input", {
58
+ C(" Request "),
59
+ o(p) ? w("", !0) : (m(), d("label", M)),
60
+ o(p) ? (m(), d("span", z, H((u = o(a)) == null ? void 0 : u.summary), 1)) : (m(), d("input", {
61
61
  key: 1,
62
62
  id: "requestname",
63
63
  class: "outline-none border-0 text-c-2 rounded pointer-events-auto relative w-full",
64
64
  placeholder: "Request Name",
65
- value: (s = a(o)) == null ? void 0 : s.summary,
66
- onInput: S
65
+ value: (r = o(a)) == null ? void 0 : r.summary,
66
+ onInput: q
67
67
  }, null, 40, P))
68
68
  ]),
69
- n(V, {
69
+ s(N, {
70
70
  activeSection: e.value,
71
- sections: q.value,
71
+ sections: S.value,
72
72
  onSetActiveSection: l[0] || (l[0] = (c) => e.value = c)
73
73
  }, null, 8, ["activeSection", "sections"])
74
74
  ];
75
75
  }),
76
76
  default: x(() => {
77
- var s, i, c;
77
+ var r, u, c;
78
78
  return [
79
79
  A("div", L, [
80
- r(n(Q, { title: "Authentication" }, null, 512), [
80
+ n(s(Q, { title: "Authentication" }, null, 512), [
81
81
  [
82
- u,
82
+ i,
83
83
  !y.value && (e.value === "All" || e.value === "Auth")
84
84
  ]
85
85
  ]),
86
- r(n(K, {
86
+ n(s(K, {
87
87
  paramKey: "path",
88
88
  title: "Path Variables"
89
89
  }, null, 512), [
90
90
  [
91
- u,
92
- (e.value === "All" || e.value === "Request") && ((c = (i = (s = a(h)) == null ? void 0 : s.parameters) == null ? void 0 : i.path) == null ? void 0 : c.length)
91
+ i,
92
+ (e.value === "All" || e.value === "Variables") && ((c = (u = (r = o(h)) == null ? void 0 : r.parameters) == null ? void 0 : u.path) == null ? void 0 : c.length)
93
93
  ]
94
94
  ]),
95
- r(n(v, {
95
+ n(s(v, {
96
96
  paramKey: "cookies",
97
97
  title: "Cookies"
98
98
  }, null, 512), [
99
- [u, e.value === "All" || e.value === "Cookies"]
99
+ [i, e.value === "All" || e.value === "Cookies"]
100
100
  ]),
101
- r(n(v, {
101
+ n(s(v, {
102
102
  paramKey: "headers",
103
103
  title: "Headers"
104
104
  }, null, 512), [
105
- [u, e.value === "All" || e.value === "Headers"]
105
+ [i, e.value === "All" || e.value === "Headers"]
106
106
  ]),
107
- r(n(v, {
107
+ n(s(v, {
108
108
  paramKey: "query",
109
109
  title: "Query Parameters"
110
110
  }, null, 512), [
111
- [u, e.value === "All" || e.value === "Query"]
111
+ [i, e.value === "All" || e.value === "Query"]
112
112
  ]),
113
- r(n(E, { title: "Body" }, null, 512), [
113
+ n(s(E, { title: "Body" }, null, 512), [
114
114
  [
115
- u,
116
- a(o) && (e.value === "All" || e.value === "Body") && a(f)(a(o).method)
115
+ i,
116
+ o(a) && (e.value === "All" || e.value === "Body") && o(f)(o(a).method)
117
117
  ]
118
118
  ])
119
119
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":";iBAsVe,OAAO;gBACR,OAAO;;;;cAMkB,MAAM;aAAO,MAAM;;;iBAP3C,OAAO;gBACR,OAAO;;;cAMkB,MAAM;aAAO,MAAM;;;;AAymB1D,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":";iBAoVe,OAAO;gBACR,OAAO;;;;cAMkB,MAAM;aAAO,MAAM;;;iBAP3C,OAAO;gBACR,OAAO;;;cAMkB,MAAM;aAAO,MAAM;;;;AAgmB1D,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +1,7 @@
1
- import o from "./RequestSidebar.vue2.js";
1
+ import e from "./RequestSidebar.vue2.js";
2
2
  /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e83264ab"]]);
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(e, [["__scopeId", "data-v-8ce3ee0b"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,22 +1,22 @@
1
- import { defineComponent as Q, reactive as X, watch as Y, onMounted as Z, onBeforeUnmount as _, openBlock as a, createElementBlock as h, Fragment as S, withDirectives as ee, createVNode as l, unref as e, normalizeClass as b, createSlots as te, withCtx as n, createElementVNode as i, isRef as oe, withKeys as v, withModifiers as c, createBlock as d, renderList as D, createTextVNode as $, toDisplayString as re, createCommentVNode as B, vShow as se, pushScopeId as ae, popScopeId as ie } from "vue";
1
+ import { defineComponent as Q, reactive as X, watch as Y, onMounted as Z, onBeforeUnmount as _, openBlock as a, createElementBlock as h, Fragment as S, withDirectives as ee, createVNode as l, unref as e, normalizeClass as b, createSlots as te, withCtx as n, createElementVNode as i, isRef as oe, withKeys as v, withModifiers as c, createBlock as d, renderList as C, createTextVNode as D, toDisplayString as re, createCommentVNode as $, vShow as se, pushScopeId as ae, popScopeId as ie } from "vue";
2
2
  import ne from "../../assets/rabbit.ascii.js";
3
3
  import le from "../../assets/rabbitjump.ascii.js";
4
4
  import de from "../../components/HttpMethod/HttpMethod.vue.js";
5
- import V from "../../components/ScalarAsciiArt.vue.js";
6
- import { useSearch as pe } from "../../components/Search/useSearch.js";
7
- import me from "../../components/Sidebar/SidebarButton.vue.js";
5
+ import B from "../../components/ScalarAsciiArt.vue.js";
6
+ import { useSearch as me } from "../../components/Search/useSearch.js";
7
+ import pe from "../../components/Sidebar/SidebarButton.vue.js";
8
8
  import ue from "./RequestSidebarItemMenu.vue.js";
9
9
  import { dragHandlerFactory as ce } from "./handle-drag.js";
10
- import { ScalarSearchInput as fe, ScalarSearchResultList as be, ScalarSearchResultItem as he, ScalarIcon as q } from "@scalar/components";
10
+ import { ScalarSearchInput as fe, ScalarSearchResultList as be, ScalarSearchResultItem as he, ScalarIcon as V } from "@scalar/components";
11
11
  import { LibraryIcon as Se } from "@scalar/icons";
12
12
  import ve from "./RequestSidebarItem.vue.js";
13
13
  import Re from "../../components/Sidebar/Sidebar.vue.js";
14
14
  import we from "./components/WorkspaceDropdown.vue.js";
15
15
  import { useSidebar as ye } from "../../hooks/useSidebar.js";
16
16
  import { useWorkspace as ke } from "../../store/store.js";
17
- import { hotKeyBus as E } from "../../libs/event-busses/hot-keys-bus.js";
18
- import { commandPaletteBus as F } from "../../libs/event-busses/command-palette-bus.js";
19
- const ge = (m) => (ae("data-v-e83264ab"), m = m(), ie(), m), Ie = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-50" }, xe = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, Ce = { class: "w-[60px] h-[68px] m-auto rabbit-ascii mt-2 relative" }, De = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("div", { class: "text-center text-balance text-sm mb-2 mt-2" }, [
17
+ import { hotKeyBus as q } from "../../libs/event-busses/hot-keys-bus.js";
18
+ import { commandPaletteBus as E } from "../../libs/event-busses/command-palette-bus.js";
19
+ const ge = (p) => (ae("data-v-8ce3ee0b"), p = p(), ie(), p), Ie = { class: "search-button-fade sticky px-3 py-2.5 top-0 z-50" }, xe = { class: "empty-sidebar-item-content px-2.5 py-2.5" }, Ce = { class: "w-[60px] h-[68px] m-auto rabbit-ascii mt-2 relative" }, De = /* @__PURE__ */ ge(() => /* @__PURE__ */ i("div", { class: "text-center text-balance text-sm mb-2 mt-2" }, [
20
20
  /* @__PURE__ */ i("b", { class: "font-medium" }, "Let's Get Started"),
21
21
  /* @__PURE__ */ i("p", { class: "mt-2" }, " Create request, folder, collection or import OpenAPI document ")
22
22
  ], -1)), je = /* @__PURE__ */ Q({
@@ -26,18 +26,18 @@ const ge = (m) => (ae("data-v-e83264ab"), m = m(), ie(), m), Ie = { class: "sear
26
26
  isReadonly: { type: Boolean }
27
27
  },
28
28
  emits: ["update:showSidebar", "newTab"],
29
- setup(m, { emit: M }) {
30
- const O = m, R = M, w = ke(), {
31
- activeWorkspaceCollections: P,
32
- activeRequest: z,
33
- activeWorkspaceRequests: y,
34
- findRequestParents: N,
35
- isReadOnly: T
29
+ setup(p, { emit: F }) {
30
+ const M = p, R = F, w = ke(), {
31
+ activeWorkspaceCollections: O,
32
+ activeRequest: P,
33
+ activeWorkspaceRequests: N,
34
+ findRequestParents: T,
35
+ isReadOnly: z
36
36
  } = w, { handleDragEnd: A, isDroppable: K } = ce(w), { collapsedSidebarFolders: L, setCollapsedSidebarFolder: U } = ye(), u = X({ open: !1 });
37
37
  Y(
38
- z,
38
+ P,
39
39
  (r) => {
40
- r && N(r).forEach(
40
+ r && T(r).forEach(
41
41
  (t) => U(t, !0)
42
42
  );
43
43
  },
@@ -45,20 +45,20 @@ const ge = (m) => (ae("data-v-e83264ab"), m = m(), ie(), m), Ie = { class: "sear
45
45
  );
46
46
  const {
47
47
  searchText: f,
48
- searchResultsWithPlaceholderResults: k,
49
- selectedSearchResult: g,
48
+ searchResultsWithPlaceholderResults: y,
49
+ selectedSearchResult: k,
50
50
  onSearchResultClick: W,
51
51
  fuseSearch: H,
52
- searchInputRef: I,
52
+ searchInputRef: g,
53
53
  searchResultRefs: j,
54
- navigateSearchResults: x,
54
+ navigateSearchResults: I,
55
55
  selectSearchResult: G
56
- } = pe(), C = (r) => {
56
+ } = me(), x = (r) => {
57
57
  var t;
58
- r.toggleSidebar && R("update:showSidebar", O.showSidebar), r.openCommandPalette && (r.openCommandPalette.preventDefault(), F.emit()), r.focusRequestSearch && ((t = I.value) == null || t.focus());
58
+ r.toggleSidebar && R("update:showSidebar", M.showSidebar), r.openCommandPalette && (r.openCommandPalette.preventDefault(), E.emit()), r.focusRequestSearch && ((t = g.value) == null || t.focus());
59
59
  };
60
- return Z(() => E.on(C)), _(() => {
61
- E.off(C);
60
+ return Z(() => q.on(x)), _(() => {
61
+ q.off(x);
62
62
  }), (r, t) => (a(), h(S, null, [
63
63
  ee(l(e(Re), {
64
64
  class: b([r.showSidebar ? "sidebar-active-width" : ""]),
@@ -69,15 +69,15 @@ const ge = (m) => (ae("data-v-e83264ab"), m = m(), ie(), m), Ie = { class: "sear
69
69
  i("div", Ie, [
70
70
  l(e(fe), {
71
71
  ref_key: "searchInputRef",
72
- ref: I,
72
+ ref: g,
73
73
  modelValue: e(f),
74
74
  "onUpdate:modelValue": t[0] || (t[0] = (o) => oe(f) ? f.value = o : null),
75
75
  sidebar: "",
76
76
  onInput: e(H),
77
77
  onKeydown: [
78
- t[1] || (t[1] = v(c((o) => e(x)("down"), ["stop"]), ["down"])),
78
+ t[1] || (t[1] = v(c((o) => e(I)("down"), ["stop"]), ["down"])),
79
79
  t[2] || (t[2] = v(c((o) => e(G)(), ["stop"]), ["enter"])),
80
- t[3] || (t[3] = v(c((o) => e(x)("up"), ["stop"]), ["up"]))
80
+ t[3] || (t[3] = v(c((o) => e(I)("up"), ["stop"]), ["up"]))
81
81
  ]
82
82
  }, null, 8, ["modelValue", "onInput"])
83
83
  ]),
@@ -93,18 +93,18 @@ const ge = (m) => (ae("data-v-e83264ab"), m = m(), ie(), m), Ie = { class: "sear
93
93
  e(f) ? (a(), d(e(be), {
94
94
  key: 0,
95
95
  class: "gap-px custom-scroll",
96
- noResults: !e(k).length
96
+ noResults: !e(y).length
97
97
  }, {
98
98
  default: n(() => [
99
- (a(!0), h(S, null, D(e(k), (o, p) => (a(), d(e(he), {
99
+ (a(!0), h(S, null, C(e(y), (o, m) => (a(), d(e(he), {
100
100
  id: `#search-input-${o.item.id}`,
101
101
  key: o.refIndex,
102
102
  ref_for: !0,
103
- ref: (s) => e(j)[p] = s,
104
- active: e(g) === p,
103
+ ref: (s) => e(j)[m] = s,
104
+ active: e(k) === m,
105
105
  class: "px-2",
106
106
  onClick: (s) => e(W)(o),
107
- onFocus: (s) => g.value = p
107
+ onFocus: (s) => k.value = m
108
108
  }, {
109
109
  addon: n(() => [
110
110
  l(de, {
@@ -113,17 +113,17 @@ const ge = (m) => (ae("data-v-e83264ab"), m = m(), ie(), m), Ie = { class: "sear
113
113
  }, null, 8, ["method"])
114
114
  ]),
115
115
  default: n(() => [
116
- $(re(o.item.title) + " ", 1)
116
+ D(re(o.item.title) + " ", 1)
117
117
  ]),
118
118
  _: 2
119
119
  }, 1032, ["id", "active", "onClick", "onFocus"]))), 128))
120
120
  ]),
121
121
  _: 1
122
- }, 8, ["noResults"])) : (a(!0), h(S, { key: 1 }, D(e(P), (o) => {
123
- var p;
122
+ }, 8, ["noResults"])) : (a(!0), h(S, { key: 1 }, C(e(O), (o) => {
123
+ var m;
124
124
  return a(), d(ve, {
125
125
  key: o.uid,
126
- isDraggable: !r.isReadonly && ((p = o.info) == null ? void 0 : p.title) !== "Drafts",
126
+ isDraggable: !r.isReadonly && ((m = o.info) == null ? void 0 : m.title) !== "Drafts",
127
127
  isDroppable: e(K),
128
128
  menuItem: u,
129
129
  parentUids: [],
@@ -135,7 +135,7 @@ const ge = (m) => (ae("data-v-e83264ab"), m = m(), ie(), m), Ie = { class: "sear
135
135
  leftIcon: n(() => {
136
136
  var s;
137
137
  return [
138
- ((s = o.info) == null ? void 0 : s.title) === "Drafts" ? (a(), d(e(q), {
138
+ ((s = o.info) == null ? void 0 : s.title) === "Drafts" ? (a(), d(e(V), {
139
139
  key: 0,
140
140
  class: "text-sidebar-c-2 group-hover:hidden",
141
141
  icon: "Scribble",
@@ -150,7 +150,7 @@ const ge = (m) => (ae("data-v-e83264ab"), m = m(), ie(), m), Ie = { class: "sear
150
150
  "rotate-90": e(L)[o.uid]
151
151
  })
152
152
  }, [
153
- l(e(q), {
153
+ l(e(V), {
154
154
  class: "text-c-3 hidden text-sm group-hover:block",
155
155
  icon: "ChevronRight",
156
156
  size: "sm"
@@ -165,30 +165,29 @@ const ge = (m) => (ae("data-v-e83264ab"), m = m(), ie(), m), Ie = { class: "sear
165
165
  ]),
166
166
  button: n(() => [
167
167
  i("div", {
168
- class: b(["relative z-10 pt-0 md:px-2.5 md:pb-2.5 -translate-y-full w-[inherit]", {
169
- "empty-sidebar-item": e(y).length <= 1,
170
- "border-t-1/2": e(y).length <= 1
171
- }])
168
+ class: b({
169
+ "empty-sidebar-item": e(N).length <= 1
170
+ })
172
171
  }, [
173
172
  i("div", xe, [
174
173
  i("div", Ce, [
175
- l(V, {
174
+ l(B, {
176
175
  art: e(ne),
177
176
  class: "font-bold rabbitsit"
178
177
  }, null, 8, ["art"]),
179
- l(V, {
178
+ l(B, {
180
179
  art: e(le),
181
180
  class: "font-bold absolute top-0 left-0 rabbitjump"
182
181
  }, null, 8, ["art"])
183
182
  ]),
184
183
  De
185
184
  ]),
186
- r.isReadonly ? B("", !0) : (a(), d(me, {
185
+ r.isReadonly ? $("", !0) : (a(), d(pe, {
187
186
  key: 0,
188
- click: e(F).emit
187
+ click: e(E).emit
189
188
  }, {
190
189
  title: n(() => [
191
- $("Add Item")
190
+ D("Add Item")
192
191
  ]),
193
192
  _: 1
194
193
  }, 8, ["click"]))
@@ -206,11 +205,11 @@ const ge = (m) => (ae("data-v-e83264ab"), m = m(), ie(), m), Ie = { class: "sear
206
205
  ]), 1032, ["class", "showSidebar"]), [
207
206
  [se, r.showSidebar]
208
207
  ]),
209
- !e(T) && u ? (a(), d(ue, {
208
+ !e(z) && u ? (a(), d(ue, {
210
209
  key: 0,
211
210
  menuItem: u,
212
211
  onCloseMenu: t[9] || (t[9] = (o) => u.open = !1)
213
- }, null, 8, ["menuItem"])) : B("", !0)
212
+ }, null, 8, ["menuItem"])) : $("", !0)
214
213
  ], 64));
215
214
  }
216
215
  });
@@ -21,7 +21,7 @@ const f = (o) => (g("data-v-43fc1968"), o = o(), b(), o), V = { class: "relative
21
21
  q.emit({ commandName: "Create Request" });
22
22
  }, i = (l) => {
23
23
  l.openCommandPaletteRequest && r();
24
- }, x = "2.1.12";
24
+ }, x = "2.1.14";
25
25
  return k(() => d.on(i)), R(() => d.off(i)), (l, m) => (a(), c("div", V, [
26
26
  e("div", w, [
27
27
  t(h).isReadOnly ? p("", !0) : (a(), c("div", E, [
@@ -40,7 +40,7 @@ const q = { class: "flex items-center flex-1" }, I = { class: "custom-scroll rel
40
40
  } : [];
41
41
  })) ?? [];
42
42
  }
43
- ), _ = ["Cookies", "Headers", "Body", "All"], t = x("All");
43
+ ), _ = ["All", "Cookies", "Headers", "Body"], t = x("All");
44
44
  return (o, s) => (r(), n($, null, {
45
45
  title: d(() => [
46
46
  i(y(R), {
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.1.12",
21
+ "version": "2.1.14",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -132,13 +132,13 @@
132
132
  "zod": "^3.23.8",
133
133
  "@scalar/components": "0.12.50",
134
134
  "@scalar/draggable": "0.1.5",
135
- "@scalar/icons": "0.1.0",
136
135
  "@scalar/oas-utils": "0.2.51",
137
- "@scalar/openapi-types": "0.1.1",
136
+ "@scalar/icons": "0.1.0",
138
137
  "@scalar/object-utils": "1.1.9",
139
138
  "@scalar/openapi-parser": "0.8.5",
140
- "@scalar/themes": "0.9.33",
139
+ "@scalar/openapi-types": "0.1.1",
141
140
  "@scalar/types": "0.0.12",
141
+ "@scalar/themes": "0.9.33",
142
142
  "@scalar/use-codemirror": "0.11.16",
143
143
  "@scalar/use-toasts": "0.7.6",
144
144
  "@scalar/use-tooltip": "1.0.2"