@scalar/api-client 2.0.49 → 2.0.51

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 (35) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  3. package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
  4. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +105 -99
  5. package/dist/components/ScalarHotkey.vue.d.ts.map +1 -1
  6. package/dist/components/ScalarHotkey.vue.js +4 -4
  7. package/dist/components/Sidebar/Sidebar.vue.d.ts +4 -8
  8. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  9. package/dist/components/Sidebar/Sidebar.vue.js +32 -43
  10. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  11. package/dist/components/TopNav/TopNav.vue.js +2 -2
  12. package/dist/components/TopNav/TopNav.vue2.js +36 -32
  13. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  14. package/dist/layouts/App/ApiClientApp.vue.js +1 -1
  15. package/dist/layouts/App/create-api-client-app.d.ts +16 -14
  16. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  17. package/dist/layouts/Modal/create-api-client-modal.d.ts +32 -28
  18. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  19. package/dist/libs/create-client.d.ts +16 -14
  20. package/dist/libs/create-client.d.ts.map +1 -1
  21. package/dist/libs/event-busses/hot-keys-bus.d.ts +3 -3
  22. package/dist/libs/event-busses/hot-keys-bus.d.ts.map +1 -1
  23. package/dist/libs/event-busses/hot-keys-bus.js +45 -15
  24. package/dist/libs/local-storage.js +1 -1
  25. package/dist/store/workspace.d.ts +188 -96
  26. package/dist/store/workspace.d.ts.map +1 -1
  27. package/dist/store/workspace.js +117 -113
  28. package/dist/style.css +1 -1
  29. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  30. package/dist/views/Request/Request.vue.js +1 -1
  31. package/dist/views/Request/Request.vue2.js +62 -62
  32. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  33. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  34. package/dist/views/Request/RequestSidebarItem.vue2.js +205 -199
  35. package/package.json +4 -4
@@ -1,14 +1,14 @@
1
- import { defineComponent as me, useCssVars as pe, computed as n, ref as P, resolveComponent as fe, openBlock as m, createElementBlock as C, Fragment as A, createElementVNode as r, normalizeClass as c, unref as i, createVNode as o, withCtx as d, createBlock as v, toDisplayString as H, createCommentVNode as w, createTextVNode as D, renderSlot as ce, withDirectives as ve, renderList as be, vShow as ge, withKeys as he, withModifiers as Ue, pushScopeId as we, popScopeId as ye } from "vue";
2
- import De from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
3
- import { PathId as M } from "../../router.js";
4
- import { useWorkspace as ke } from "../../store/workspace.js";
5
- import { useModal as G, ScalarContextMenu as J, ScalarIcon as qe, ScalarModal as Q, ScalarTextField as Re, ScalarButton as X } from "@scalar/components";
6
- import { Draggable as $e } from "@scalar/draggable";
7
- import { useRouter as xe, RouterLink as Se } from "vue-router";
8
- import k from "./RequestSidebarItemMenu.vue.js";
9
- import Ce from "../../components/HttpMethod/HttpMethod.vue.js";
10
- import { useSidebar as Me } from "../../hooks/useSidebar.js";
11
- const Ie = (b) => (we("data-v-846321e2"), b = b(), ye(), b), Te = { class: "flex flex-row gap-1 items-center" }, Ee = { class: "relative" }, ze = { class: "flex items-start" }, Ne = { class: "z-10 flex h-5 items-center justify-center max-w-[14px]" }, Ve = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, Oe = { class: "relative flex h-fit" }, Be = /* @__PURE__ */ Ie(() => /* @__PURE__ */ r("span", null, " ", -1)), Fe = { key: 2 }, je = { class: "flex gap-3" }, Y = "hover:bg-sidebar-active-b indent-padding-left", Ye = /* @__PURE__ */ me({
1
+ import { defineComponent as fe, useCssVars as ce, computed as n, ref as H, resolveComponent as ve, openBlock as m, createElementBlock as M, Fragment as G, createElementVNode as l, normalizeClass as v, unref as i, createVNode as o, withCtx as d, createBlock as b, toDisplayString as J, createCommentVNode as y, createTextVNode as D, renderSlot as be, withDirectives as ge, renderList as he, vShow as Ue, withKeys as we, withModifiers as ye, pushScopeId as De, popScopeId as ke } from "vue";
2
+ import qe from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
3
+ import { PathId as I } from "../../router.js";
4
+ import { useWorkspace as Re } from "../../store/workspace.js";
5
+ import { useModal as Q, ScalarContextMenu as X, ScalarIcon as $e, ScalarModal as Y, ScalarTextField as xe, ScalarButton as Z } from "@scalar/components";
6
+ import { Draggable as Se } from "@scalar/draggable";
7
+ import { useRouter as Ce, RouterLink as Me } from "vue-router";
8
+ import q from "./RequestSidebarItemMenu.vue.js";
9
+ import Ie from "../../components/HttpMethod/HttpMethod.vue.js";
10
+ import { useSidebar as Te } from "../../hooks/useSidebar.js";
11
+ const Ee = (g) => (De("data-v-17dc8b59"), g = g(), ke(), g), ze = { class: "flex flex-row gap-1 items-center" }, Ne = { class: "relative" }, Ve = { class: "flex items-start" }, Oe = { class: "z-10 flex h-5 items-center justify-center max-w-[14px]" }, Be = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, Fe = { class: "relative flex h-fit" }, je = /* @__PURE__ */ Ee(() => /* @__PURE__ */ l("span", null, " ", -1)), Ke = { key: 2 }, Le = { class: "flex gap-3" }, _ = "hover:bg-sidebar-active-b indent-padding-left", _e = /* @__PURE__ */ fe({
12
12
  __name: "RequestSidebarItem",
13
13
  props: {
14
14
  isDraggable: { type: Boolean, default: !1 },
@@ -17,253 +17,259 @@ const Ie = (b) => (we("data-v-846321e2"), b = b(), ye(), b), Te = { class: "flex
17
17
  item: {}
18
18
  },
19
19
  emits: ["onDragEnd"],
20
- setup(b) {
21
- pe((e) => ({
22
- "8cbace56": te.value,
23
- "02fa30c9": ie.value
20
+ setup(g) {
21
+ ce((e) => ({
22
+ "4035a823": se.value,
23
+ d307928a: le.value
24
24
  }));
25
- const t = b, {
26
- activeRequest: I,
27
- activeRouterParams: q,
28
- activeWorkspace: g,
29
- collections: T,
30
- folders: Z,
25
+ const t = g, {
26
+ activeRequest: T,
27
+ activeRouterParams: R,
28
+ activeWorkspace: h,
29
+ collections: E,
30
+ folders: ee,
31
31
  isReadOnly: a,
32
- requests: E,
33
- requestExamples: R,
34
- collectionMutators: z,
35
- folderMutators: N,
36
- requestMutators: V,
37
- requestExampleMutators: O
38
- } = ke(), { replace: B } = xe(), { collapsedSidebarFolders: F, toggleSidebarFolder: _ } = Me(), ee = n(() => "childUids" in t.item), j = n(() => "spec" in t.item), K = n(() => "summary" in t.item), te = n(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), ie = n(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), $ = (e) => {
32
+ requests: z,
33
+ requestExamples: $,
34
+ collectionMutators: N,
35
+ folderMutators: V,
36
+ requestMutators: O,
37
+ requestExampleMutators: B
38
+ } = Re(), { replace: F } = Ce(), { collapsedSidebarFolders: j, toggleSidebarFolder: te } = Te(), ie = n(() => "childUids" in t.item), K = n(() => "spec" in t.item), L = n(() => "summary" in t.item), se = n(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), le = n(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), x = (e) => {
39
39
  var s;
40
40
  return "spec" in e ? (s = e.spec.info) == null ? void 0 : s.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
41
- }, se = n(() => ("requestUid" in t.item ? E[t.item.requestUid] : t.item).method), le = n(
41
+ }, re = n(() => ("requestUid" in t.item ? z[t.item.requestUid] : t.item).method), ae = n(
42
42
  () => {
43
43
  var e;
44
- return F[t.item.uid] || ((e = I.value) == null ? void 0 : e.uid) === t.item.uid && t.item.childUids.length > 1;
44
+ return j[t.item.uid] || ((e = T.value) == null ? void 0 : e.uid) === t.item.uid && t.item.childUids.length > 1;
45
45
  }
46
- ), re = () => "requestUid" in t.item ? `/workspace/${g.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${g.value.uid}/request/${t.item.uid}`, ae = n(
47
- () => q.value[M.Request] === "default" && I.value.uid === t.item.uid
48
- ), x = P(null), L = n(() => {
46
+ ), ne = () => "requestUid" in t.item ? `/workspace/${h.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${h.value.uid}/request/${t.item.uid}`, oe = n(
47
+ () => R.value[I.Request] === "default" && T.value.uid === t.item.uid
48
+ ), S = H(null), W = n(() => {
49
49
  let e = 0.5, s = 0.5;
50
- if (!x.value) return { ceiling: e, floor: s };
51
- const { draggingItem: U } = x.value;
52
- return !T[U == null ? void 0 : U.id] && j.value ? (e = 1, s = 0) : ee.value && !K.value && !j.value && (e = 0.8, s = 0.2), { ceiling: e, floor: s };
53
- }), ne = (e, s) => !(g.value.isReadOnly || R[s.id] || T[e.id]), p = P(""), y = G(), h = G(), W = () => {
54
- "summary" in t.item ? V.edit(t.item.uid, "summary", p.value) : "requestUid" in t.item ? O.edit(t.item.uid, "name", p.value) : "spec" in t.item ? z.edit(t.item.uid, "spec.info.title", p.value) : N.edit(t.item.uid, "name", p.value), y.hide();
55
- }, S = () => {
56
- p.value = $(t.item) || "", y.show();
57
- }, oe = () => {
58
- "requestUid" in t.item ? (O.delete(t.item), q.value[M.Examples] === t.item.uid && B(`/workspace/${g.value}/request/default`)) : "summary" in t.item ? (V.delete(
50
+ if (!S.value) return { ceiling: e, floor: s };
51
+ const { draggingItem: w } = S.value;
52
+ return !E[w == null ? void 0 : w.id] && K.value ? (e = 1, s = 0) : ie.value && !L.value && !K.value && (e = 0.8, s = 0.2), { ceiling: e, floor: s };
53
+ }), de = (e, s) => !(h.value.isReadOnly || $[s.id] || E[e.id]), f = H(""), k = Q(), U = Q(), P = () => {
54
+ "summary" in t.item ? O.edit(t.item.uid, "summary", f.value) : "requestUid" in t.item ? B.edit(t.item.uid, "name", f.value) : "spec" in t.item ? N.edit(t.item.uid, "spec.info.title", f.value) : V.edit(t.item.uid, "name", f.value), k.hide();
55
+ }, C = () => {
56
+ f.value = x(t.item) || "", k.show();
57
+ }, ue = () => {
58
+ "requestUid" in t.item ? (B.delete(t.item), R.value[I.Examples] === t.item.uid && F(`/workspace/${h.value}/request/default`)) : "summary" in t.item ? (O.delete(
59
59
  t.item,
60
60
  t.parentUids[t.parentUids.length - 1]
61
- ), q.value[M.Request] === t.item.uid && B(`/workspace/${g.value.uid}/request/default`)) : "spec" in t.item ? z.delete(t.item) : "name" in t.item && N.delete(
61
+ ), R.value[I.Request] === t.item.uid && F(`/workspace/${h.value.uid}/request/default`)) : "spec" in t.item ? N.delete(t.item) : "name" in t.item && V.delete(
62
62
  t.item,
63
63
  t.parentUids[t.parentUids.length - 1]
64
64
  );
65
- }, de = n(() => {
65
+ }, me = n(() => {
66
66
  var e;
67
67
  return "summary" in t.item ? t.item.summary || "" : "name" in t.item ? t.item.name || "" : "spec" in t.item && ((e = t.item.spec.info) == null ? void 0 : e.title) || "";
68
- }), f = n(() => "requestUid" in t.item ? "Example" : "summary" in t.item ? "Request" : "spec" in t.item ? "Collection" : "Folder");
68
+ }), c = n(() => "requestUid" in t.item ? "Example" : "summary" in t.item ? "Request" : "spec" in t.item ? "Collection" : "Folder");
69
69
  return (e, s) => {
70
- const U = fe("RequestSidebarItem", !0);
71
- return m(), C(A, null, [
72
- r("div", {
73
- class: c(["relative flex flex-row", [
70
+ const w = ve("RequestSidebarItem", !0);
71
+ return m(), M(G, null, [
72
+ l("div", {
73
+ class: v(["relative flex flex-row", [
74
74
  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" : ""
75
75
  ]])
76
76
  }, [
77
- o(i($e), {
77
+ o(i(Se), {
78
78
  id: e.item.uid,
79
79
  ref_key: "draggableRef",
80
- ref: x,
81
- ceiling: L.value.ceiling,
80
+ ref: S,
81
+ ceiling: W.value.ceiling,
82
82
  class: "flex flex-1 flex-col gap-[.5px] text-sm",
83
- floor: L.value.floor,
83
+ floor: W.value.floor,
84
84
  isDraggable: e.isDraggable,
85
85
  isDroppable: e.isDroppable,
86
86
  parentIds: e.parentUids,
87
- onOnDragEnd: s[5] || (s[5] = (...l) => e.$emit("onDragEnd", ...l))
87
+ onOnDragEnd: s[5] || (s[5] = (...p) => e.$emit("onDragEnd", ...p))
88
88
  }, {
89
- default: d(() => [
90
- "summary" in e.item || "requestUid" in e.item ? (m(), v(i(Se), {
91
- key: 0,
92
- class: "no-underline",
93
- to: re()
94
- }, {
95
- default: d(({ isExactActive: l }) => [
96
- o(i(J), { disabled: i(a) }, {
97
- trigger: d(() => [
98
- r("div", {
99
- class: c(["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 w-full", [
100
- Y,
101
- l || ae.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
102
- ]]),
103
- tabindex: "0"
89
+ default: d(() => {
90
+ var p, A;
91
+ return [
92
+ "summary" in e.item || "requestUid" in e.item ? (m(), b(i(Me), {
93
+ key: 0,
94
+ class: "no-underline",
95
+ to: ne()
96
+ }, {
97
+ default: d(({ isExactActive: r }) => [
98
+ o(i(X), { disabled: i(a) }, {
99
+ trigger: d(() => [
100
+ l("div", {
101
+ class: v(["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 w-full", [
102
+ _,
103
+ r || oe.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
104
+ ]]),
105
+ tabindex: "0"
106
+ }, [
107
+ l("span", {
108
+ class: v(["z-10 font-medium w-full pl-2 word-break-break-word", {
109
+ "editable-sidebar-hover-item": !i(a)
110
+ }])
111
+ }, J(x(e.item)), 3),
112
+ l("div", ze, [
113
+ l("div", Ne, [
114
+ i(a) ? y("", !0) : (m(), b(q, {
115
+ key: 0,
116
+ item: e.item,
117
+ parentUids: e.parentUids,
118
+ resourceTitle: c.value,
119
+ onDelete: s[0] || (s[0] = (u) => i(U).show()),
120
+ onRename: C
121
+ }, null, 8, ["item", "parentUids", "resourceTitle"]))
122
+ ]),
123
+ l("span", Ve, [
124
+ D("   "),
125
+ o(i(Ie), {
126
+ class: "font-bold",
127
+ method: re.value
128
+ }, null, 8, ["method"])
129
+ ])
130
+ ])
131
+ ], 2)
132
+ ]),
133
+ content: d(() => [
134
+ o(q, {
135
+ item: e.item,
136
+ parentUids: e.parentUids,
137
+ resourceTitle: c.value,
138
+ static: "",
139
+ onDelete: s[1] || (s[1] = (u) => i(U).show()),
140
+ onRename: C
141
+ }, null, 8, ["item", "parentUids", "resourceTitle"])
142
+ ]),
143
+ _: 2
144
+ }, 1032, ["disabled"])
145
+ ]),
146
+ _: 1
147
+ }, 8, ["to"])) : !i(a) || e.parentUids.length ? (m(), b(i(X), {
148
+ key: 1,
149
+ disabled: i(a) || ((A = (p = e.item.spec) == null ? void 0 : p.info) == null ? void 0 : A.title) === "Drafts"
150
+ }, {
151
+ trigger: d(() => {
152
+ var r, u;
153
+ return [
154
+ l("button", {
155
+ class: v(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", _]),
156
+ type: "button",
157
+ onClick: s[2] || (s[2] = (pe) => i(te)(e.item.uid))
104
158
  }, [
105
- r("span", {
106
- class: c(["z-10 font-medium w-full pl-2 word-break-break-word", {
107
- "editable-sidebar-hover-item": !i(a)
108
- }])
109
- }, H($(e.item)), 3),
110
- r("div", Te, [
111
- r("div", Ee, [
112
- i(a) ? w("", !0) : (m(), v(k, {
159
+ l("span", Oe, [
160
+ be(e.$slots, "leftIcon", {}, () => [
161
+ l("div", {
162
+ class: v({
163
+ "rotate-90": i(j)[e.item.uid]
164
+ })
165
+ }, [
166
+ o(i($e), {
167
+ class: "text-c-3 text-sm",
168
+ icon: "ChevronRight",
169
+ size: "sm",
170
+ thickness: "2.5"
171
+ })
172
+ ], 2)
173
+ ], !0),
174
+ D("   ")
175
+ ]),
176
+ l("div", Be, [
177
+ l("span", {
178
+ class: v(["z-10 font-medium text-left w-full word-break-break-word", {
179
+ "editable-sidebar-hover-item": !i(a)
180
+ }])
181
+ }, J(x(e.item)), 3),
182
+ l("div", Fe, [
183
+ !i(a) && ((u = (r = e.item.spec) == null ? void 0 : r.info) == null ? void 0 : u.title) !== "Drafts" ? (m(), b(q, {
113
184
  key: 0,
114
185
  item: e.item,
115
186
  parentUids: e.parentUids,
116
- resourceTitle: f.value,
117
- onDelete: s[0] || (s[0] = (u) => i(h).show()),
118
- onRename: S
119
- }, null, 8, ["item", "parentUids", "resourceTitle"]))
120
- ]),
121
- r("span", ze, [
122
- D("   "),
123
- o(i(Ce), {
124
- class: "font-bold",
125
- method: se.value
126
- }, null, 8, ["method"])
187
+ resourceTitle: c.value
188
+ }, null, 8, ["item", "parentUids", "resourceTitle"])) : y("", !0),
189
+ je
127
190
  ])
128
191
  ])
129
- ], 2)
130
- ]),
131
- content: d(() => [
132
- o(k, {
192
+ ])
193
+ ];
194
+ }),
195
+ content: d(() => {
196
+ var r, u;
197
+ return [
198
+ !i(a) && ((u = (r = e.item.spec) == null ? void 0 : r.info) == null ? void 0 : u.title) !== "Drafts" ? (m(), b(q, {
199
+ key: 0,
133
200
  item: e.item,
134
201
  parentUids: e.parentUids,
135
- resourceTitle: f.value,
202
+ resourceTitle: c.value,
136
203
  static: "",
137
- onDelete: s[1] || (s[1] = (u) => i(h).show()),
138
- onRename: S
139
- }, null, 8, ["item", "parentUids", "resourceTitle"])
140
- ]),
141
- _: 2
142
- }, 1032, ["disabled"])
143
- ]),
144
- _: 1
145
- }, 8, ["to"])) : !i(a) || e.parentUids.length ? (m(), v(i(J), {
146
- key: 1,
147
- disabled: i(a)
148
- }, {
149
- trigger: d(() => {
150
- var l, u;
151
- return [
152
- r("button", {
153
- class: c(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", Y]),
154
- type: "button",
155
- onClick: s[2] || (s[2] = (ue) => i(_)(e.item.uid))
156
- }, [
157
- r("span", Ne, [
158
- ce(e.$slots, "leftIcon", {}, () => [
159
- r("div", {
160
- class: c({
161
- "rotate-90": i(F)[e.item.uid]
162
- })
163
- }, [
164
- o(i(qe), {
165
- class: "text-c-3 text-sm",
166
- icon: "ChevronRight",
167
- size: "sm",
168
- thickness: "2.5"
169
- })
170
- ], 2)
171
- ], !0),
172
- D("   ")
173
- ]),
174
- r("div", Ve, [
175
- r("span", {
176
- class: c(["z-10 font-medium text-left w-full word-break-break-word", {
177
- "editable-sidebar-hover-item": !i(a)
178
- }])
179
- }, H($(e.item)), 3),
180
- r("div", Oe, [
181
- !i(a) && ((u = (l = e.item.spec) == null ? void 0 : l.info) == null ? void 0 : u.title) !== "Drafts" ? (m(), v(k, {
182
- key: 0,
183
- item: e.item,
184
- parentUids: e.parentUids,
185
- resourceTitle: f.value
186
- }, null, 8, ["item", "parentUids", "resourceTitle"])) : w("", !0),
187
- Be
188
- ])
189
- ])
190
- ])
191
- ];
192
- }),
193
- content: d(() => {
194
- var l, u;
195
- return [
196
- !i(a) && ((u = (l = e.item.spec) == null ? void 0 : l.info) == null ? void 0 : u.title) !== "Drafts" ? (m(), v(k, {
197
- key: 0,
198
- item: e.item,
199
- parentUids: e.parentUids,
200
- resourceTitle: f.value,
201
- static: "",
202
- onDelete: s[3] || (s[3] = (ue) => i(h).show()),
203
- onRename: S
204
- }, null, 8, ["item", "parentUids", "resourceTitle"])) : w("", !0)
205
- ];
206
- }),
207
- _: 3
208
- }, 8, ["disabled"])) : w("", !0),
209
- "childUids" in e.item ? ve((m(), C("div", Fe, [
210
- (m(!0), C(A, null, be(K.value ? e.item.childUids.slice(1) : e.item.childUids, (l) => (m(), v(U, {
211
- key: l,
212
- isDraggable: !i(R)[l],
213
- isDroppable: ne,
214
- item: i(Z)[l] || i(E)[l] || i(R)[l],
215
- parentUids: [...e.parentUids, e.item.uid],
216
- onOnDragEnd: s[4] || (s[4] = (...u) => e.$emit("onDragEnd", ...u))
217
- }, null, 8, ["isDraggable", "item", "parentUids"]))), 128))
218
- ], 512)), [
219
- [ge, le.value]
220
- ]) : w("", !0)
221
- ]),
204
+ onDelete: s[3] || (s[3] = (pe) => i(U).show()),
205
+ onRename: C
206
+ }, null, 8, ["item", "parentUids", "resourceTitle"])) : y("", !0)
207
+ ];
208
+ }),
209
+ default: d(() => [
210
+ D(" > ")
211
+ ]),
212
+ _: 3
213
+ }, 8, ["disabled"])) : y("", !0),
214
+ "childUids" in e.item ? ge((m(), M("div", Ke, [
215
+ (m(!0), M(G, null, he(L.value ? e.item.childUids.slice(1) : e.item.childUids, (r) => (m(), b(w, {
216
+ key: r,
217
+ isDraggable: !i($)[r],
218
+ isDroppable: de,
219
+ item: i(ee)[r] || i(z)[r] || i($)[r],
220
+ parentUids: [...e.parentUids, e.item.uid],
221
+ onOnDragEnd: s[4] || (s[4] = (...u) => e.$emit("onDragEnd", ...u))
222
+ }, null, 8, ["isDraggable", "item", "parentUids"]))), 128))
223
+ ], 512)), [
224
+ [Ue, ae.value]
225
+ ]) : y("", !0)
226
+ ];
227
+ }),
222
228
  _: 3
223
229
  }, 8, ["id", "ceiling", "floor", "isDraggable", "isDroppable", "parentIds"])
224
230
  ], 2),
225
- o(i(Q), {
231
+ o(i(Y), {
226
232
  size: "sm",
227
- state: i(h),
228
- title: `Delete ${f.value}`
233
+ state: i(U),
234
+ title: `Delete ${c.value}`
229
235
  }, {
230
236
  default: d(() => [
231
- o(De, {
232
- variableName: de.value,
237
+ o(qe, {
238
+ variableName: me.value,
233
239
  warningMessage: "Warning: Deleting this will delete all items inside of this",
234
- onClose: s[6] || (s[6] = (l) => i(h).hide()),
235
- onDelete: oe
240
+ onClose: s[6] || (s[6] = (p) => i(U).hide()),
241
+ onDelete: ue
236
242
  }, null, 8, ["variableName"])
237
243
  ]),
238
244
  _: 1
239
245
  }, 8, ["state", "title"]),
240
- o(i(Q), {
241
- state: i(y),
242
- title: `Rename ${f.value}`
246
+ o(i(Y), {
247
+ state: i(k),
248
+ title: `Rename ${c.value}`
243
249
  }, {
244
250
  default: d(() => [
245
- o(i(Re), {
246
- modelValue: p.value,
247
- "onUpdate:modelValue": s[7] || (s[7] = (l) => p.value = l),
248
- label: f.value,
251
+ o(i(xe), {
252
+ modelValue: f.value,
253
+ "onUpdate:modelValue": s[7] || (s[7] = (p) => f.value = p),
254
+ label: c.value,
249
255
  labelShadowColor: "var(--scalar-background-1)",
250
- onKeydown: he(Ue(W, ["prevent"]), ["enter"])
256
+ onKeydown: we(ye(P, ["prevent"]), ["enter"])
251
257
  }, null, 8, ["modelValue", "label", "onKeydown"]),
252
- r("div", je, [
253
- o(i(X), {
258
+ l("div", Le, [
259
+ o(i(Z), {
254
260
  class: "flex-1",
255
261
  variant: "outlined",
256
- onClick: s[8] || (s[8] = (l) => i(y).hide())
262
+ onClick: s[8] || (s[8] = (p) => i(k).hide())
257
263
  }, {
258
264
  default: d(() => [
259
265
  D(" Cancel ")
260
266
  ]),
261
267
  _: 1
262
268
  }),
263
- o(i(X), {
269
+ o(i(Z), {
264
270
  class: "flex-1",
265
271
  type: "submit",
266
- onClick: W
272
+ onClick: P
267
273
  }, {
268
274
  default: d(() => [
269
275
  D(" Save ")
@@ -279,5 +285,5 @@ const Ie = (b) => (we("data-v-846321e2"), b = b(), ye(), b), Te = { class: "flex
279
285
  }
280
286
  });
281
287
  export {
282
- Ye as default
288
+ _e as default
283
289
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.0.49",
21
+ "version": "2.0.51",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -127,11 +127,11 @@
127
127
  "vue-router": "^4.3.0",
128
128
  "whatwg-mimetype": "^4.0.0",
129
129
  "zod": "^3.22.4",
130
+ "@scalar/components": "0.12.32",
130
131
  "@scalar/draggable": "0.1.4",
131
- "@scalar/components": "0.12.31",
132
- "@scalar/oas-utils": "0.2.30",
133
- "@scalar/themes": "0.9.23",
132
+ "@scalar/oas-utils": "0.2.32",
134
133
  "@scalar/object-utils": "1.1.7",
134
+ "@scalar/themes": "0.9.23",
135
135
  "@scalar/use-codemirror": "0.11.10",
136
136
  "@scalar/use-toasts": "0.7.5",
137
137
  "@scalar/use-tooltip": "1.0.2"