@scalar/api-client 2.0.45 → 2.0.46

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 (69) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +16 -16
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +24 -25
  7. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  9. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +23 -23
  10. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +6 -6
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +1 -1
  14. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  15. package/dist/components/ContextBar.vue.js +2 -2
  16. package/dist/components/ContextBar.vue2.js +10 -10
  17. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  18. package/dist/components/HttpMethod/HttpMethod.vue.js +5 -67
  19. package/dist/components/HttpMethod/HttpMethod.vue2.js +61 -2
  20. package/dist/components/Search/SearchModal.vue2.js +22 -22
  21. package/dist/components/SubpageHeader.vue.js +2 -2
  22. package/dist/components/SubpageHeader.vue2.js +2 -2
  23. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  24. package/dist/layouts/App/ApiClientApp.vue.js +46 -43
  25. package/dist/layouts/App/create-api-client-app.d.ts +158 -81
  26. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  27. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  28. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  29. package/dist/layouts/Modal/ApiClientModal.vue2.js +24 -20
  30. package/dist/layouts/Modal/create-api-client-modal.d.ts +316 -162
  31. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  32. package/dist/libs/create-client.d.ts +159 -83
  33. package/dist/libs/create-client.d.ts.map +1 -1
  34. package/dist/libs/create-client.js +18 -19
  35. package/dist/libs/event-busses/command-palette.d.ts.map +1 -0
  36. package/dist/libs/{eventBusses/executeRequestBus.d.ts → event-busses/execute-requestBus.d.ts} +1 -1
  37. package/dist/libs/event-busses/execute-requestBus.d.ts.map +1 -0
  38. package/dist/libs/event-busses/hot-key.d.ts +34 -0
  39. package/dist/libs/event-busses/hot-key.d.ts.map +1 -0
  40. package/dist/libs/event-busses/hot-key.js +25 -0
  41. package/dist/libs/event-busses/index.d.ts +5 -0
  42. package/dist/libs/event-busses/index.d.ts.map +1 -0
  43. package/dist/libs/event-busses/index.js +12 -0
  44. package/dist/libs/{eventBusses/requestStatusBus.d.ts → event-busses/request-status-bus.d.ts} +1 -1
  45. package/dist/libs/event-busses/request-status-bus.d.ts.map +1 -0
  46. package/dist/libs/index.d.ts +1 -1
  47. package/dist/libs/index.d.ts.map +1 -1
  48. package/dist/libs/index.js +19 -13
  49. package/dist/store/workspace.d.ts +316 -162
  50. package/dist/store/workspace.d.ts.map +1 -1
  51. package/dist/style.css +1 -1
  52. package/dist/views/Request/Request.vue.js +2 -2
  53. package/dist/views/Request/Request.vue2.js +4 -4
  54. package/dist/views/Request/RequestSidebarItem.vue2.js +32 -32
  55. package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
  56. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +19 -19
  57. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  58. package/dist/views/Request/components/WorkspaceDropdown.vue.js +9 -9
  59. package/package.json +6 -6
  60. package/dist/libs/eventBusses/command-palette.d.ts.map +0 -1
  61. package/dist/libs/eventBusses/executeRequestBus.d.ts.map +0 -1
  62. package/dist/libs/eventBusses/index.d.ts +0 -3
  63. package/dist/libs/eventBusses/index.d.ts.map +0 -1
  64. package/dist/libs/eventBusses/index.js +0 -6
  65. package/dist/libs/eventBusses/requestStatusBus.d.ts.map +0 -1
  66. /package/dist/libs/{eventBusses → event-busses}/command-palette.d.ts +0 -0
  67. /package/dist/libs/{eventBusses → event-busses}/command-palette.js +0 -0
  68. /package/dist/libs/{eventBusses/executeRequestBus.js → event-busses/execute-requestBus.js} +0 -0
  69. /package/dist/libs/{eventBusses/requestStatusBus.js → event-busses/request-status-bus.js} +0 -0
@@ -1,13 +1,13 @@
1
- import { defineComponent as G, useCssVars as H, computed as l, ref as J, resolveComponent as K, openBlock as o, createElementBlock as m, normalizeClass as d, unref as i, createVNode as U, withCtx as C, createBlock as c, createElementVNode as s, toDisplayString as I, createCommentVNode as b, createTextVNode as E, renderSlot as Q, withDirectives as X, Fragment as Y, renderList as Z, vShow as ee, pushScopeId as te, popScopeId as ie } from "vue";
1
+ import { defineComponent as H, useCssVars as G, computed as a, ref as J, resolveComponent as K, openBlock as o, createElementBlock as m, normalizeClass as d, unref as i, createVNode as U, withCtx as C, createBlock as c, createElementVNode as s, toDisplayString as I, createCommentVNode as b, createTextVNode as E, renderSlot as Q, withDirectives as X, Fragment as Y, renderList as Z, vShow as ee, pushScopeId as te, popScopeId as ie } from "vue";
2
2
  import { PathId as re } from "../../router.js";
3
3
  import { useWorkspace as se } from "../../store/workspace.js";
4
- import { ScalarIcon as ae } from "@scalar/components";
5
- import { Draggable as le } from "@scalar/draggable";
4
+ import { ScalarIcon as le } from "@scalar/components";
5
+ import { Draggable as ae } from "@scalar/draggable";
6
6
  import { RouterLink as ne } from "vue-router";
7
7
  import z from "./RequestSidebarItemMenu.vue.js";
8
8
  import oe from "../../components/HttpMethod/HttpMethod.vue.js";
9
9
  import { useSidebar as de } from "../../hooks/useSidebar.js";
10
- const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex flex-row gap-1 items-center" }, fe = { class: "relative" }, me = { class: "flex" }, ce = { class: "z-10 flex h-fit items-center justify-center max-w-[14px]" }, be = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, ge = { class: "relative flex h-fit" }, ve = /* @__PURE__ */ ue(() => /* @__PURE__ */ s("span", null, " ", -1)), he = { key: 2 }, O = "hover:bg-sidebar-active-b indent-padding-left", $e = /* @__PURE__ */ G({
10
+ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex flex-row gap-1 items-center" }, fe = { class: "relative" }, me = { class: "flex" }, ce = { class: "z-10 flex h-fit items-center justify-center max-w-[14px]" }, be = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, ge = { class: "relative flex h-fit" }, ve = /* @__PURE__ */ ue(() => /* @__PURE__ */ s("span", null, " ", -1)), he = { key: 2 }, O = "hover:bg-sidebar-active-b indent-padding-left", $e = /* @__PURE__ */ H({
11
11
  __name: "RequestSidebarItem",
12
12
  props: {
13
13
  isDraggable: { type: Boolean, default: !1 },
@@ -17,43 +17,43 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
17
17
  },
18
18
  emits: ["onDragEnd"],
19
19
  setup(u) {
20
- H((e) => ({
21
- "75f1595a": F.value,
22
- d92033b8: N.value
20
+ G((e) => ({
21
+ "75f1595a": N.value,
22
+ d92033b8: _.value
23
23
  }));
24
24
  const t = u, {
25
25
  activeRequest: w,
26
- activeRouterParams: _,
26
+ activeRouterParams: B,
27
27
  activeWorkspace: g,
28
28
  collections: D,
29
- folders: B,
30
- isReadOnly: a,
29
+ folders: V,
30
+ isReadOnly: l,
31
31
  requests: k,
32
32
  requestExamples: v
33
- } = se(), { collapsedSidebarFolders: y, toggleSidebarFolder: V } = de(), j = l(() => "childUids" in t.item), q = l(() => "spec" in t.item), x = l(() => "summary" in t.item), F = l(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), N = l(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), R = (e) => {
33
+ } = se(), { collapsedSidebarFolders: y, toggleSidebarFolder: j } = de(), F = a(() => "childUids" in t.item), q = a(() => "spec" in t.item), x = a(() => "summary" in t.item), N = a(() => t.parentUids.length ? l.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), _ = a(() => t.parentUids.length ? l.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), R = (e) => {
34
34
  var r;
35
35
  return "spec" in e ? (r = e.spec.info) == null ? void 0 : r.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
36
- }, L = l(() => ("requestUid" in t.item ? k[t.item.requestUid] : t.item).method), P = l(
36
+ }, L = a(() => ("requestUid" in t.item ? k[t.item.requestUid] : t.item).method), M = a(
37
37
  () => {
38
38
  var e;
39
39
  return y[t.item.uid] || ((e = w.value) == null ? void 0 : e.uid) === t.item.uid && t.item.childUids.length > 1;
40
40
  }
41
- ), T = () => "requestUid" in t.item ? `/workspace/${g.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${g.value.uid}/request/${t.item.uid}`, W = l(
42
- () => _.value[re.Request] === "default" && w.value.uid === t.item.uid
43
- ), h = J(null), S = l(() => {
41
+ ), P = () => "requestUid" in t.item ? `/workspace/${g.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${g.value.uid}/request/${t.item.uid}`, T = a(
42
+ () => B.value[re.Request] === "default" && w.value.uid === t.item.uid
43
+ ), h = J(null), S = a(() => {
44
44
  let e = 0.5, r = 0.5;
45
45
  if (!h.value) return { ceiling: e, floor: r };
46
46
  const { draggingItem: p } = h.value;
47
- return !D[p == null ? void 0 : p.id] && q.value ? (e = 1, r = 0) : j.value && !x.value && !q.value && (e = 0.8, r = 0.2), { ceiling: e, floor: r };
48
- }), A = (e, r) => !(g.value.isReadOnly || v[r.id] || D[e.id]);
47
+ return !D[p == null ? void 0 : p.id] && q.value ? (e = 1, r = 0) : F.value && !x.value && !q.value && (e = 0.8, r = 0.2), { ceiling: e, floor: r };
48
+ }), W = (e, r) => !(g.value.isReadOnly || v[r.id] || D[e.id]);
49
49
  return (e, r) => {
50
50
  const p = K("RequestSidebarItem", !0);
51
51
  return o(), m("div", {
52
52
  class: d(["relative flex flex-row", [
53
- i(a) && e.parentUids.length > 1 || !i(a) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
53
+ i(l) && e.parentUids.length > 1 || !i(l) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
54
54
  ]])
55
55
  }, [
56
- U(i(le), {
56
+ U(i(ae), {
57
57
  id: e.item.uid,
58
58
  ref_key: "draggableRef",
59
59
  ref: h,
@@ -71,24 +71,24 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
71
71
  "summary" in e.item || "requestUid" in e.item ? (o(), c(i(ne), {
72
72
  key: 0,
73
73
  class: "no-underline",
74
- to: T()
74
+ to: P()
75
75
  }, {
76
76
  default: C(({ isExactActive: n }) => [
77
77
  s("div", {
78
78
  class: d(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover", [
79
79
  O,
80
- n || W.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
80
+ n || T.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
81
81
  ]]),
82
82
  tabindex: "0"
83
83
  }, [
84
84
  s("span", {
85
85
  class: d(["z-10 font-medium w-full pl-2 word-break-break-word", {
86
- "editable-sidebar-hover-item": !i(a)
86
+ "editable-sidebar-hover-item": !i(l)
87
87
  }])
88
88
  }, I(R(e.item)), 3),
89
89
  s("div", pe, [
90
90
  s("div", fe, [
91
- i(a) ? b("", !0) : (o(), c(z, {
91
+ i(l) ? b("", !0) : (o(), c(z, {
92
92
  key: 0,
93
93
  item: e.item,
94
94
  parentUids: e.parentUids
@@ -105,11 +105,11 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
105
105
  ], 2)
106
106
  ]),
107
107
  _: 1
108
- }, 8, ["to"])) : !i(a) || e.parentUids.length ? (o(), m("button", {
108
+ }, 8, ["to"])) : !i(l) || e.parentUids.length ? (o(), m("button", {
109
109
  key: 1,
110
110
  class: d(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", O]),
111
111
  type: "button",
112
- onClick: r[0] || (r[0] = (n) => i(V)(e.item.uid))
112
+ onClick: r[0] || (r[0] = (n) => i(j)(e.item.uid))
113
113
  }, [
114
114
  s("span", ce, [
115
115
  Q(e.$slots, "leftIcon", {}, () => [
@@ -118,7 +118,7 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
118
118
  "rotate-90": i(y)[e.item.uid]
119
119
  })
120
120
  }, [
121
- U(i(ae), {
121
+ U(i(le), {
122
122
  class: "text-c-3 text-sm",
123
123
  icon: "ChevronRight",
124
124
  size: "sm",
@@ -131,11 +131,11 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
131
131
  s("div", be, [
132
132
  s("span", {
133
133
  class: d(["z-10 font-medium text-left w-full word-break-break-word", {
134
- "editable-sidebar-hover-item": !i(a)
134
+ "editable-sidebar-hover-item": !i(l)
135
135
  }])
136
136
  }, I(R(e.item)), 3),
137
137
  s("div", ge, [
138
- !i(a) && (($ = (f = e.item.spec) == null ? void 0 : f.info) == null ? void 0 : $.title) !== "Drafts" ? (o(), c(z, {
138
+ !i(l) && (($ = (f = e.item.spec) == null ? void 0 : f.info) == null ? void 0 : $.title) !== "Drafts" ? (o(), c(z, {
139
139
  key: 0,
140
140
  item: e.item,
141
141
  parentUids: e.parentUids
@@ -148,13 +148,13 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
148
148
  (o(!0), m(Y, null, Z(x.value ? e.item.childUids.slice(1) : e.item.childUids, (n) => (o(), c(p, {
149
149
  key: n,
150
150
  isDraggable: !i(v)[n],
151
- isDroppable: A,
152
- item: i(B)[n] || i(k)[n] || i(v)[n],
151
+ isDroppable: W,
152
+ item: i(V)[n] || i(k)[n] || i(v)[n],
153
153
  parentUids: [...e.parentUids, e.item.uid],
154
- onOnDragEnd: r[1] || (r[1] = (...M) => e.$emit("onDragEnd", ...M))
154
+ onOnDragEnd: r[1] || (r[1] = (...A) => e.$emit("onDragEnd", ...A))
155
155
  }, null, 8, ["isDraggable", "item", "parentUids"]))), 128))
156
156
  ], 512)), [
157
- [ee, P.value]
157
+ [ee, M.value]
158
158
  ]) : b("", !0)
159
159
  ];
160
160
  }),
@@ -1,7 +1,7 @@
1
- import t from "./RequestSidebarItemMenu.vue2.js";
1
+ import e from "./RequestSidebarItemMenu.vue2.js";
2
2
  /* empty css */
3
- import e from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ e(t, [["__scopeId", "data-v-b4adf477"]]);
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ t(e, [["__scopeId", "data-v-52248ee9"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as V, computed as f, ref as B, openBlock as S, createElementBlock as A, Fragment as F, createVNode as i, unref as t, withCtx as l, createBlock as P, createCommentVNode as T, withKeys as K, withModifiers as W, createElementVNode as d, createTextVNode as E, pushScopeId as j, popScopeId as G } from "vue";
1
+ import { defineComponent as V, computed as f, ref as B, openBlock as b, createElementBlock as A, Fragment as F, createVNode as i, unref as t, withCtx as l, createBlock as P, createCommentVNode as T, withKeys as K, withModifiers as W, createElementVNode as d, createTextVNode as E, pushScopeId as j, popScopeId as G } from "vue";
2
2
  import H from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
3
- import { commandPaletteBus as J } from "../../libs/eventBusses/command-palette.js";
4
3
  import { PathId as R } from "../../router.js";
5
- import { useWorkspace as L } from "../../store/workspace.js";
6
- import { useModal as I, ScalarDropdown as O, ScalarDropdownItem as v, ScalarIcon as u, ScalarButton as h, ScalarModal as N, ScalarTextField as Q } from "@scalar/components";
7
- import { useRouter as X } from "vue-router";
8
- const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Add Example", -1)), Z = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Rename", -1)), ee = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Delete", -1)), te = { class: "flex gap-3" }, me = /* @__PURE__ */ V({
4
+ import { useWorkspace as J } from "../../store/workspace.js";
5
+ import { useModal as I, ScalarDropdown as L, ScalarDropdownItem as v, ScalarIcon as u, ScalarButton as h, ScalarModal as N, ScalarTextField as O } from "@scalar/components";
6
+ import { useRouter as Q } from "vue-router";
7
+ import { commandPaletteBus as X } from "../../libs/event-busses/command-palette.js";
8
+ const x = (o) => (j("data-v-52248ee9"), o = o(), G(), o), Y = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Add Example", -1)), Z = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Rename", -1)), ee = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Delete", -1)), te = { class: "flex gap-3" }, me = /* @__PURE__ */ V({
9
9
  __name: "RequestSidebarItemMenu",
10
10
  props: {
11
11
  parentUids: {},
@@ -19,29 +19,29 @@ const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(
19
19
  folderMutators: w,
20
20
  requestMutators: y,
21
21
  requestExampleMutators: C
22
- } = L(), { replace: b } = X(), U = () => J.emit({
22
+ } = J(), { replace: q } = Q(), U = () => X.emit({
23
23
  commandName: "Add Example",
24
24
  metaData: e.item.uid
25
25
  }), D = () => {
26
- "requestUid" in e.item ? (C.delete(e.item), g.value[R.Examples] === e.item.uid && b(`/workspace/${k.value}/request/default`)) : "summary" in e.item ? (y.delete(
26
+ "requestUid" in e.item ? (C.delete(e.item), g.value[R.Examples] === e.item.uid && q(`/workspace/${k.value}/request/default`)) : "summary" in e.item ? (y.delete(
27
27
  e.item,
28
28
  e.parentUids[e.parentUids.length - 1]
29
- ), g.value[R.Request] === e.item.uid && b(`/workspace/${k.value.uid}/request/default`)) : "spec" in e.item ? _.delete(e.item) : "name" in e.item && w.delete(
29
+ ), g.value[R.Request] === e.item.uid && q(`/workspace/${k.value.uid}/request/default`)) : "spec" in e.item ? _.delete(e.item) : "name" in e.item && w.delete(
30
30
  e.item,
31
31
  e.parentUids[e.parentUids.length - 1]
32
32
  );
33
- }, $ = f(() => "summary" in e.item), q = f(() => {
33
+ }, $ = f(() => "summary" in e.item), M = f(() => {
34
34
  var p;
35
35
  return "summary" in e.item ? e.item.summary || "" : "name" in e.item ? e.item.name || "" : "spec" in e.item && ((p = e.item.spec.info) == null ? void 0 : p.title) || "";
36
- }), s = B(""), M = () => {
36
+ }), s = B(""), S = () => {
37
37
  "summary" in e.item ? y.edit(e.item.uid, "summary", s.value) : "requestUid" in e.item ? C.edit(e.item.uid, "name", s.value) : "spec" in e.item ? _.edit(e.item.uid, "spec.info.title", s.value) : w.edit(e.item.uid, "name", s.value), m.hide();
38
38
  }, m = I(), c = I(), z = () => {
39
- s.value = q.value, m.show();
39
+ s.value = M.value, m.show();
40
40
  }, r = f(() => "requestUid" in e.item ? "Example" : "summary" in e.item ? "Request" : "spec" in e.item ? "Collection" : "Folder");
41
- return (p, a) => (S(), A(F, null, [
42
- i(t(O), { teleport: "#scalar-client" }, {
41
+ return (p, a) => (b(), A(F, null, [
42
+ i(t(L), { teleport: "#scalar-client" }, {
43
43
  items: l(() => [
44
- $.value ? (S(), P(t(v), {
44
+ $.value ? (b(), P(t(v), {
45
45
  key: 0,
46
46
  class: "flex !gap-2",
47
47
  onClick: U
@@ -115,7 +115,7 @@ const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(
115
115
  }, {
116
116
  default: l(() => [
117
117
  i(H, {
118
- variableName: q.value,
118
+ variableName: M.value,
119
119
  warningMessage: "Warning: Deleting this will delete all items inside of this",
120
120
  onClose: a[2] || (a[2] = (n) => t(c).hide()),
121
121
  onDelete: D
@@ -128,12 +128,12 @@ const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(
128
128
  title: `Rename ${r.value}`
129
129
  }, {
130
130
  default: l(() => [
131
- i(t(Q), {
131
+ i(t(O), {
132
132
  modelValue: s.value,
133
133
  "onUpdate:modelValue": a[3] || (a[3] = (n) => s.value = n),
134
134
  label: r.value,
135
135
  labelShadowColor: "var(--scalar-background-1)",
136
- onKeydown: K(W(M, ["prevent"]), ["enter"])
136
+ onKeydown: K(W(S, ["prevent"]), ["enter"])
137
137
  }, null, 8, ["modelValue", "label", "onKeydown"]),
138
138
  d("div", te, [
139
139
  i(t(h), {
@@ -149,7 +149,7 @@ const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(
149
149
  i(t(h), {
150
150
  class: "flex-1",
151
151
  type: "submit",
152
- onClick: M
152
+ onClick: S
153
153
  }, {
154
154
  default: l(() => [
155
155
  E(" Save ")
@@ -3,7 +3,7 @@ import h from "../../../assets/computer.ascii.js";
3
3
  import x from "../../../components/ScalarAsciiArt.vue.js";
4
4
  import i from "../../../components/ScalarHotkey.vue.js";
5
5
  import { useWorkspace as k } from "../../../store/workspace.js";
6
- import { executeRequestBus as v } from "../../../libs/eventBusses/executeRequestBus.js";
6
+ import { executeRequestBus as v } from "../../../libs/event-busses/execute-requestBus.js";
7
7
  const p = (t) => (_("data-v-84b69d7e"), t = t(), f(), t), y = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, b = { class: "flex h-[calc(100%_-_50px)] flex-col items-center justify-center" }, R = {
8
8
  key: 0,
9
9
  class: "scalar-version-number"
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as k, openBlock as c, createElementBlock as i, createVNode as t, unref as e, withCtx as o, Fragment as w, renderList as v, createBlock as g, withModifiers as C, createElementVNode as r, normalizeClass as b, createTextVNode as m, toDisplayString as p } from "vue";
2
- import { commandPaletteBus as y } from "../../../libs/eventBusses/command-palette.js";
3
- import { useWorkspace as D } from "../../../store/workspace.js";
4
- import { ScalarDropdown as S, ScalarDropdownItem as d, ScalarIcon as l, ScalarDropdownDivider as W, ScalarButton as B } from "@scalar/components";
5
- import { useRouter as N } from "vue-router";
2
+ import { useWorkspace as y } from "../../../store/workspace.js";
3
+ import { ScalarDropdown as D, ScalarDropdownItem as d, ScalarIcon as l, ScalarDropdownDivider as S, ScalarButton as W } from "@scalar/components";
4
+ import { useRouter as B } from "vue-router";
5
+ import { commandPaletteBus as N } from "../../../libs/event-busses/command-palette.js";
6
6
  const j = { class: "xl:min-h-header py-2.5 flex items-center border-b-1/2 px-2.5 text-sm" }, z = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, V = { class: "flex items-center justify-center h-4 w-4" }, E = /* @__PURE__ */ r("span", null, "Create new workspace", -1), T = /* @__PURE__ */ k({
7
7
  __name: "WorkspaceDropdown",
8
8
  setup(I) {
9
- const { activeWorkspace: s, workspaces: u } = D(), { push: f } = N(), h = (a) => {
9
+ const { activeWorkspace: s, workspaces: u } = y(), { push: f } = B(), h = (a) => {
10
10
  a !== s.value.uid && f(`/workspace/${a}`);
11
- }, x = () => y.emit({ commandName: "Create Workspace" });
11
+ }, x = () => N.emit({ commandName: "Create Workspace" });
12
12
  return (a, $) => (c(), i("div", j, [
13
- t(e(S), null, {
13
+ t(e(D), null, {
14
14
  items: o(() => [
15
15
  (c(!0), i(w, null, v(e(u), (_, n) => (c(), g(e(d), {
16
16
  key: n,
@@ -34,7 +34,7 @@ const j = { class: "xl:min-h-header py-2.5 flex items-center border-b-1/2 px-2.5
34
34
  ]),
35
35
  _: 2
36
36
  }, 1032, ["onClick"]))), 128)),
37
- t(e(W)),
37
+ t(e(S)),
38
38
  t(e(d), {
39
39
  class: "flex items-center gap-1.5",
40
40
  onClick: x
@@ -52,7 +52,7 @@ const j = { class: "xl:min-h-header py-2.5 flex items-center border-b-1/2 px-2.5
52
52
  })
53
53
  ]),
54
54
  default: o(() => [
55
- t(e(B), {
55
+ t(e(W), {
56
56
  class: "font-normal h-full justify-start py-1.5 px-1.5 text-c-1 hover:bg-b-2 w-fit",
57
57
  fullWidth: "",
58
58
  variant: "ghost"
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.0.45",
21
+ "version": "2.0.46",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -49,9 +49,9 @@
49
49
  "import": "./dist/libs/index.js",
50
50
  "types": "./dist/libs/index.d.ts"
51
51
  },
52
- "./libs/eventBusses": {
53
- "import": "./dist/libs/eventBusses/index.js",
54
- "types": "./dist/libs/eventBusses/index.d.ts"
52
+ "./libs/event-busses": {
53
+ "import": "./dist/libs/event-busses/index.js",
54
+ "types": "./dist/libs/event-busses/index.d.ts"
55
55
  },
56
56
  "./layouts/Modal": {
57
57
  "import": "./dist/layouts/Modal/index.js",
@@ -129,9 +129,9 @@
129
129
  "zod": "^3.22.4",
130
130
  "@scalar/components": "0.12.28",
131
131
  "@scalar/draggable": "0.1.4",
132
- "@scalar/themes": "0.9.21",
133
- "@scalar/oas-utils": "0.2.26",
134
132
  "@scalar/object-utils": "1.1.5",
133
+ "@scalar/themes": "0.9.21",
134
+ "@scalar/oas-utils": "0.2.27",
135
135
  "@scalar/use-codemirror": "0.11.10",
136
136
  "@scalar/use-toasts": "0.7.4",
137
137
  "@scalar/use-tooltip": "1.0.2"
@@ -1 +0,0 @@
1
- {"version":3,"file":"command-palette.d.ts","sourceRoot":"","sources":["../../../src/libs/eventBusses/command-palette.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAA;AAGrF,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAGD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,oEAAiC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"executeRequestBus.d.ts","sourceRoot":"","sources":["../../../src/libs/eventBusses/executeRequestBus.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB,qDAAoC,CAAA"}
@@ -1,3 +0,0 @@
1
- export { executeRequestBus } from './executeRequestBus.js';
2
- export { requestStatusBus } from './requestStatusBus.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/libs/eventBusses/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,6 +0,0 @@
1
- import { executeRequestBus as u } from "./executeRequestBus.js";
2
- import { requestStatusBus as s } from "./requestStatusBus.js";
3
- export {
4
- u as executeRequestBus,
5
- s as requestStatusBus
6
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"requestStatusBus.d.ts","sourceRoot":"","sources":["../../../src/libs/eventBusses/requestStatusBus.ts"],"names":[],"mappings":"AAEA,gCAAgC;AAChC,KAAK,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAO/C,eAAO,MAAM,gBAAgB,8DAAkD,CAAA"}