@scalar/api-client 2.1.11 → 2.1.12
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.
- package/CHANGELOG.md +24 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionForm.vue.js +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandActionInput.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandActionInput.vue.js +27 -23
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +32 -31
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +43 -42
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +26 -25
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +31 -30
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +35 -34
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +28 -27
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +2 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +18 -17
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +14 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +112 -103
- package/dist/components/DataTable/DataTableInput.vue.js +2 -2
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts +7 -0
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/DropEventListener.vue.js +75 -0
- package/dist/components/ImportCollection/DropEventListener.vue2.js +4 -0
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts +12 -0
- package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +30 -0
- package/dist/components/ImportCollection/ImportCollectionListener.vue2.js +4 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +20 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +101 -0
- package/dist/components/ImportCollection/ImportCollectionModal.vue2.js +4 -0
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts +22 -0
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/ImportNowButton.vue.js +85 -0
- package/dist/components/ImportCollection/ImportNowButton.vue2.js +4 -0
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +16 -0
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +19 -0
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +7 -0
- package/dist/components/ImportCollection/PasteEventListener.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/PasteEventListener.vue.js +24 -0
- package/dist/components/ImportCollection/PasteEventListener.vue2.js +4 -0
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +7 -0
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +15 -0
- package/dist/components/ImportCollection/UrlQueryParameterChecker.vue2.js +4 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +28 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -0
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +55 -0
- package/dist/components/ImportCollection/index.d.ts +2 -0
- package/dist/components/ImportCollection/index.d.ts.map +1 -0
- package/dist/components/ImportCollection/index.js +4 -0
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.d.ts +5 -0
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/getOpenApiDocumentVersion.js +20 -0
- package/dist/components/ImportCollection/utils/isDocument.d.ts +3 -0
- package/dist/components/ImportCollection/utils/isDocument.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/isDocument.js +7 -0
- package/dist/components/ImportCollection/utils/isUrl.d.ts +3 -0
- package/dist/components/ImportCollection/utils/isUrl.d.ts.map +1 -0
- package/dist/components/ImportCollection/utils/isUrl.js +6 -0
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +129 -2
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +258 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +130 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +54 -41
- package/dist/libs/send-request.d.ts +37 -1
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +24 -19
- package/dist/store/import-spec.d.ts +128 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +24 -23
- package/dist/store/store.d.ts +256 -4
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +14 -14
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +39 -39
- package/package.json +14 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Request.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d69f8ce9"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebar.vue"],"names":[],"mappings":";
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestSidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e83264ab"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -3,8 +3,8 @@ 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
5
|
import V from "../../components/ScalarAsciiArt.vue.js";
|
|
6
|
-
import { useSearch as
|
|
7
|
-
import
|
|
6
|
+
import { useSearch as pe } from "../../components/Search/useSearch.js";
|
|
7
|
+
import me 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
10
|
import { ScalarSearchInput as fe, ScalarSearchResultList as be, ScalarSearchResultItem as he, ScalarIcon as q } from "@scalar/components";
|
|
@@ -16,7 +16,7 @@ import { useSidebar as ye } from "../../hooks/useSidebar.js";
|
|
|
16
16
|
import { useWorkspace as ke } from "../../store/store.js";
|
|
17
17
|
import { hotKeyBus as E } from "../../libs/event-busses/hot-keys-bus.js";
|
|
18
18
|
import { commandPaletteBus as F } from "../../libs/event-busses/command-palette-bus.js";
|
|
19
|
-
const ge = (
|
|
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" }, [
|
|
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,8 +26,8 @@ const ge = (p) => (ae("data-v-12ed2604"), p = p(), ie(), p), Ie = { class: "sear
|
|
|
26
26
|
isReadonly: { type: Boolean }
|
|
27
27
|
},
|
|
28
28
|
emits: ["update:showSidebar", "newTab"],
|
|
29
|
-
setup(
|
|
30
|
-
const O =
|
|
29
|
+
setup(m, { emit: M }) {
|
|
30
|
+
const O = m, R = M, w = ke(), {
|
|
31
31
|
activeWorkspaceCollections: P,
|
|
32
32
|
activeRequest: z,
|
|
33
33
|
activeWorkspaceRequests: y,
|
|
@@ -53,7 +53,7 @@ const ge = (p) => (ae("data-v-12ed2604"), p = p(), ie(), p), Ie = { class: "sear
|
|
|
53
53
|
searchResultRefs: j,
|
|
54
54
|
navigateSearchResults: x,
|
|
55
55
|
selectSearchResult: G
|
|
56
|
-
} =
|
|
56
|
+
} = pe(), C = (r) => {
|
|
57
57
|
var t;
|
|
58
58
|
r.toggleSidebar && R("update:showSidebar", O.showSidebar), r.openCommandPalette && (r.openCommandPalette.preventDefault(), F.emit()), r.focusRequestSearch && ((t = I.value) == null || t.focus());
|
|
59
59
|
};
|
|
@@ -96,15 +96,15 @@ const ge = (p) => (ae("data-v-12ed2604"), p = p(), ie(), p), Ie = { class: "sear
|
|
|
96
96
|
noResults: !e(k).length
|
|
97
97
|
}, {
|
|
98
98
|
default: n(() => [
|
|
99
|
-
(a(!0), h(S, null, D(e(k), (o,
|
|
99
|
+
(a(!0), h(S, null, D(e(k), (o, p) => (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)[
|
|
104
|
-
active: e(g) ===
|
|
103
|
+
ref: (s) => e(j)[p] = s,
|
|
104
|
+
active: e(g) === p,
|
|
105
105
|
class: "px-2",
|
|
106
106
|
onClick: (s) => e(W)(o),
|
|
107
|
-
onFocus: (s) => g.value =
|
|
107
|
+
onFocus: (s) => g.value = p
|
|
108
108
|
}, {
|
|
109
109
|
addon: n(() => [
|
|
110
110
|
l(de, {
|
|
@@ -120,10 +120,10 @@ const ge = (p) => (ae("data-v-12ed2604"), p = p(), ie(), p), Ie = { class: "sear
|
|
|
120
120
|
]),
|
|
121
121
|
_: 1
|
|
122
122
|
}, 8, ["noResults"])) : (a(!0), h(S, { key: 1 }, D(e(P), (o) => {
|
|
123
|
-
var
|
|
123
|
+
var p;
|
|
124
124
|
return a(), d(ve, {
|
|
125
125
|
key: o.uid,
|
|
126
|
-
isDraggable: !r.isReadonly && ((
|
|
126
|
+
isDraggable: !r.isReadonly && ((p = o.info) == null ? void 0 : p.title) !== "Drafts",
|
|
127
127
|
isDroppable: e(K),
|
|
128
128
|
menuItem: u,
|
|
129
129
|
parentUids: [],
|
|
@@ -183,7 +183,7 @@ const ge = (p) => (ae("data-v-12ed2604"), p = p(), ie(), p), Ie = { class: "sear
|
|
|
183
183
|
]),
|
|
184
184
|
De
|
|
185
185
|
]),
|
|
186
|
-
r.isReadonly ? B("", !0) : (a(), d(
|
|
186
|
+
r.isReadonly ? B("", !0) : (a(), d(me, {
|
|
187
187
|
key: 0,
|
|
188
188
|
click: e(F).emit
|
|
189
189
|
}, {
|
|
@@ -199,7 +199,7 @@ const ge = (p) => (ae("data-v-12ed2604"), p = p(), ie(), p), Ie = { class: "sear
|
|
|
199
199
|
r.isReadonly ? void 0 : {
|
|
200
200
|
name: "header",
|
|
201
201
|
fn: n(() => [
|
|
202
|
-
l(e(we))
|
|
202
|
+
l(e(we), { class: "xl:min-h-header xl:py-2.5 py-1 px-2.5 border-b-1/2" })
|
|
203
203
|
]),
|
|
204
204
|
key: "0"
|
|
205
205
|
}
|
|
@@ -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.
|
|
24
|
+
}, x = "2.1.12";
|
|
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, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AA07BA,wBAKG"}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as R, computed as O, ref as M, openBlock as u, createElementBlock as W, createElementVNode as o, createVNode as t, unref as e, withCtx as s, Fragment as A, renderList as I, createBlock as x, withModifiers as r, normalizeClass as L, toDisplayString as z } from "vue";
|
|
2
2
|
import U from "../../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
|
|
3
3
|
import V from "../../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
4
|
-
import { useModal as
|
|
4
|
+
import { useModal as C, ScalarDropdown as $, ScalarDropdownItem as m, ScalarIcon as i, ScalarTooltip as q, ScalarButton as S, ScalarDropdownDivider as F, ScalarModal as N } from "@scalar/components";
|
|
5
5
|
import { useRouter as P } from "vue-router";
|
|
6
6
|
import { useWorkspace as Y } from "../../../store/store.js";
|
|
7
7
|
import { commandPaletteBus as G } from "../../../libs/event-busses/command-palette-bus.js";
|
|
8
|
-
const H = { class: "
|
|
8
|
+
const H = { class: "flex items-center text-sm w-[inherit]" }, J = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, K = { class: "line-clamp-1 text-left w-[calc(100%-10px)]" }, Q = { class: "text-ellipsis overflow-hidden" }, X = /* @__PURE__ */ o("span", null, "Rename", -1), Z = /* @__PURE__ */ o("span", null, "Delete", -1), ee = /* @__PURE__ */ o("div", { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, [
|
|
9
9
|
/* @__PURE__ */ o("div", { class: "flex items-center text-c-2" }, [
|
|
10
10
|
/* @__PURE__ */ o("span", null, "Only workspace cannot be deleted.")
|
|
11
11
|
])
|
|
12
|
-
], -1), te = /* @__PURE__ */ o("span", null, "Delete", -1), se = { class: "flex items-center justify-center h-4 w-4" }, ne = /* @__PURE__ */ o("span", null, "Create Workspace", -1), ue = /* @__PURE__ */
|
|
12
|
+
], -1), te = /* @__PURE__ */ o("span", null, "Delete", -1), se = { class: "flex items-center justify-center h-4 w-4" }, ne = /* @__PURE__ */ o("span", null, "Create Workspace", -1), ue = /* @__PURE__ */ R({
|
|
13
13
|
__name: "WorkspaceDropdown",
|
|
14
14
|
setup(oe) {
|
|
15
|
-
const { activeWorkspace: f, workspaces: d, workspaceMutators: _ } = Y(), { push: g } = P(),
|
|
15
|
+
const { activeWorkspace: f, workspaces: d, workspaceMutators: _ } = Y(), { push: g } = P(), T = (n) => {
|
|
16
16
|
n !== f.value.uid && g(`/workspace/${n}`);
|
|
17
|
-
}, b =
|
|
18
|
-
h.value = d[n].name,
|
|
19
|
-
},
|
|
20
|
-
n.trim() && (_.edit(
|
|
17
|
+
}, b = O(() => Object.keys(d).length === 1), E = () => G.emit({ commandName: "Create Workspace" }), h = M(""), c = M(""), v = C(), w = C(), y = (n) => {
|
|
18
|
+
h.value = d[n].name, c.value = n, v.show();
|
|
19
|
+
}, j = (n) => {
|
|
20
|
+
n.trim() && (_.edit(c.value, "name", n.trim()), v.hide());
|
|
21
21
|
}, D = (n) => {
|
|
22
|
-
h.value = d[n].name,
|
|
23
|
-
},
|
|
22
|
+
h.value = d[n].name, c.value = n, w.show();
|
|
23
|
+
}, B = async () => {
|
|
24
24
|
if (!b.value) {
|
|
25
|
-
const n = f.value.uid ===
|
|
26
|
-
if (delete a[
|
|
25
|
+
const n = f.value.uid === c.value, a = { ...d };
|
|
26
|
+
if (delete a[c.value], _.delete(c.value), n) {
|
|
27
27
|
const p = Object.keys(a)[0];
|
|
28
28
|
await g(`/workspace/${p}/`);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
w.hide();
|
|
32
32
|
};
|
|
33
|
-
return (n, a) => (u(), W(
|
|
33
|
+
return (n, a) => (u(), W("div", null, [
|
|
34
34
|
o("div", H, [
|
|
35
|
-
t(e(
|
|
35
|
+
t(e($), null, {
|
|
36
36
|
items: s(() => [
|
|
37
|
-
(u(!0), W(
|
|
37
|
+
(u(!0), W(A, null, I(e(d), (p, l) => (u(), x(e(m), {
|
|
38
38
|
key: l,
|
|
39
39
|
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden w-full",
|
|
40
|
-
onClick:
|
|
40
|
+
onClick: r((k) => T(l), ["stop"])
|
|
41
41
|
}, {
|
|
42
42
|
default: s(() => [
|
|
43
43
|
o("div", {
|
|
@@ -52,13 +52,13 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
52
52
|
thickness: "3.5"
|
|
53
53
|
})
|
|
54
54
|
], 2),
|
|
55
|
-
o("span", Q,
|
|
56
|
-
t(e(
|
|
55
|
+
o("span", Q, z(p.name), 1),
|
|
56
|
+
t(e($), { teleport: ".scalar-client" }, {
|
|
57
57
|
items: s(() => [
|
|
58
58
|
t(e(m), {
|
|
59
59
|
class: "flex gap-2",
|
|
60
|
-
onMousedown: (
|
|
61
|
-
onTouchend:
|
|
60
|
+
onMousedown: (k) => y(l),
|
|
61
|
+
onTouchend: r((k) => y(l), ["prevent"])
|
|
62
62
|
}, {
|
|
63
63
|
default: s(() => [
|
|
64
64
|
t(e(i), {
|
|
@@ -71,7 +71,7 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
71
71
|
]),
|
|
72
72
|
_: 2
|
|
73
73
|
}, 1032, ["onMousedown", "onTouchend"]),
|
|
74
|
-
b.value ? (u(),
|
|
74
|
+
b.value ? (u(), x(e(q), {
|
|
75
75
|
key: 0,
|
|
76
76
|
class: "z-10",
|
|
77
77
|
side: "bottom"
|
|
@@ -80,9 +80,9 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
80
80
|
t(e(m), {
|
|
81
81
|
class: "flex gap-2 w-full",
|
|
82
82
|
disabled: "",
|
|
83
|
-
onMousedown: a[0] || (a[0] =
|
|
83
|
+
onMousedown: a[0] || (a[0] = r(() => {
|
|
84
84
|
}, ["prevent"])),
|
|
85
|
-
onTouchend: a[1] || (a[1] =
|
|
85
|
+
onTouchend: a[1] || (a[1] = r(() => {
|
|
86
86
|
}, ["prevent"]))
|
|
87
87
|
}, {
|
|
88
88
|
default: s(() => [
|
|
@@ -101,11 +101,11 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
101
101
|
ee
|
|
102
102
|
]),
|
|
103
103
|
_: 1
|
|
104
|
-
})) : (u(),
|
|
104
|
+
})) : (u(), x(e(m), {
|
|
105
105
|
key: 1,
|
|
106
106
|
class: "flex !gap-2",
|
|
107
|
-
onMousedown:
|
|
108
|
-
onTouchend:
|
|
107
|
+
onMousedown: r((k) => D(l), ["prevent"]),
|
|
108
|
+
onTouchend: r((k) => D(l), ["prevent"])
|
|
109
109
|
}, {
|
|
110
110
|
default: s(() => [
|
|
111
111
|
t(e(i), {
|
|
@@ -120,7 +120,7 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
120
120
|
}, 1032, ["onMousedown", "onTouchend"]))
|
|
121
121
|
]),
|
|
122
122
|
default: s(() => [
|
|
123
|
-
t(e(
|
|
123
|
+
t(e(S), {
|
|
124
124
|
class: "px-0.5 py-0 hover:bg-b-3 group-hover/item:flex aspect-square ml-auto -mr-1 h-fit",
|
|
125
125
|
size: "sm",
|
|
126
126
|
type: "button",
|
|
@@ -143,7 +143,7 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
143
143
|
t(e(F)),
|
|
144
144
|
t(e(m), {
|
|
145
145
|
class: "flex items-center gap-1.5",
|
|
146
|
-
onClick:
|
|
146
|
+
onClick: E
|
|
147
147
|
}, {
|
|
148
148
|
default: s(() => [
|
|
149
149
|
o("div", se, [
|
|
@@ -159,14 +159,14 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
159
159
|
})
|
|
160
160
|
]),
|
|
161
161
|
default: s(() => [
|
|
162
|
-
t(e(
|
|
162
|
+
t(e(S), {
|
|
163
163
|
class: "font-normal h-full justify-start line-clamp-1 py-1.5 px-1.5 text-c-1 hover:bg-b-2 w-fit",
|
|
164
164
|
fullWidth: "",
|
|
165
165
|
variant: "ghost"
|
|
166
166
|
}, {
|
|
167
167
|
default: s(() => [
|
|
168
168
|
o("div", J, [
|
|
169
|
-
o("h2", K,
|
|
169
|
+
o("h2", K, z(e(f).name), 1),
|
|
170
170
|
t(e(i), {
|
|
171
171
|
class: "size-2.5",
|
|
172
172
|
icon: "ChevronDown",
|
|
@@ -180,22 +180,22 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
180
180
|
_: 1
|
|
181
181
|
})
|
|
182
182
|
]),
|
|
183
|
-
t(e(
|
|
183
|
+
t(e(N), {
|
|
184
184
|
size: "xxs",
|
|
185
|
-
state: e(
|
|
185
|
+
state: e(w),
|
|
186
186
|
title: "Delete workspace"
|
|
187
187
|
}, {
|
|
188
188
|
default: s(() => [
|
|
189
189
|
t(U, {
|
|
190
190
|
variableName: h.value,
|
|
191
191
|
warningMessage: "This cannot be undone. You’re about to delete the workspace and everything inside it.",
|
|
192
|
-
onClose: a[2] || (a[2] = (p) => e(
|
|
193
|
-
onDelete:
|
|
192
|
+
onClose: a[2] || (a[2] = (p) => e(w).hide()),
|
|
193
|
+
onDelete: B
|
|
194
194
|
}, null, 8, ["variableName"])
|
|
195
195
|
]),
|
|
196
196
|
_: 1
|
|
197
197
|
}, 8, ["state"]),
|
|
198
|
-
t(e(
|
|
198
|
+
t(e(N), {
|
|
199
199
|
size: "xxs",
|
|
200
200
|
state: e(v),
|
|
201
201
|
title: "Rename Workspace"
|
|
@@ -204,12 +204,12 @@ const H = { class: "xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/
|
|
|
204
204
|
t(V, {
|
|
205
205
|
name: h.value,
|
|
206
206
|
onClose: a[3] || (a[3] = (p) => e(v).hide()),
|
|
207
|
-
onEdit:
|
|
207
|
+
onEdit: j
|
|
208
208
|
}, null, 8, ["name"])
|
|
209
209
|
]),
|
|
210
210
|
_: 1
|
|
211
211
|
}, 8, ["state"])
|
|
212
|
-
]
|
|
212
|
+
]));
|
|
213
213
|
}
|
|
214
214
|
});
|
|
215
215
|
export {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.1.
|
|
21
|
+
"version": "2.1.12",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -77,6 +77,10 @@
|
|
|
77
77
|
"import": "./dist/components/Sidebar/index.js",
|
|
78
78
|
"types": "./dist/components/Sidebar/index.d.ts"
|
|
79
79
|
},
|
|
80
|
+
"./components/ImportCollection": {
|
|
81
|
+
"import": "./dist/components/ImportCollection/index.js",
|
|
82
|
+
"types": "./dist/components/ImportCollection/index.d.ts"
|
|
83
|
+
},
|
|
80
84
|
"./components/HttpMethod": {
|
|
81
85
|
"import": "./dist/components/HttpMethod/index.js",
|
|
82
86
|
"types": "./dist/components/HttpMethod/index.d.ts"
|
|
@@ -124,19 +128,20 @@
|
|
|
124
128
|
"vue": "^3.4.29",
|
|
125
129
|
"vue-router": "^4.3.0",
|
|
126
130
|
"whatwg-mimetype": "^4.0.0",
|
|
131
|
+
"yaml": "^2.4.5",
|
|
127
132
|
"zod": "^3.23.8",
|
|
133
|
+
"@scalar/components": "0.12.50",
|
|
128
134
|
"@scalar/draggable": "0.1.5",
|
|
129
|
-
"@scalar/components": "0.12.49",
|
|
130
135
|
"@scalar/icons": "0.1.0",
|
|
131
|
-
"@scalar/oas-utils": "0.2.
|
|
132
|
-
"@scalar/openapi-parser": "0.8.4",
|
|
133
|
-
"@scalar/object-utils": "1.1.9",
|
|
136
|
+
"@scalar/oas-utils": "0.2.51",
|
|
134
137
|
"@scalar/openapi-types": "0.1.1",
|
|
135
|
-
"@scalar/
|
|
136
|
-
"@scalar/
|
|
138
|
+
"@scalar/object-utils": "1.1.9",
|
|
139
|
+
"@scalar/openapi-parser": "0.8.5",
|
|
140
|
+
"@scalar/themes": "0.9.33",
|
|
141
|
+
"@scalar/types": "0.0.12",
|
|
142
|
+
"@scalar/use-codemirror": "0.11.16",
|
|
137
143
|
"@scalar/use-toasts": "0.7.6",
|
|
138
|
-
"@scalar/use-tooltip": "1.0.2"
|
|
139
|
-
"@scalar/use-codemirror": "0.11.15"
|
|
144
|
+
"@scalar/use-tooltip": "1.0.2"
|
|
140
145
|
},
|
|
141
146
|
"devDependencies": {
|
|
142
147
|
"@types/content-type": "^1.1.8",
|