@scalar/api-client 2.0.24 → 2.0.25
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 +26 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +79 -83
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +10 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +3 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +42 -37
- package/dist/components/CodeInput/codeDropdownWidget.d.ts +24 -0
- package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -0
- package/dist/components/CodeInput/codeDropdownWidget.js +110 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts +8 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -0
- package/dist/components/CodeInput/codeVariableWidget.js +124 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +51 -54
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +4 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +106 -92
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +68 -74
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -62
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +106 -99
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +7 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +57 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +4 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +50 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +198 -0
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.d.ts.map +1 -0
- package/dist/components/CommandPalette/index.js +4 -0
- package/dist/components/ContextBar.vue.js +4 -4
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +26 -23
- package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +5 -5
- package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +14 -12
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +31 -28
- package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +16 -15
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
- package/dist/constants.d.ts +13 -7
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -16
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
- package/dist/layouts/App/ApiClientApp.vue.js +72 -0
- package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
- package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
- package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
- package/dist/layouts/App/index.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/api-client-modal.js +2 -2
- package/dist/layouts/Modal/index.d.ts.map +1 -0
- package/dist/libs/eventBusses/command-palette.d.ts +14 -0
- package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
- package/dist/libs/eventBusses/command-palette.js +5 -0
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +19 -19
- package/dist/router.d.ts +5 -10
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +23 -19
- package/dist/store/topNav.d.ts +94 -82
- package/dist/store/topNav.d.ts.map +1 -1
- package/dist/store/topNav.js +21 -20
- package/dist/store/workspace.d.ts +314 -84
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +299 -220
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +9 -12
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +22 -25
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +122 -105
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +5 -4
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +19 -19
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +78 -81
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +53 -33
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +6 -5
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuth2.vue.js +2 -0
- package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
- package/dist/views/Request/components/index.d.ts +1 -0
- package/dist/views/Request/components/index.d.ts.map +1 -1
- package/dist/views/Request/components/index.js +4 -2
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +12 -15
- package/package.json +20 -16
- package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
- package/dist/App/ApiClientApp.vue.js +0 -56
- package/dist/App/createApiClientApp.d.ts.map +0 -1
- package/dist/App/index.d.ts.map +0 -1
- package/dist/App.vue.d.ts.map +0 -1
- package/dist/App.vue.js +0 -77
- package/dist/App.vue3.js +0 -5
- package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
- package/dist/Modal/api-client-modal.d.ts.map +0 -1
- package/dist/Modal/index.d.ts.map +0 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +0 -113
- package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -185
- package/dist/main.d.ts +0 -2
- package/dist/main.d.ts.map +0 -1
- /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
- /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
- /package/dist/{App → layouts/App}/index.d.ts +0 -0
- /package/dist/{App → layouts/App}/index.js +0 -0
- /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
- /package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +0 -0
- /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
- /package/dist/{Modal → layouts/Modal}/index.js +0 -0
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, ref as f, computed as B, openBlock as r, createElementBlock as s, Fragment as m, withDirectives as p, createElementVNode as a, vShow as A, createVNode as y, unref as g, vModelText as D, renderList as $, toDisplayString as E, normalizeClass as F, createTextVNode as q, createBlock as M, resolveDynamicComponent as N } from "vue";
|
|
2
|
-
import { ScalarIcon as L } from "@scalar/components";
|
|
3
|
-
import { useMagicKeys as P, whenever as C } from "@vueuse/core";
|
|
4
|
-
import { useRouter as T } from "vue-router";
|
|
5
|
-
import U from "./CommandPaletteCollection.vue.js";
|
|
6
|
-
import G from "./CommandPaletteExample.vue.js";
|
|
7
|
-
import H from "./CommandPaletteFolder.vue.js";
|
|
8
|
-
import K from "./CommandPaletteImport.vue.js";
|
|
9
|
-
import Q from "./CommandPaletteRequest.vue.js";
|
|
10
|
-
const W = { class: "commandmenu" }, j = { class: "bg-b-2 flex items-center rounded mb-2 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, J = { for: "commandmenu" }, O = ["onClick"], se = /* @__PURE__ */ I({
|
|
11
|
-
__name: "CommandPalette",
|
|
12
|
-
props: {
|
|
13
|
-
state: {}
|
|
14
|
-
},
|
|
15
|
-
setup(V) {
|
|
16
|
-
const i = V, h = T(), z = {
|
|
17
|
-
"Import Collection": K,
|
|
18
|
-
"Create Request": Q,
|
|
19
|
-
"Add Folder": H,
|
|
20
|
-
"Create Collection": U,
|
|
21
|
-
"Add Example": G
|
|
22
|
-
}, b = [
|
|
23
|
-
{
|
|
24
|
-
label: "Add to Request Sidebar",
|
|
25
|
-
commands: [
|
|
26
|
-
{
|
|
27
|
-
name: "Create Request",
|
|
28
|
-
icon: "ExternalLink"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: "Import Collection",
|
|
32
|
-
icon: "Import"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: "Add Folder",
|
|
36
|
-
icon: "Folder"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: "Create Collection",
|
|
40
|
-
icon: "Collection"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: "Add Example",
|
|
44
|
-
icon: "Example"
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: "More Actions",
|
|
50
|
-
commands: [
|
|
51
|
-
{
|
|
52
|
-
name: "Add Server",
|
|
53
|
-
icon: "Brackets",
|
|
54
|
-
overloadAction: () => h.push("/servers")
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: "Add Environment",
|
|
58
|
-
icon: "Server",
|
|
59
|
-
overloadAction: () => h.push("/environment")
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: "Add Cookie",
|
|
63
|
-
icon: "Cookie",
|
|
64
|
-
overloadAction: () => h.push("/cookies")
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
], d = P(), c = f(""), u = f(""), t = f(0), w = f([]), k = B(
|
|
69
|
-
() => b.reduce((e, n) => {
|
|
70
|
-
const l = n.commands.filter(
|
|
71
|
-
(v) => v.name.toLowerCase().includes(c.value.toLowerCase())
|
|
72
|
-
);
|
|
73
|
-
return [...e, ...l];
|
|
74
|
-
}, [])
|
|
75
|
-
);
|
|
76
|
-
C(d.escape, () => {
|
|
77
|
-
i.state.open && i.state.hide();
|
|
78
|
-
});
|
|
79
|
-
function S() {
|
|
80
|
-
i.state.hide(), c.value = "", u.value = "";
|
|
81
|
-
}
|
|
82
|
-
return C(d.enter, () => {
|
|
83
|
-
var n;
|
|
84
|
-
if (!i.state.open || !window)
|
|
85
|
-
return;
|
|
86
|
-
const e = k.value[t.value];
|
|
87
|
-
((n = e == null ? void 0 : e.overloadAction) == null ? void 0 : n.call(e)) ?? (u.value = e.name);
|
|
88
|
-
}), C(d.ArrowDown, () => {
|
|
89
|
-
var e;
|
|
90
|
-
i.state.open && window && (t.value < k.value.length - 1 ? t.value++ : t.value = 0, (e = w.value[t.value]) == null || e.scrollIntoView({
|
|
91
|
-
behavior: "smooth",
|
|
92
|
-
block: "center"
|
|
93
|
-
}));
|
|
94
|
-
}), C(d.ArrowUp, () => {
|
|
95
|
-
var e;
|
|
96
|
-
i.state.open && window && (t.value > 0 ? t.value-- : t.value = k.value.length - 1, (e = w.value[t.value]) == null || e.scrollIntoView({
|
|
97
|
-
behavior: "smooth",
|
|
98
|
-
block: "center"
|
|
99
|
-
}));
|
|
100
|
-
}), (e, n) => (r(), s(m, null, [
|
|
101
|
-
p(a("div", {
|
|
102
|
-
class: "commandmenu-clickout",
|
|
103
|
-
onClick: n[0] || (n[0] = (l) => S())
|
|
104
|
-
}, null, 512), [
|
|
105
|
-
[A, e.state.open]
|
|
106
|
-
]),
|
|
107
|
-
p(a("div", W, [
|
|
108
|
-
u.value ? (r(), s(m, { key: 1 }, [
|
|
109
|
-
a("button", {
|
|
110
|
-
class: "absolute p-1 hover:bg-b-3 rounded text-c-3 active:text-c-1 m-1.5 z-10",
|
|
111
|
-
type: "button",
|
|
112
|
-
onClick: n[2] || (n[2] = (l) => u.value = "")
|
|
113
|
-
}, [
|
|
114
|
-
y(g(L), {
|
|
115
|
-
icon: "ChevronLeft",
|
|
116
|
-
size: "sm"
|
|
117
|
-
})
|
|
118
|
-
]),
|
|
119
|
-
(r(), M(N(z[u.value]), { onClose: S }, null, 32))
|
|
120
|
-
], 64)) : (r(), s(m, { key: 0 }, [
|
|
121
|
-
a("div", j, [
|
|
122
|
-
a("label", J, [
|
|
123
|
-
y(g(L), {
|
|
124
|
-
class: "text-c-1 mr-2.5",
|
|
125
|
-
icon: "Search",
|
|
126
|
-
size: "sm",
|
|
127
|
-
thickness: "1.5"
|
|
128
|
-
})
|
|
129
|
-
]),
|
|
130
|
-
p(a("input", {
|
|
131
|
-
id: "commandmenu",
|
|
132
|
-
"onUpdate:modelValue": n[1] || (n[1] = (l) => c.value = l),
|
|
133
|
-
class: "w-full rounded bg-none border-none py-1.5 text-sm focus:outline-none",
|
|
134
|
-
placeholder: "Search commands...",
|
|
135
|
-
type: "text"
|
|
136
|
-
}, null, 512), [
|
|
137
|
-
[D, c.value]
|
|
138
|
-
])
|
|
139
|
-
]),
|
|
140
|
-
(r(), s(m, null, $(b, (l, v) => (r(), s(m, {
|
|
141
|
-
key: l.label
|
|
142
|
-
}, [
|
|
143
|
-
p(a("div", { class: "text-c-3 font-medium text-xs mt-2" }, E(l.label), 513), [
|
|
144
|
-
[
|
|
145
|
-
A,
|
|
146
|
-
l.commands.filter(
|
|
147
|
-
(o) => o.name.toLowerCase().includes(c.value.toLowerCase())
|
|
148
|
-
).length > 0
|
|
149
|
-
]
|
|
150
|
-
]),
|
|
151
|
-
(r(!0), s(m, null, $(l.commands.filter(
|
|
152
|
-
(o) => o.name.toLowerCase().includes(c.value.toLowerCase())
|
|
153
|
-
), (o, _) => (r(), s("div", {
|
|
154
|
-
key: o.name,
|
|
155
|
-
ref_for: !0,
|
|
156
|
-
ref: (x) => {
|
|
157
|
-
x && (w.value[_] = x);
|
|
158
|
-
},
|
|
159
|
-
class: F(["commandmenu-item text-sm flex items-center py-1.5 px-2 rounded hover:bg-b-2 cursor-pointer", {
|
|
160
|
-
"bg-b-2": v > 0 ? t.value === _ + b[v - 1].commands.length : t.value === _
|
|
161
|
-
}]),
|
|
162
|
-
onClick: (x) => {
|
|
163
|
-
var R;
|
|
164
|
-
return ((R = o == null ? void 0 : o.overloadAction) == null ? void 0 : R.call(o)) ?? (u.value = o.name);
|
|
165
|
-
}
|
|
166
|
-
}, [
|
|
167
|
-
y(g(L), {
|
|
168
|
-
class: "text-c-1 mr-2.5",
|
|
169
|
-
icon: o.icon,
|
|
170
|
-
size: "md",
|
|
171
|
-
thickness: "1.5"
|
|
172
|
-
}, null, 8, ["icon"]),
|
|
173
|
-
q(" " + E(o.name), 1)
|
|
174
|
-
], 10, O))), 128))
|
|
175
|
-
], 64))), 64))
|
|
176
|
-
], 64))
|
|
177
|
-
], 512), [
|
|
178
|
-
[A, e.state.open]
|
|
179
|
-
])
|
|
180
|
-
], 64));
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
export {
|
|
184
|
-
se as default
|
|
185
|
-
};
|
package/dist/main.d.ts
DELETED
package/dist/main.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|