@scalar/api-client 2.0.33 → 2.0.35
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 +28 -0
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +39 -31
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +65 -55
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +53 -44
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +42 -34
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +126 -70
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +37 -29
- 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 +97 -85
- package/dist/components/CommandPalette/handleKeyDown.d.ts +2 -0
- package/dist/components/CommandPalette/handleKeyDown.d.ts.map +1 -0
- package/dist/components/CommandPalette/handleKeyDown.js +7 -0
- package/dist/components/DataTable/DataTableInput.vue.d.ts +7 -0
- 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 +33 -31
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +19 -3
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +37 -35
- package/dist/components/DataTable/index.d.ts +1 -0
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DataTable/index.js +6 -4
- package/dist/components/Form/Form.vue.js +1 -1
- package/dist/components/Search/SearchButton.vue.d.ts.map +1 -1
- package/dist/components/Search/SearchButton.vue.js +14 -16
- package/dist/components/SideNav/SideHelp.vue.d.ts +3 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -0
- package/dist/components/SideNav/SideHelp.vue.js +125 -0
- package/dist/components/SideNav/SideHelp.vue2.js +4 -0
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +3 -3
- package/dist/components/SideNav/SideNav.vue2.js +28 -24
- package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
- package/dist/constants.d.ts +0 -4
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts +512 -603
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/api-client-modal.d.ts +1036 -1218
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +513 -603
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +58 -68
- package/dist/libs/local-storage.js +5 -5
- package/dist/libs/sendRequest.d.ts +3 -5
- package/dist/libs/sendRequest.d.ts.map +1 -1
- package/dist/libs/sendRequest.js +73 -67
- package/dist/store/workspace.d.ts +1037 -1219
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +350 -277
- 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/Request.vue2.js +101 -102
- package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth.vue.js +270 -177
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +52 -42
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +141 -104
- package/dist/views/Request/components/OAuth2.vue.d.ts +3 -9
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuth2.vue.js +141 -112
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts +2 -6
- package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuthScopesInput.vue.js +35 -39
- package/dist/views/Request/consts/index.d.ts +2 -0
- package/dist/views/Request/consts/index.d.ts.map +1 -0
- package/dist/views/Request/consts/index.js +5 -0
- package/dist/views/Request/consts/new-auth-options.d.ts +92 -0
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -0
- package/dist/views/Request/consts/new-auth-options.js +83 -0
- package/dist/views/Request/libs/oauth2.d.ts +3 -16
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +28 -31
- package/package.json +9 -5
|
@@ -1,46 +1,50 @@
|
|
|
1
|
-
import { defineComponent as _, openBlock as
|
|
2
|
-
import
|
|
3
|
-
import { ROUTES as
|
|
1
|
+
import { defineComponent as _, openBlock as r, createElementBlock as i, createVNode as e, createElementVNode as t, Fragment as f, renderList as p, unref as s, withCtx as u, createTextVNode as d, toDisplayString as x } from "vue";
|
|
2
|
+
import h from "../DarkModeToggle/DarkModeIconToggle.vue.js";
|
|
3
|
+
import { ROUTES as v } from "../../constants.js";
|
|
4
4
|
import { useRouter as g } from "vue-router";
|
|
5
|
-
import N from "./
|
|
6
|
-
import y from "./
|
|
5
|
+
import N from "./SideHelp.vue.js";
|
|
6
|
+
import y from "./SideNavLink.vue.js";
|
|
7
|
+
import S from "./WorkspaceProfileIcon.vue.js";
|
|
7
8
|
/* empty css */
|
|
8
|
-
const
|
|
9
|
+
const $ = {
|
|
9
10
|
"aria-label": "Side Navigation",
|
|
10
11
|
class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav relative",
|
|
11
12
|
role: "navigation"
|
|
12
|
-
}, k = { class: "mt-3.5 flex flex-col gap-1.5" }, E = { class: "mt-auto flex flex-col gap-2 py-1.5" }, R = { class: "flex items-center" },
|
|
13
|
+
}, k = { class: "mt-3.5 flex flex-col gap-1.5" }, E = { class: "mt-auto flex flex-col gap-2 py-1.5" }, R = { class: "flex items-center" }, V = { class: "flex items-center" }, j = /* @__PURE__ */ _({
|
|
13
14
|
__name: "SideNav",
|
|
14
|
-
setup(
|
|
15
|
-
const { currentRoute:
|
|
16
|
-
return (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
(
|
|
20
|
-
var
|
|
21
|
-
return
|
|
22
|
-
|
|
23
|
-
active: (
|
|
24
|
-
icon:
|
|
25
|
-
name:
|
|
15
|
+
setup(w) {
|
|
16
|
+
const { currentRoute: c } = g();
|
|
17
|
+
return (B, C) => (r(), i("nav", $, [
|
|
18
|
+
e(S),
|
|
19
|
+
t("ul", k, [
|
|
20
|
+
(r(!0), i(f, null, p(s(v), ({ icon: n, name: o, prettyName: l }, m) => {
|
|
21
|
+
var a;
|
|
22
|
+
return r(), i("li", { key: m }, [
|
|
23
|
+
e(y, {
|
|
24
|
+
active: (a = s(c).name) == null ? void 0 : a.startsWith(o),
|
|
25
|
+
icon: n,
|
|
26
|
+
name: o,
|
|
26
27
|
prettyName: l
|
|
27
28
|
}, {
|
|
28
29
|
default: u(() => [
|
|
29
|
-
d(x(
|
|
30
|
+
d(x(o), 1)
|
|
30
31
|
]),
|
|
31
32
|
_: 2
|
|
32
33
|
}, 1032, ["active", "icon", "name", "prettyName"])
|
|
33
34
|
]);
|
|
34
35
|
}), 128))
|
|
35
36
|
]),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
t("ul", E, [
|
|
38
|
+
t("li", R, [
|
|
39
|
+
e(N)
|
|
40
|
+
]),
|
|
41
|
+
t("li", V, [
|
|
42
|
+
e(h)
|
|
39
43
|
])
|
|
40
44
|
])
|
|
41
45
|
]));
|
|
42
46
|
}
|
|
43
47
|
});
|
|
44
48
|
export {
|
|
45
|
-
|
|
49
|
+
j as default
|
|
46
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;qBAoBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as o, createElementBlock as t, renderSlot as r } from "vue";
|
|
2
2
|
import c from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const s = {}, l = { class: "flex flex-col
|
|
3
|
+
const s = {}, l = { class: "flex flex-col p-2" };
|
|
4
4
|
function n(e, f) {
|
|
5
5
|
return o(), t("ul", l, [
|
|
6
6
|
r(e.$slots, "default")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":";cAmEY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;;;;cALS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;;;;
|
|
1
|
+
{"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":";cAmEY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;;;;cALS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;;;;AAmJH,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 t from "./SidebarListElement.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1d9aeaf7"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, resolveComponent as b, openBlock as t, createElementBlock as l, createVNode as
|
|
1
|
+
import { defineComponent as c, resolveComponent as b, openBlock as t, createElementBlock as l, createVNode as r, normalizeClass as a, withModifiers as v, withCtx as f, createElementVNode as k, createCommentVNode as h, createTextVNode as g, toDisplayString as C } from "vue";
|
|
2
2
|
import _ from "./SidebarListElementActions.vue.js";
|
|
3
3
|
import { useRouter as w } from "vue-router";
|
|
4
4
|
const y = {
|
|
@@ -14,28 +14,28 @@ const y = {
|
|
|
14
14
|
setup(D, { emit: n }) {
|
|
15
15
|
const i = n, s = w(), m = (e, o) => {
|
|
16
16
|
e.metaKey ? window.open(o, "_blank") : s.push(o);
|
|
17
|
-
},
|
|
17
|
+
}, u = (e) => {
|
|
18
18
|
i("delete", e);
|
|
19
19
|
};
|
|
20
20
|
return (e, o) => {
|
|
21
|
-
const
|
|
21
|
+
const d = b("router-link");
|
|
22
22
|
return t(), l("li", null, [
|
|
23
|
-
|
|
24
|
-
class:
|
|
23
|
+
r(d, {
|
|
24
|
+
class: a(["text-c-2 hover:bg-b-2 group relative block flex items-center gap-1 rounded py-1 pr-2 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-2"]]),
|
|
25
25
|
exactActiveClass: "active-link",
|
|
26
26
|
to: `${e.variable.uid}`,
|
|
27
|
-
onClick: o[0] || (o[0] = v((
|
|
27
|
+
onClick: o[0] || (o[0] = v((p) => m(p, e.variable.uid), ["prevent"]))
|
|
28
28
|
}, {
|
|
29
29
|
default: f(() => [
|
|
30
30
|
e.variable.color ? (t(), l("button", y, [
|
|
31
31
|
k("div", {
|
|
32
|
-
class:
|
|
32
|
+
class: a(["h-2.5 w-2.5 rounded-xl", `bg-${e.variable.color}`])
|
|
33
33
|
}, null, 2)
|
|
34
34
|
])) : h("", !0),
|
|
35
35
|
g(" " + C(e.variable.name) + " ", 1),
|
|
36
|
-
|
|
36
|
+
r(_, {
|
|
37
37
|
variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
|
|
38
|
-
onDelete:
|
|
38
|
+
onDelete: u
|
|
39
39
|
}, null, 8, ["variable"])
|
|
40
40
|
]),
|
|
41
41
|
_: 1
|
package/dist/constants.d.ts
CHANGED
|
@@ -10,9 +10,5 @@ export declare const ROUTES: readonly [{
|
|
|
10
10
|
readonly prettyName: "Env Vars";
|
|
11
11
|
readonly name: "environment";
|
|
12
12
|
readonly icon: "Brackets";
|
|
13
|
-
}, {
|
|
14
|
-
readonly prettyName: "Servers";
|
|
15
|
-
readonly name: "servers";
|
|
16
|
-
readonly icon: "Server";
|
|
17
13
|
}];
|
|
18
14
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;EAMT,CAAA"}
|
package/dist/constants.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const e = [
|
|
2
2
|
{ prettyName: "Request", name: "request", icon: "ExternalLink" },
|
|
3
3
|
{ prettyName: "Cookies", name: "cookies", icon: "Cookie" },
|
|
4
|
-
{ prettyName: "Env Vars", name: "environment", icon: "Brackets" }
|
|
5
|
-
{ prettyName:
|
|
4
|
+
{ prettyName: "Env Vars", name: "environment", icon: "Brackets" }
|
|
5
|
+
// { prettyName: 'Servers', name: 'servers', icon: 'Server' },
|
|
6
6
|
// { label: 'Git Sync', icon: 'Branch', path: '/git-sync' },
|
|
7
7
|
];
|
|
8
8
|
export {
|