@scalar/api-client 2.5.27 → 2.5.28

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 (42) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/analytics.d.ts +69 -0
  3. package/dist/analytics.d.ts.map +1 -0
  4. package/dist/analytics.js +25 -0
  5. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  6. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  7. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  8. package/dist/components/Sidebar/SidebarButton.vue.js +4 -4
  9. package/dist/hooks/useClientConfig.d.ts +3 -0
  10. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  11. package/dist/index.js +9 -8
  12. package/dist/layouts/App/create-api-client-app.d.ts +78 -45
  13. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  14. package/dist/layouts/App/create-api-client-app.js +23 -14
  15. package/dist/layouts/App/index.js +4 -3
  16. package/dist/layouts/Modal/create-api-client-modal.d.ts +90 -90
  17. package/dist/layouts/Web/create-api-client-web.d.ts +78 -45
  18. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  19. package/dist/layouts/Web/create-api-client-web.js +24 -15
  20. package/dist/layouts/Web/index.js +4 -3
  21. package/dist/libs/create-client.d.ts +45 -45
  22. package/dist/libs/hot-keys.d.ts +1 -1
  23. package/dist/store/collections.d.ts +4 -4
  24. package/dist/store/cookies.d.ts +4 -4
  25. package/dist/store/environment.d.ts +4 -4
  26. package/dist/store/request-example.d.ts +4 -4
  27. package/dist/store/requests.d.ts +4 -4
  28. package/dist/store/security-schemes.d.ts +16 -16
  29. package/dist/store/store.d.ts +45 -45
  30. package/dist/store/tags.d.ts +4 -4
  31. package/dist/store/workspace.d.ts +4 -4
  32. package/dist/style.css +1 -1
  33. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  34. package/dist/views/Request/RequestRoot.vue.js +2 -2
  35. package/dist/views/Request/RequestRoot.vue2.js +84 -78
  36. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts +1 -1
  37. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  38. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  39. package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
  40. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +27 -27
  41. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  42. package/package.json +14 -13
@@ -1 +1 @@
1
- {"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;cAqQ8C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA4SjE,wBAMG"}
1
+ {"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;cAiR8C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAsTjE,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestRoot.vue2.js";
2
2
  import "./RequestRoot.vue3.js";
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8a88f90a"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e187bc5a"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,120 +1,126 @@
1
- import { defineComponent as F, ref as m, computed as G, onMounted as K, onBeforeUnmount as X, watch as Y, createElementBlock as Z, openBlock as d, normalizeClass as V, unref as r, createBlock as B, createCommentVNode as T, createElementVNode as A, isRef as ee, createVNode as te } from "vue";
2
- import { isDefined as oe } from "@scalar/oas-utils/helpers";
3
- import { safeJSON as re } from "@scalar/object-utils/parse";
4
- import { useToasts as se } from "@scalar/use-toasts";
5
- import { RouterView as ae } from "vue-router";
6
- import le from "../../components/Sidebar/SidebarToggle.vue.js";
7
- import { useClientConfig as ne } from "../../hooks/useClientConfig.js";
8
- import { useSidebar as ue } from "../../hooks/useSidebar.js";
9
- import { validateParameters as ie } from "../../libs/validate-parameters.js";
10
- import { useActiveEntities as ce } from "../../store/active-entities.js";
11
- import { useOpenApiWatcher as me } from "./hooks/useOpenApiWatcher.js";
12
- import fe from "./RequestSidebar.vue.js";
13
- import { usePluginManager as de } from "../../plugins/hooks/usePluginManager.js";
14
- import { createRequestOperation as pe } from "../../libs/send-request/create-request-operation.js";
15
- import { ERRORS as ve } from "../../libs/errors.js";
16
- import { useWorkspace as Se } from "../../store/store.js";
17
- import { useLayout as Re } from "../../hooks/useLayout.js";
18
- const ye = { class: "flex h-full" }, qe = { class: "flex h-full flex-1 flex-col" }, Me = /* @__PURE__ */ F({
1
+ import { defineComponent as K, ref as m, computed as X, onMounted as Y, onBeforeUnmount as Z, watch as ee, createElementBlock as te, openBlock as p, normalizeClass as B, unref as r, createBlock as T, createCommentVNode as P, createElementVNode as D, isRef as oe, createVNode as re } from "vue";
2
+ import { isDefined as se } from "@scalar/oas-utils/helpers";
3
+ import { safeJSON as ae } from "@scalar/object-utils/parse";
4
+ import { useToasts as ne } from "@scalar/use-toasts";
5
+ import { RouterView as le } from "vue-router";
6
+ import { useAnalytics as ue } from "../../analytics.js";
7
+ import ce from "../../components/Sidebar/SidebarToggle.vue.js";
8
+ import { useClientConfig as ie } from "../../hooks/useClientConfig.js";
9
+ import { useSidebar as me } from "../../hooks/useSidebar.js";
10
+ import { validateParameters as fe } from "../../libs/validate-parameters.js";
11
+ import { useActiveEntities as de } from "../../store/active-entities.js";
12
+ import { useOpenApiWatcher as pe } from "./hooks/useOpenApiWatcher.js";
13
+ import ve from "./RequestSidebar.vue.js";
14
+ import { usePluginManager as Re } from "../../plugins/hooks/usePluginManager.js";
15
+ import { createRequestOperation as Se } from "../../libs/send-request/create-request-operation.js";
16
+ import { ERRORS as qe } from "../../libs/errors.js";
17
+ import { useWorkspace as ye } from "../../store/store.js";
18
+ import { useLayout as xe } from "../../hooks/useLayout.js";
19
+ const be = { class: "flex h-full" }, he = { class: "flex h-full flex-1 flex-col" }, We = /* @__PURE__ */ K({
19
20
  __name: "RequestRoot",
20
21
  emits: ["newTab"],
21
- setup(xe) {
22
- const P = Se(), { toast: p } = se(), { layout: v } = Re(), D = ne(), { isSidebarOpen: s } = ue(), {
22
+ setup(ge) {
23
+ const M = ye(), { toast: v } = ne(), { layout: R } = xe(), z = ie(), { isSidebarOpen: a } = me(), f = ue(), {
23
24
  activeCollection: l,
24
- activeExample: n,
25
+ activeExample: u,
25
26
  activeEnvironment: S,
26
- activeRequest: u,
27
- activeWorkspace: R,
28
- activeServer: M
29
- } = ce(), { cookies: z, requestHistory: I, showSidebar: y, securitySchemes: J, events: i } = P, W = de(), j = m(), q = m(), f = m(/* @__PURE__ */ new Set()), x = m(null), b = G(
27
+ activeRequest: c,
28
+ activeWorkspace: q,
29
+ activeServer: I
30
+ } = de(), { cookies: J, requestHistory: W, showSidebar: y, securitySchemes: j, events: s } = M, L = Re(), $ = m(), x = m(), d = m(/* @__PURE__ */ new Set()), b = m(null), h = X(
30
31
  () => {
31
32
  var e, t, o;
32
- return ((e = l.value) != null && e.useCollectionSecurity ? (t = l.value) == null ? void 0 : t.selectedSecuritySchemeUids : (o = u.value) == null ? void 0 : o.selectedSecuritySchemeUids) ?? [];
33
+ return ((e = l.value) != null && e.useCollectionSecurity ? (t = l.value) == null ? void 0 : t.selectedSecuritySchemeUids : (o = c.value) == null ? void 0 : o.selectedSecuritySchemeUids) ?? [];
33
34
  }
34
- ), h = async () => {
35
- var N, U, _, w, c, O;
36
- if (!u.value || !n.value || !l.value)
35
+ ), g = async () => {
36
+ var _, w, O, V, i, A;
37
+ if (!c.value || !u.value || !l.value)
37
38
  return;
38
- f.value = ie(n.value);
39
- const e = typeof S.value == "object" ? S.value.value : "{}", t = re.parse(e);
39
+ d.value = fe(u.value);
40
+ const e = typeof S.value == "object" ? S.value.value : "{}", t = ae.parse(e);
40
41
  t.error && console.error("INVALID ENVIRONMENT!");
41
- const o = t.error || typeof t.data != "object" ? {} : t.data ?? {}, a = ((N = R.value) == null ? void 0 : N.cookies.map((Q) => z[Q]).filter(oe)) ?? [], H = ((_ = (U = l.value) == null ? void 0 : U.info) == null ? void 0 : _.title) === "Drafts" ? void 0 : M.value, [k, E] = pe({
42
- request: u.value,
43
- example: n.value,
44
- selectedSecuritySchemeUids: b.value,
45
- proxyUrl: ((w = R.value) == null ? void 0 : w.proxyUrl) ?? "",
42
+ const o = t.error || typeof t.data != "object" ? {} : t.data ?? {}, n = ((_ = q.value) == null ? void 0 : _.cookies.map((G) => J[G]).filter(se)) ?? [], F = ((O = (w = l.value) == null ? void 0 : w.info) == null ? void 0 : O.title) === "Drafts" ? void 0 : I.value, [E, C] = Se({
43
+ request: c.value,
44
+ example: u.value,
45
+ selectedSecuritySchemeUids: h.value,
46
+ proxyUrl: ((V = q.value) == null ? void 0 : V.proxyUrl) ?? "",
46
47
  environment: o,
47
- globalCookies: a,
48
- status: i.requestStatus,
49
- securitySchemes: J,
50
- server: H,
51
- pluginManager: W
48
+ globalCookies: n,
49
+ status: s.requestStatus,
50
+ securitySchemes: j,
51
+ server: F,
52
+ pluginManager: L
52
53
  });
53
- if ((O = (c = D.value) == null ? void 0 : c.onRequestSent) == null || O.call(c, u.value.path ?? ""), k) {
54
- p(k.message, "error");
54
+ if ((A = (i = z.value) == null ? void 0 : i.onRequestSent) == null || A.call(i, c.value.path ?? ""), E) {
55
+ v(E.message, "error");
55
56
  return;
56
57
  }
57
- q.value = E.controller;
58
- const [g, C] = await E.sendRequest();
59
- x.value = C, g ? p(g.message, "error") : I.push($(C));
60
- }, L = async () => {
58
+ x.value = C.controller;
59
+ const [N, U] = await C.sendRequest();
60
+ b.value = U, N ? v(N.message, "error") : W.push(Q(U));
61
+ }, H = async () => {
61
62
  var e;
62
- return (e = q.value) == null ? void 0 : e.abort(ve.REQUEST_ABORTED);
63
+ return (e = x.value) == null ? void 0 : e.abort(qe.REQUEST_ABORTED);
63
64
  };
64
- K(() => {
65
- i.executeRequest.on(h), i.cancelRequest.on(L);
66
- }), me(), X(() => i.executeRequest.off(h)), Y(
65
+ function k() {
66
+ f == null || f.capture("client-send-request");
67
+ }
68
+ Y(() => {
69
+ s.executeRequest.on(g), s.executeRequest.on(k), s.cancelRequest.on(H);
70
+ }), pe(), Z(() => {
71
+ s.executeRequest.off(g), s.executeRequest.off(k);
72
+ }), ee(
67
73
  () => {
68
74
  var e;
69
- return (e = n.value) == null ? void 0 : e.parameters;
75
+ return (e = u.value) == null ? void 0 : e.parameters;
70
76
  },
71
77
  () => {
72
- f.value.clear();
78
+ d.value.clear();
73
79
  },
74
80
  { deep: !0 }
75
81
  );
76
- const $ = (e) => {
82
+ const Q = (e) => {
77
83
  var t;
78
84
  try {
79
85
  return structuredClone(e);
80
86
  } catch {
81
- const a = { ...e };
82
- return (t = e.response) != null && t.data && (e.response.data instanceof Blob || e.response.data instanceof ArrayBuffer ? a.response.data = e.response.data : a.response.data = JSON.parse(JSON.stringify(e.response.data))), a;
87
+ const n = { ...e };
88
+ return (t = e.response) != null && t.data && (e.response.data instanceof Blob || e.response.data instanceof ArrayBuffer ? n.response.data = e.response.data : n.response.data = JSON.parse(JSON.stringify(e.response.data))), n;
83
89
  }
84
90
  };
85
- return (e, t) => (d(), Z("div", {
91
+ return (e, t) => (p(), te("div", {
86
92
  ref_key: "element",
87
- ref: j,
88
- class: V(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
89
- "!mr-0 !mb-0 !border-0": r(v) === "modal"
93
+ ref: $,
94
+ class: B(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
95
+ "!mr-0 !mb-0 !border-0": r(R) === "modal"
90
96
  }])
91
97
  }, [
92
- r(y) ? (d(), B(le, {
98
+ r(y) ? (p(), T(ce, {
93
99
  key: 0,
94
- modelValue: r(s),
95
- "onUpdate:modelValue": t[0] || (t[0] = (o) => ee(s) ? s.value = o : null),
96
- class: V(["absolute top-2 left-3 z-50", [
97
- { hidden: r(s) },
98
- { "xl:!flex": !r(s) },
99
- { "!flex": r(v) === "modal" }
100
+ modelValue: r(a),
101
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => oe(a) ? a.value = o : null),
102
+ class: B(["absolute top-2 left-3 z-50", [
103
+ { hidden: r(a) },
104
+ { "xl:!flex": !r(a) },
105
+ { "!flex": r(R) === "modal" }
100
106
  ]])
101
- }, null, 8, ["modelValue", "class"])) : T("", !0),
102
- A("div", ye, [
103
- r(y) ? (d(), B(fe, {
107
+ }, null, 8, ["modelValue", "class"])) : P("", !0),
108
+ D("div", be, [
109
+ r(y) ? (p(), T(ve, {
104
110
  key: 0,
105
111
  onNewTab: t[1] || (t[1] = (o) => e.$emit("newTab", o))
106
- })) : T("", !0),
107
- A("div", qe, [
108
- te(r(ae), {
109
- invalidParams: f.value,
110
- selectedSecuritySchemeUids: b.value,
111
- requestResult: x.value
112
- }, null, 8, ["invalidParams", "selectedSecuritySchemeUids", "requestResult"])
112
+ })) : P("", !0),
113
+ D("div", he, [
114
+ re(r(le), {
115
+ invalidParams: d.value,
116
+ requestResult: b.value,
117
+ selectedSecuritySchemeUids: h.value
118
+ }, null, 8, ["invalidParams", "requestResult", "selectedSecuritySchemeUids"])
113
119
  ])
114
120
  ])
115
121
  ], 2));
116
122
  }
117
123
  });
118
124
  export {
119
- Me as default
125
+ We as default
120
126
  };
@@ -29,8 +29,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
29
29
  onInputFocus?: (() => any) | undefined;
30
30
  onInputBlur?: (() => any) | undefined;
31
31
  }>, {
32
- required: boolean;
33
32
  readOnly: boolean;
33
+ required: boolean;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
36
36
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,YAAY,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAiGJ,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB7C,QAAA,MAAM,eAAe;;;;;;;;;;;cAnIN,OAAO;cAEP,OAAO;6EAyIpB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,YAAY,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;AAiGJ,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB7C,QAAA,MAAM,eAAe;;;;;;;;;;;cAjIN,OAAO;cAFP,OAAO;6EA2IpB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AAqTA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,eAAe,CAAA;CAAE,CAAC;;;;;;;;;;AAykBjD,wBAOG"}
1
+ {"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AAqTA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAE5D,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,eAAe,CAAA;CAAE,CAAC;;;;;;;;;;AA8kBjD,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestSidebarItemMenu.vue2.js";
2
2
  import "./RequestSidebarItemMenu.vue3.js";
3
3
  import e from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-709241c2"]]);
4
+ const m = /* @__PURE__ */ e(t, [["__scopeId", "data-v-c405ab35"]]);
5
5
  export {
6
- a as default
6
+ m as default
7
7
  };
@@ -3,8 +3,8 @@ import { useModal as W, ScalarFloating as ee, ScalarDropdownMenu as te, ScalarDr
3
3
  import { useRouter as ne } from "vue-router";
4
4
  import T from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
5
5
  import le from "../../components/Sidebar/Actions/EditSidebarListCollection.vue.js";
6
- import ae from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
7
- import { useActiveEntities as ie } from "../../store/active-entities.js";
6
+ import ie from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
7
+ import { useActiveEntities as ae } from "../../store/active-entities.js";
8
8
  import { createInitialRequest as se } from "../../store/requests.js";
9
9
  import { PathId as p } from "../../routes.js";
10
10
  import { useWorkspace as me } from "../../store/store.js";
@@ -19,7 +19,7 @@ const ge = /* @__PURE__ */ H({
19
19
  activeRouterParams: x,
20
20
  activeWorkspaceCollections: q,
21
21
  activeWorkspaceRequests: U
22
- } = ie(), { events: V, requestMutators: L } = me(), I = W(), w = W(), C = W(), P = () => {
22
+ } = ae(), { events: V, requestMutators: L } = me(), I = W(), w = W(), C = W(), P = () => {
23
23
  var e;
24
24
  return V.commandPalette.emit({
25
25
  commandName: "Add Example",
@@ -28,18 +28,18 @@ const ge = /* @__PURE__ */ H({
28
28
  }
29
29
  });
30
30
  }, z = (e, t) => {
31
- var i;
32
- (i = u.menuItem.item) == null || i.edit(e, t), I.hide();
31
+ var a;
32
+ (a = u.menuItem.item) == null || a.edit(e, t), I.hide();
33
33
  }, F = () => {
34
- var e, t, i;
34
+ var e, t, a;
35
35
  if ((e = u.menuItem.item) == null || e.delete(), !U.value.length) {
36
- const { request: f } = se(), a = q.value.find(
36
+ const { request: f } = se(), i = q.value.find(
37
37
  (o) => {
38
38
  var l;
39
39
  return ((l = o.info) == null ? void 0 : l.title) === "Drafts";
40
40
  }
41
41
  );
42
- a && (L.add(f, a.uid), D({
42
+ i && (L.add(f, i.uid), D({
43
43
  name: "request",
44
44
  params: {
45
45
  [p.Request]: f.uid
@@ -51,7 +51,7 @@ const ge = /* @__PURE__ */ H({
51
51
  params: {
52
52
  [p.Request]: "default"
53
53
  }
54
- }), x.value[p.Examples] === ((i = u.menuItem.item) == null ? void 0 : i.entity.uid) && D({
54
+ }), x.value[p.Examples] === ((a = u.menuItem.item) == null ? void 0 : a.entity.uid) && D({
55
55
  name: "request",
56
56
  params: {
57
57
  [p.Request]: "default"
@@ -68,8 +68,8 @@ const ge = /* @__PURE__ */ H({
68
68
  w.hide();
69
69
  }, k = J(null);
70
70
  O([() => u.menuItem.open, k], async ([e]) => {
71
- var t, i;
72
- e && ((i = (t = k.value) == null ? void 0 : t.$parent) != null && i.$el) && k.value.$parent.$el.focus();
71
+ var t, a;
72
+ e && ((a = (t = k.value) == null ? void 0 : t.$parent) != null && a.$el) && k.value.$parent.$el.focus();
73
73
  });
74
74
  const N = () => u.menuItem.open && $("closeMenu");
75
75
  Q(() => window.addEventListener("click", N)), X(() => window.removeEventListener("click", N));
@@ -82,7 +82,7 @@ const ge = /* @__PURE__ */ H({
82
82
  return ((e = u.menuItem.item) == null ? void 0 : e.title) === "Drafts";
83
83
  });
84
84
  return (e, t) => {
85
- var i, f;
85
+ var a, f;
86
86
  return s(), R(h, null, [
87
87
  e.menuItem.targetRef && e.menuItem.open ? (s(), d(n(ee), {
88
88
  key: 0,
@@ -92,14 +92,14 @@ const ge = /* @__PURE__ */ H({
92
92
  }, {
93
93
  floating: r(() => [
94
94
  m(n(te), {
95
- onKeydown: t[3] || (t[3] = Z((a) => e.$emit("closeMenu"), ["escape"]))
95
+ onKeydown: t[3] || (t[3] = Z((i) => e.$emit("closeMenu"), ["escape"]))
96
96
  }, {
97
97
  default: r(() => {
98
- var a, o;
98
+ var i, o;
99
99
  return [
100
- ((a = e.menuItem.item) == null ? void 0 : a.entity.type) === "request" ? (s(), d(n(y), {
100
+ ((i = e.menuItem.item) == null ? void 0 : i.entity.type) === "request" ? (s(), d(n(y), {
101
101
  key: 0,
102
- class: "flex gap-2",
102
+ class: "flex items-center gap-2",
103
103
  onClick: P
104
104
  }, {
105
105
  default: r(() => [
@@ -118,7 +118,7 @@ const ge = /* @__PURE__ */ H({
118
118
  key: 1,
119
119
  ref_key: "menuRef",
120
120
  ref: k,
121
- class: "flex gap-2",
121
+ class: "flex items-center gap-2",
122
122
  onClick: t[0] || (t[0] = (l) => n(I).show())
123
123
  }, {
124
124
  default: r(() => {
@@ -145,7 +145,7 @@ const ge = /* @__PURE__ */ H({
145
145
  key: 2,
146
146
  ref_key: "menuRef",
147
147
  ref: k,
148
- class: "flex gap-2",
148
+ class: "flex items-center gap-2",
149
149
  onClick: K
150
150
  }, {
151
151
  default: r(() => {
@@ -164,7 +164,7 @@ const ge = /* @__PURE__ */ H({
164
164
  }, 512)) : c("", !0),
165
165
  E.value ? c("", !0) : (s(), d(n(y), {
166
166
  key: 3,
167
- class: "flex gap-2",
167
+ class: "flex items-center gap-2",
168
168
  onClick: t[1] || (t[1] = (l) => n(w).show())
169
169
  }, {
170
170
  default: r(() => [
@@ -181,7 +181,7 @@ const ge = /* @__PURE__ */ H({
181
181
  })),
182
182
  E.value ? (s(), d(n(y), {
183
183
  key: 4,
184
- class: "flex gap-2",
184
+ class: "flex items-center gap-2",
185
185
  onClick: t[2] || (t[2] = (l) => n(C).show())
186
186
  }, {
187
187
  default: r(() => [
@@ -206,13 +206,13 @@ const ge = /* @__PURE__ */ H({
206
206
  m(n(b), {
207
207
  size: "xxs",
208
208
  state: n(w),
209
- title: `Delete ${(i = e.menuItem.item) == null ? void 0 : i.resourceTitle}`
209
+ title: `Delete ${(a = e.menuItem.item) == null ? void 0 : a.resourceTitle}`
210
210
  }, {
211
211
  default: r(() => {
212
- var a, o;
212
+ var i, o;
213
213
  return [
214
214
  m(T, {
215
- variableName: ((a = e.menuItem.item) == null ? void 0 : a.title) ?? "",
215
+ variableName: ((i = e.menuItem.item) == null ? void 0 : i.title) ?? "",
216
216
  warningMessage: (o = e.menuItem.item) == null ? void 0 : o.warning,
217
217
  onClose: t[4] || (t[4] = (l) => n(w).hide()),
218
218
  onDelete: F
@@ -227,15 +227,15 @@ const ge = /* @__PURE__ */ H({
227
227
  title: `Edit ${(f = e.menuItem.item) == null ? void 0 : f.resourceTitle}`
228
228
  }, {
229
229
  default: r(() => {
230
- var a, o, l, v;
230
+ var i, o, l, v;
231
231
  return [
232
- ((a = e.menuItem.item) == null ? void 0 : a.resourceTitle) === "Collection" ? (s(), d(le, {
232
+ ((i = e.menuItem.item) == null ? void 0 : i.resourceTitle) === "Collection" ? (s(), d(le, {
233
233
  key: 0,
234
234
  icon: ((o = e.menuItem.item) == null ? void 0 : o.icon) || "interface-content-folder",
235
235
  name: (l = e.menuItem.item) == null ? void 0 : l.title,
236
236
  onClose: t[5] || (t[5] = (G) => n(I).hide()),
237
237
  onEdit: z
238
- }, null, 8, ["icon", "name"])) : (s(), d(ae, {
238
+ }, null, 8, ["icon", "name"])) : (s(), d(ie, {
239
239
  key: 1,
240
240
  name: ((v = e.menuItem.item) == null ? void 0 : v.title) ?? "",
241
241
  onClose: t[6] || (t[6] = (G) => n(I).hide()),
@@ -254,7 +254,7 @@ const ge = /* @__PURE__ */ H({
254
254
  m(T, {
255
255
  variableName: "All Drafts",
256
256
  warningMessage: "This action will clear all drafts. This cannot be undone.",
257
- onClose: t[7] || (t[7] = (a) => n(C).hide()),
257
+ onClose: t[7] || (t[7] = (i) => n(C).hide()),
258
258
  onDelete: j
259
259
  })
260
260
  ]),
@@ -34,7 +34,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
34
34
  }));
35
35
  }, k = (o) => {
36
36
  o != null && o.createNew && g.name === "request" && f();
37
- }, w = "2.5.27";
37
+ }, w = "2.5.28";
38
38
  return R(() => a.hotKeys.on(k)), v(() => a.hotKeys.off(k)), (o, e) => (u(), i("div", W, [
39
39
  s("div", {
40
40
  class: y(["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.5.27",
21
+ "version": "2.5.28",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
@@ -206,23 +206,24 @@
206
206
  "whatwg-mimetype": "^4.0.0",
207
207
  "yaml": "2.8.0",
208
208
  "zod": "3.24.1",
209
- "@scalar/components": "0.14.28",
209
+ "@scalar/analytics-client": "1.0.0",
210
+ "@scalar/components": "0.14.29",
211
+ "@scalar/helpers": "0.0.9",
210
212
  "@scalar/draggable": "0.2.0",
211
- "@scalar/icons": "0.4.7",
212
213
  "@scalar/import": "0.4.20",
214
+ "@scalar/icons": "0.4.7",
213
215
  "@scalar/object-utils": "1.2.5",
214
- "@scalar/openapi-parser": "0.20.2",
216
+ "@scalar/oas-utils": "0.4.24",
215
217
  "@scalar/openapi-types": "0.3.7",
216
- "@scalar/helpers": "0.0.9",
217
- "@scalar/oas-utils": "0.4.23",
218
- "@scalar/snippetz": "0.4.8",
219
- "@scalar/types": "0.2.14",
220
- "@scalar/themes": "0.13.15",
221
- "@scalar/postman-to-openapi": "0.3.26",
222
- "@scalar/use-codemirror": "0.12.29",
223
- "@scalar/use-hooks": "0.2.4",
218
+ "@scalar/postman-to-openapi": "0.3.27",
219
+ "@scalar/snippetz": "0.4.9",
220
+ "@scalar/types": "0.2.15",
221
+ "@scalar/openapi-parser": "0.20.2",
222
+ "@scalar/use-codemirror": "0.12.30",
224
223
  "@scalar/use-toasts": "0.8.0",
225
- "@scalar/workspace-store": "0.15.0"
224
+ "@scalar/workspace-store": "0.15.1",
225
+ "@scalar/themes": "0.13.16",
226
+ "@scalar/use-hooks": "0.2.4"
226
227
  },
227
228
  "devDependencies": {
228
229
  "@tailwindcss/vite": "^4.1.7",