@scalar/api-client 2.1.22 → 2.1.24
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 +31 -0
- package/README.md +22 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +163 -154
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/ContextBar.vue2.js +1 -1
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +5 -5
- package/dist/components/DataTable/DataTableText.vue.d.ts +12 -3
- package/dist/components/DataTable/DataTableText.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableText.vue.js +13 -9
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +9 -9
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +84 -63
- package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +36 -40
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts +3 -0
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -0
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +125 -0
- package/dist/components/ImportCollection/WorkspaceSelector.vue2.js +4 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCurl/ImportCurlModal.vue.js +2 -2
- package/dist/components/ImportCurl/ImportCurlModal.vue2.js +28 -27
- package/dist/components/SideNav/SideHelp.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue2.js +8 -8
- package/dist/components/SideNav/SideNavLink.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +4 -4
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +3 -3
- package/dist/components/Sidebar/SidebarToggle.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +3 -3
- package/dist/data/httpHeaders.d.ts +6 -0
- package/dist/data/httpHeaders.d.ts.map +1 -0
- package/dist/data/httpHeaders.js +537 -0
- package/dist/layouts/App/create-api-client-app.d.ts +8 -8
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +16 -16
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +8 -8
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +8 -8
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/importers/curl.d.ts +25 -1
- package/dist/libs/importers/curl.d.ts.map +1 -1
- package/dist/libs/importers/curl.js +40 -38
- package/dist/libs/parse-curl.d.ts +3 -4
- package/dist/libs/parse-curl.d.ts.map +1 -1
- package/dist/libs/parse-curl.js +58 -55
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/store.d.ts +16 -16
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +21 -21
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +45 -53
- 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 +61 -63
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +43 -43
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +2 -2
- package/dist/views/Request/RequestSubpageHeader.vue2.js +15 -13
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +43 -22
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +44 -51
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, openBlock as o, createElementBlock as r, createElementVNode as e, Fragment as u, renderList as x, unref as i, createVNode as
|
|
1
|
+
import { defineComponent as p, openBlock as o, createElementBlock as r, createElementVNode as e, Fragment as u, renderList as x, unref as i, createVNode as a, withCtx as m, createTextVNode as f, toDisplayString as v } from "vue";
|
|
2
2
|
import { ROUTES as N } from "../../constants.js";
|
|
3
3
|
import { useRouter as S } from "vue-router";
|
|
4
4
|
import h from "./SideHelp.vue.js";
|
|
@@ -7,10 +7,10 @@ const y = {
|
|
|
7
7
|
"aria-label": "Side Navigation",
|
|
8
8
|
class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav relative drag-region bg-b-1 border-t-1/2",
|
|
9
9
|
role: "navigation"
|
|
10
|
-
}, b = { class: "flex flex-col gap-1.5" }, k = { class: "mt-auto flex flex-col py-0.5" }, E = { class: "flex items-center no-drag-region" }, R = { class: "flex items-center no-drag-region" }, F = /* @__PURE__ */ p({
|
|
10
|
+
}, b = { class: "flex flex-col gap-1.5" }, k = { class: "mt-auto flex flex-col gap-1.5 py-0.5" }, E = { class: "flex items-center no-drag-region" }, R = { class: "flex items-center no-drag-region" }, F = /* @__PURE__ */ p({
|
|
11
11
|
__name: "SideNav",
|
|
12
12
|
setup(V) {
|
|
13
|
-
const { currentRoute:
|
|
13
|
+
const { currentRoute: s } = S();
|
|
14
14
|
return (w, l) => (o(), r("nav", y, [
|
|
15
15
|
e("ul", b, [
|
|
16
16
|
(o(!0), r(u, null, x(i(N).filter(
|
|
@@ -21,8 +21,8 @@ const y = {
|
|
|
21
21
|
key: g,
|
|
22
22
|
class: "no-drag-region"
|
|
23
23
|
}, [
|
|
24
|
-
|
|
25
|
-
active: (c = i(
|
|
24
|
+
a(_, {
|
|
25
|
+
active: (c = i(s).name) == null ? void 0 : c.startsWith(n),
|
|
26
26
|
icon: t,
|
|
27
27
|
name: n,
|
|
28
28
|
prettyName: d
|
|
@@ -37,8 +37,8 @@ const y = {
|
|
|
37
37
|
]),
|
|
38
38
|
e("ul", k, [
|
|
39
39
|
e("li", E, [
|
|
40
|
-
|
|
41
|
-
active: i(
|
|
40
|
+
a(_, {
|
|
41
|
+
active: i(s).name === "settings",
|
|
42
42
|
icon: "Settings",
|
|
43
43
|
name: "settings",
|
|
44
44
|
prettyName: "Settings"
|
|
@@ -50,7 +50,7 @@ const y = {
|
|
|
50
50
|
}, 8, ["active"])
|
|
51
51
|
]),
|
|
52
52
|
e("li", R, [
|
|
53
|
-
|
|
53
|
+
a(h)
|
|
54
54
|
])
|
|
55
55
|
])
|
|
56
56
|
]));
|
|
@@ -19,7 +19,7 @@ const v = { class: "sr-only" }, C = /* @__PURE__ */ a({
|
|
|
19
19
|
}, {
|
|
20
20
|
default: l(() => [
|
|
21
21
|
n("div", {
|
|
22
|
-
class: p(["min-w-[37px] max-w-[37px] group-hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[
|
|
22
|
+
class: p(["min-w-[37px] max-w-[37px] group-hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[8px] scalar-app-nav-padding text-c-3", {
|
|
23
23
|
"bg-b-2 transition-none group-hover:cursor-auto !text-c-1": e.active
|
|
24
24
|
}])
|
|
25
25
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAmNA,iBAAS,cAAc;
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAmNA,iBAAS,cAAc;oBA8GK,GAAG;oBACH,GAAG;oBAEH,GAAG;qBADF,GAAG;EAuB/B;AACD,QAAA,MAAM,eAAe;YAzMT,MAAM;kBACA,OAAO;;YADb,MAAM;kBACA,OAAO;;iBAAP,OAAO;6EA+MvB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAexG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Sidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6d244398"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -6,7 +6,7 @@ const C = {
|
|
|
6
6
|
class: "min-h-11 xl:min-h-header flex items-center justify-between border-b-1/2 px-3 py-1.5 md:px-4 md:py-2.5 text-sm"
|
|
7
7
|
}, I = { class: "font-medium m-0 text-sm whitespace-nowrap" }, M = {
|
|
8
8
|
key: 1,
|
|
9
|
-
class: "relative z-10 pt-0 md:px-2.5 md:pb-2.5 -
|
|
9
|
+
class: "relative z-10 pt-0 md:px-2.5 md:pb-2.5 sticky bottom-0 w-[inherit] has-[.empty-sidebar-item]:border-t-1/2"
|
|
10
10
|
}, V = /* @__PURE__ */ _({
|
|
11
11
|
__name: "Sidebar",
|
|
12
12
|
props: {
|
|
@@ -14,7 +14,7 @@ const C = {
|
|
|
14
14
|
showSideBar: { type: Boolean, default: !0 }
|
|
15
15
|
},
|
|
16
16
|
setup(x) {
|
|
17
|
-
const
|
|
17
|
+
const k = x, { isReadOnly: m, sidebarWidth: o, setSidebarWidth: a } = z(), l = b(!1), u = y("(max-width: 780px)"), c = b(null), p = y("(max-width: 800px)"), E = (e) => {
|
|
18
18
|
e.preventDefault();
|
|
19
19
|
const f = e.clientX, S = parseInt(
|
|
20
20
|
getComputedStyle(c.value).width || o.value,
|
|
@@ -52,10 +52,10 @@ const C = {
|
|
|
52
52
|
t(u) ? d("", !0) : (r(), i("div", {
|
|
53
53
|
key: 2,
|
|
54
54
|
class: "resizer",
|
|
55
|
-
onMousedown:
|
|
55
|
+
onMousedown: E
|
|
56
56
|
}, null, 32))
|
|
57
57
|
], 6)), [
|
|
58
|
-
[$,
|
|
58
|
+
[$, k.showSideBar]
|
|
59
59
|
]);
|
|
60
60
|
}
|
|
61
61
|
});
|
|
@@ -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;qBAqBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,+QAKnB,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,12 +1,12 @@
|
|
|
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 p-2" };
|
|
3
|
+
const s = {}, l = { class: "flex flex-col p-2 pb-[75px]" };
|
|
4
4
|
function n(e, f) {
|
|
5
5
|
return o(), t("ul", l, [
|
|
6
6
|
r(e.$slots, "default")
|
|
7
7
|
]);
|
|
8
8
|
}
|
|
9
|
-
const
|
|
9
|
+
const p = /* @__PURE__ */ c(s, [["render", n]]);
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
p as default
|
|
12
12
|
};
|
|
@@ -12,7 +12,7 @@ const a = {
|
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
13
|
setup(i) {
|
|
14
14
|
return (o, e) => (l(), n("button", {
|
|
15
|
-
class: "text-c-
|
|
15
|
+
class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded",
|
|
16
16
|
type: "button",
|
|
17
17
|
onClick: e[0] || (e[0] = (u) => o.$emit("update:modelValue", !o.modelValue))
|
|
18
18
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";gBA+Qc;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;;gBAApC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;;AA2dlD,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TopNav.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-657b36ed"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpHeaders.d.ts","sourceRoot":"","sources":["../../src/data/httpHeaders.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAA;AAEtD,eAAO,MAAM,WAAW,EAAE,UAAU,EAqhB1B,CAAA"}
|