@scalar/api-client 2.2.32 → 2.2.34
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 +38 -0
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +27 -26
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +9 -3
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +62 -54
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +13 -3
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.js +7 -7
- package/dist/components/DataTable/DataTableCell.vue.js +6 -6
- package/dist/components/Form/Form.vue.d.ts.map +1 -1
- package/dist/components/Form/Form.vue.js +5 -5
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +72 -71
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +23 -22
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +61 -48
- package/dist/components/SideNav/SideNavLink.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +5 -5
- package/dist/components/Sidebar/SidebarList.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +12 -12
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts +171 -128
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +342 -256
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +171 -128
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +172 -129
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +8 -7
- package/dist/libs/find-request.d.ts +2 -0
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.js +93 -93
- package/dist/routes.d.ts +1 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +12 -7
- package/dist/store/active-entities.d.ts +29 -27
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/events.d.ts +3 -1
- package/dist/store/events.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +134 -134
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +26 -4
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +174 -129
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +48 -46
- package/dist/store/tags.d.ts +24 -4
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
- package/dist/views/Cookies/CookieForm.vue.js +12 -12
- package/dist/views/Cookies/Cookies.vue2.js +12 -12
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +98 -97
- package/dist/views/Environment/EnvironmentModal.vue.js +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +6 -6
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +3 -3
- package/dist/views/Request/RequestSidebar.vue2.js +14 -14
- package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -2
- 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 +132 -125
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +12 -12
- package/dist/views/Servers/ServerForm.vue.d.ts +8 -1
- package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
- package/dist/views/Servers/ServerForm.vue.js +28 -59
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +141 -53
- package/package.json +13 -13
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as C, resolveComponent as h, openBlock as s, createElementBlock as
|
|
1
|
+
import { defineComponent as C, resolveComponent as h, openBlock as s, createElementBlock as c, createVNode as d, normalizeClass as D, unref as p, withModifiers as I, withCtx as M, createElementVNode as m, normalizeStyle as R, createCommentVNode as u, createBlock as B, toDisplayString as E } from "vue";
|
|
2
2
|
import N from "./SidebarListElementActions.vue.js";
|
|
3
3
|
import { useActiveEntities as S } from "../../store/active-entities.js";
|
|
4
4
|
import { ScalarIcon as z } from "@scalar/components";
|
|
5
5
|
import { useRouter as V } from "vue-router";
|
|
6
|
-
const A = { class: "empty-variable-name text-sm" }, F = /* @__PURE__ */ C({
|
|
6
|
+
const A = { class: "empty-variable-name text-sm line-clamp-1 break-all group-hover:pr-5" }, F = /* @__PURE__ */ C({
|
|
7
7
|
__name: "SidebarListElement",
|
|
8
8
|
props: {
|
|
9
9
|
variable: {},
|
|
@@ -25,29 +25,29 @@ const A = { class: "empty-variable-name text-sm" }, F = /* @__PURE__ */ C({
|
|
|
25
25
|
uid: a
|
|
26
26
|
}, l = n ? `/workspace/${o.workspaceId}/${o.type}/${o.collectionId}/${o.uid}` : `/workspace/${o.workspaceId}/${o.type}/${o.uid}`;
|
|
27
27
|
e.metaKey ? window.open(l, "_blank") : y.push({ path: l });
|
|
28
|
-
},
|
|
28
|
+
}, g = (e) => {
|
|
29
29
|
r("delete", e);
|
|
30
|
-
},
|
|
30
|
+
}, w = (e) => {
|
|
31
31
|
r("colorModal", e);
|
|
32
|
-
},
|
|
32
|
+
}, $ = (e) => {
|
|
33
33
|
r("rename", e);
|
|
34
34
|
};
|
|
35
35
|
return (e, a) => {
|
|
36
36
|
var o, l;
|
|
37
37
|
const n = h("router-link");
|
|
38
|
-
return s(),
|
|
39
|
-
|
|
38
|
+
return s(), c("li", null, [
|
|
39
|
+
d(n, {
|
|
40
40
|
class: D(["h-8 text-c-2 hover:bg-b-2 group relative block flex items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-1.5"]]),
|
|
41
41
|
exactActiveClass: "active-link",
|
|
42
42
|
to: e.collectionId ? `/workspace/${(o = p(t)) == null ? void 0 : o.uid}/${e.type}/${e.collectionId}/${e.variable.uid}` : `/workspace/${(l = p(t)) == null ? void 0 : l.uid}/${e.type}/${e.variable.uid}`,
|
|
43
43
|
onClick: a[1] || (a[1] = I((i) => f(i, e.variable.uid, e.collectionId), ["prevent"]))
|
|
44
44
|
}, {
|
|
45
45
|
default: M(() => [
|
|
46
|
-
e.variable.color ? (s(),
|
|
46
|
+
e.variable.color ? (s(), c("button", {
|
|
47
47
|
key: 0,
|
|
48
48
|
class: "hover:bg-b-3 rounded p-1.5",
|
|
49
49
|
type: "button",
|
|
50
|
-
onClick: a[0] || (a[0] = (i) =>
|
|
50
|
+
onClick: a[0] || (a[0] = (i) => w(e.variable.uid))
|
|
51
51
|
}, [
|
|
52
52
|
m("div", {
|
|
53
53
|
class: "h-2.5 w-2.5 rounded-xl",
|
|
@@ -60,14 +60,14 @@ const A = { class: "empty-variable-name text-sm" }, F = /* @__PURE__ */ C({
|
|
|
60
60
|
icon: e.variable.icon
|
|
61
61
|
}, null, 8, ["icon"])) : u("", !0),
|
|
62
62
|
m("span", A, E(e.variable.name), 1),
|
|
63
|
-
|
|
63
|
+
d(N, {
|
|
64
64
|
isCopyable: e.isCopyable,
|
|
65
65
|
isDeletable: e.isDeletable,
|
|
66
66
|
isRenameable: e.isRenameable,
|
|
67
67
|
variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
|
|
68
68
|
warningMessage: e.warningMessage,
|
|
69
|
-
onDelete:
|
|
70
|
-
onRename:
|
|
69
|
+
onDelete: g,
|
|
70
|
+
onRename: $
|
|
71
71
|
}, null, 8, ["isCopyable", "isDeletable", "isRenameable", "variable", "warningMessage"])
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAwEA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AAoBJ,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAwEA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;CAChC,CAAC;AAoBJ,iBAAS,cAAc;WAwJT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBAlMH,OAAO;eACT,MAAM;YACT,QAAQ,GAAG,WAAW;6EAwMjC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -17,7 +17,7 @@ const g = { class: "bg-b-2 flex items-center" }, v = { class: "flex flex-1 items
|
|
|
17
17
|
setup(k) {
|
|
18
18
|
return (e, w) => (o(), i(s(h), {
|
|
19
19
|
as: "div",
|
|
20
|
-
class: "focus-within:text-c-1 text-c-2 request-item border-b",
|
|
20
|
+
class: "focus-within:text-c-1 text-c-2 request-item border-b first:border-t",
|
|
21
21
|
defaultOpen: e.defaultOpen,
|
|
22
22
|
static: e.layout === "reference"
|
|
23
23
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAmBA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAmBA,iBAAS,cAAc;WAwDT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as o, createElementBlock as l, createElementVNode as s, renderSlot as t } from "vue";
|
|
2
2
|
import n from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, r = { class: "flex xl:h-full xl:min-w-0 flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "min-h-11 flex items-center
|
|
3
|
+
const c = {}, r = { class: "flex xl:h-full xl:min-w-0 flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "min-h-11 flex items-center px-2.5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none z-1" };
|
|
4
4
|
function f(e, m) {
|
|
5
5
|
return o(), l("section", r, [
|
|
6
6
|
s("div", i, [
|
package/dist/constants.d.ts
CHANGED
|
@@ -14,5 +14,9 @@ export declare const ROUTES: readonly [{
|
|
|
14
14
|
readonly prettyName: "Settings";
|
|
15
15
|
readonly name: "settings";
|
|
16
16
|
readonly icon: "Settings";
|
|
17
|
+
}, {
|
|
18
|
+
readonly prettyName: "Servers";
|
|
19
|
+
readonly name: "servers";
|
|
20
|
+
readonly icon: "Server";
|
|
17
21
|
}];
|
|
18
22
|
//# 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;;;;;;;;;;;;;;;;;;;;EAOT,CAAA"}
|
package/dist/constants.js
CHANGED
|
@@ -2,8 +2,8 @@ const e = [
|
|
|
2
2
|
{ prettyName: "Request", name: "request", icon: "ExternalLink" },
|
|
3
3
|
{ prettyName: "Cookies", name: "cookies", icon: "Cookie" },
|
|
4
4
|
{ prettyName: "Environment", name: "environment", icon: "Brackets" },
|
|
5
|
-
{ prettyName: "Settings", name: "settings", icon: "Settings" }
|
|
6
|
-
|
|
5
|
+
{ prettyName: "Settings", name: "settings", icon: "Settings" },
|
|
6
|
+
{ prettyName: "Servers", name: "servers", icon: "Server" }
|
|
7
7
|
// { label: 'Git Sync', icon: 'Branch', path: '/git-sync' },
|
|
8
8
|
];
|
|
9
9
|
export {
|