@scalar/api-client 2.9.0 → 2.9.1
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 +12 -0
- package/dist/components/CommandPalette/CommandActionForm.vue.js +9 -9
- package/dist/style.css +1 -1
- package/dist/v2/components/code-input/CodeInput.test.d.ts +2 -0
- package/dist/v2/components/code-input/CodeInput.test.d.ts.map +1 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +140 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -0
- package/dist/v2/components/code-input/CodeInput.vue.js +8 -0
- package/dist/v2/components/code-input/CodeInput.vue2.js +202 -0
- package/dist/v2/components/code-input/code-variable-widget.d.ts +21 -0
- package/dist/v2/components/code-input/code-variable-widget.d.ts.map +1 -0
- package/dist/v2/components/code-input/code-variable-widget.js +106 -0
- package/dist/v2/components/code-input/code-variable-widget.test.d.ts +2 -0
- package/dist/v2/components/code-input/code-variable-widget.test.d.ts.map +1 -0
- package/dist/v2/components/code-input/index.d.ts +2 -0
- package/dist/v2/components/code-input/index.d.ts.map +1 -0
- package/dist/v2/components/code-input/index.js +4 -0
- package/dist/v2/components/data-table/DataTable.vue.d.ts +22 -0
- package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTable.vue.js +38 -0
- package/dist/v2/components/data-table/DataTable.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableCell.vue.d.ts +19 -0
- package/dist/v2/components/data-table/DataTableCell.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableCell.vue.js +26 -0
- package/dist/v2/components/data-table/DataTableCell.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts +14 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +53 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.d.ts +13 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableHeader.vue.js +18 -0
- package/dist/v2/components/data-table/DataTableHeader.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +53 -0
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableInput.vue.js +7 -0
- package/dist/v2/components/data-table/DataTableInput.vue2.js +117 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts +16 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +146 -0
- package/dist/v2/components/data-table/DataTableInputSelect.vue2.js +4 -0
- package/dist/v2/components/data-table/DataTableRow.vue.d.ts +13 -0
- package/dist/v2/components/data-table/DataTableRow.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableRow.vue.js +12 -0
- package/dist/v2/components/data-table/DataTableText.vue.d.ts +16 -0
- package/dist/v2/components/data-table/DataTableText.vue.d.ts.map +1 -0
- package/dist/v2/components/data-table/DataTableText.vue.js +23 -0
- package/dist/v2/components/data-table/DataTableText.vue2.js +4 -0
- package/dist/v2/components/data-table/index.d.ts +9 -0
- package/dist/v2/components/data-table/index.d.ts.map +1 -0
- package/dist/v2/components/data-table/index.js +18 -0
- package/dist/v2/features/app/App.test.d.ts +2 -0
- package/dist/v2/features/app/App.test.d.ts.map +1 -0
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +56 -41
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts +3 -0
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +8 -7
- package/dist/v2/features/app/components/DesktopTabs.vue2.js +6 -0
- package/dist/v2/features/app/helpers/routes.d.ts +12 -9
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +0 -6
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue2.js +58 -45
- package/dist/v2/features/collection/WorkspaceCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/WorkspaceCollection.vue2.js +12 -10
- package/dist/v2/features/collection/components/Environment.vue.d.ts +13 -87
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Environment.vue2.js +20 -25
- package/dist/v2/features/collection/components/Overview.vue.d.ts +13 -12
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Overview.vue.js +5 -2
- package/dist/v2/features/collection/components/Overview.vue2.js +64 -66
- package/dist/v2/features/collection/components/Tabs.vue.js +8 -8
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +6 -95
- package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/EnvironmentsList.vue.js +50 -98
- package/dist/v2/features/environments/components/Environment.vue.d.ts +9 -63
- package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/Environment.vue.js +41 -92
- package/dist/v2/features/environments/components/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +105 -81
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts +7 -14
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +61 -39
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts +1 -1
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +3 -3
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts +21 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.d.ts.map +1 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +109 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue2.js +4 -0
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts +7 -20
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +85 -71
- package/dist/v2/features/environments/index.d.ts +0 -3
- package/dist/v2/features/environments/index.d.ts.map +1 -1
- package/dist/v2/features/environments/index.js +2 -4
- package/dist/v2/helpers/test-utils.d.ts +4 -0
- package/dist/v2/helpers/test-utils.d.ts.map +1 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts +2 -1
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +23 -9
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +13 -13
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts +0 -2
- package/dist/v2/features/collection/WorkspaceCollection.test.d.ts.map +0 -1
- package/dist/v2/features/environments/Environments.test.d.ts +0 -2
- package/dist/v2/features/environments/Environments.test.d.ts.map +0 -1
- package/dist/v2/features/environments/Environments.vue.d.ts +0 -31
- package/dist/v2/features/environments/Environments.vue.d.ts.map +0 -1
- package/dist/v2/features/environments/Environments.vue.js +0 -65
- package/dist/v2/features/environments/Environments.vue2.js +0 -4
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts +0 -20
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.d.ts.map +0 -1
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue.js +0 -48
- package/dist/v2/features/environments/components/EnvironmentColorUpdateModal.vue2.js +0 -4
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts +0 -18
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.d.ts.map +0 -1
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue.js +0 -35
- package/dist/v2/features/environments/components/EnvironmentNameUpdateModal.vue2.js +0 -4
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, createBlock as v, openBlock as s, withCtx as a, createVNode as i, createElementVNode as r, renderSlot as u, createTextVNode as m, unref as p } from "vue";
|
|
2
|
-
import { ScalarIconBracketsCurly as f } from "@scalar/icons";
|
|
3
|
-
import b from "../../../components/ViewLayout/ViewLayout.vue.js";
|
|
4
|
-
import x from "../../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
5
|
-
import E from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
6
|
-
import V from "./EnvironmentsList.vue.js";
|
|
7
|
-
const N = { class: "mx-auto flex max-h-full w-full max-w-[720px] !flex-col gap-8 overflow-auto px-5 py-15" }, g = { class: "flex flex-col gap-2" }, w = { class: "flex items-center gap-2 text-xl font-bold" }, q = /* @__PURE__ */ d({
|
|
8
|
-
__name: "Environments",
|
|
9
|
-
props: {
|
|
10
|
-
documentName: {},
|
|
11
|
-
environments: {},
|
|
12
|
-
environment: {},
|
|
13
|
-
envVariables: {}
|
|
14
|
-
},
|
|
15
|
-
emits: ["navigation:update:selection", "navigation:update:sidebarWidth", "environment:reorder", "environment:add", "environment:update", "environment:delete", "environment:add:variable", "environment:update:variable", "environment:delete:variable"],
|
|
16
|
-
setup(y, { emit: l }) {
|
|
17
|
-
const t = l;
|
|
18
|
-
return (o, e) => (s(), v(b, null, {
|
|
19
|
-
default: a(() => [
|
|
20
|
-
i(x, { class: "flex-1" }, {
|
|
21
|
-
default: a(() => [
|
|
22
|
-
i(E, null, {
|
|
23
|
-
default: a(() => [
|
|
24
|
-
r("div", N, [
|
|
25
|
-
r("div", g, [
|
|
26
|
-
r("h2", w, [
|
|
27
|
-
u(o.$slots, "icon", {}, () => [
|
|
28
|
-
i(p(f))
|
|
29
|
-
]),
|
|
30
|
-
e[7] || (e[7] = m(" Environment Variables ", -1))
|
|
31
|
-
]),
|
|
32
|
-
e[8] || (e[8] = r("p", { class: "text-c-2 mb-4 text-sm" }, [
|
|
33
|
-
m(" Set environment variables at your collection level. Use "),
|
|
34
|
-
r("code", { class: "font-code text-c-2" }, " {{ variable }} "),
|
|
35
|
-
m(" to add / search among the selected environment's variables in your request inputs. ")
|
|
36
|
-
], -1))
|
|
37
|
-
]),
|
|
38
|
-
i(V, {
|
|
39
|
-
documentName: o.documentName,
|
|
40
|
-
envVariables: o.envVariables,
|
|
41
|
-
environment: o.environment,
|
|
42
|
-
environments: o.environments,
|
|
43
|
-
"onEnvironment:add": e[0] || (e[0] = (n) => t("environment:add", n)),
|
|
44
|
-
"onEnvironment:add:variable": e[1] || (e[1] = (n) => t("environment:add:variable", n)),
|
|
45
|
-
"onEnvironment:delete": e[2] || (e[2] = (n) => t("environment:delete", n)),
|
|
46
|
-
"onEnvironment:delete:variable": e[3] || (e[3] = (n) => t("environment:delete:variable", n)),
|
|
47
|
-
"onEnvironment:reorder": e[4] || (e[4] = (n) => t("environment:reorder", n)),
|
|
48
|
-
"onEnvironment:update": e[5] || (e[5] = (n) => t("environment:update", n)),
|
|
49
|
-
"onEnvironment:update:variable": e[6] || (e[6] = (n) => t("environment:update:variable", n))
|
|
50
|
-
}, null, 8, ["documentName", "envVariables", "environment", "environments"])
|
|
51
|
-
])
|
|
52
|
-
]),
|
|
53
|
-
_: 3
|
|
54
|
-
})
|
|
55
|
-
]),
|
|
56
|
-
_: 3
|
|
57
|
-
})
|
|
58
|
-
]),
|
|
59
|
-
_: 3
|
|
60
|
-
}));
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
export {
|
|
64
|
-
q as default
|
|
65
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type ModalState } from '@scalar/components';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
/** Modal visibility and control state */
|
|
4
|
-
state: ModalState;
|
|
5
|
-
/** Currently selected color */
|
|
6
|
-
color: string;
|
|
7
|
-
};
|
|
8
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
-
submit: (payload: {
|
|
10
|
-
color: string;
|
|
11
|
-
}) => any;
|
|
12
|
-
cancel: () => any;
|
|
13
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
-
onSubmit?: ((payload: {
|
|
15
|
-
color: string;
|
|
16
|
-
}) => any) | undefined;
|
|
17
|
-
onCancel?: (() => any) | undefined;
|
|
18
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
-
export default _default;
|
|
20
|
-
//# sourceMappingURL=EnvironmentColorUpdateModal.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentColorUpdateModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentColorUpdateModal.vue"],"names":[],"mappings":"AA+DA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,yCAAyC;IACzC,KAAK,EAAE,UAAU,CAAA;IACjB,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;;eAKoC,MAAM;;;;;eAAN,MAAM;;;;AA8H5C,wBAOG"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, ref as c, watch as u, createBlock as f, openBlock as d, unref as p, withCtx as C, createElementVNode as v, createVNode as i } from "vue";
|
|
2
|
-
import { ScalarModal as b } from "@scalar/components";
|
|
3
|
-
import x from "../../../../components/Sidebar/Actions/SidebarListElementForm.vue.js";
|
|
4
|
-
import E from "./EnvironmentColors.vue.js";
|
|
5
|
-
const w = { class: "flex flex-col gap-4" }, N = /* @__PURE__ */ m({
|
|
6
|
-
__name: "EnvironmentColorUpdateModal",
|
|
7
|
-
props: {
|
|
8
|
-
state: {},
|
|
9
|
-
color: {}
|
|
10
|
-
},
|
|
11
|
-
emits: ["cancel", "submit"],
|
|
12
|
-
setup(l, { emit: a }) {
|
|
13
|
-
const r = a, o = c(l.color);
|
|
14
|
-
u(
|
|
15
|
-
() => l.color,
|
|
16
|
-
(e) => {
|
|
17
|
-
o.value = e;
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
const n = (e) => {
|
|
21
|
-
l.state.hide(), e === "cancel" && r("cancel"), e === "submit" && r("submit", { color: o.value });
|
|
22
|
-
};
|
|
23
|
-
return (e, t) => (d(), f(p(b), {
|
|
24
|
-
size: "xxs",
|
|
25
|
-
state: e.state,
|
|
26
|
-
title: "Edit Environment Color",
|
|
27
|
-
onClose: t[3] || (t[3] = () => n("cancel"))
|
|
28
|
-
}, {
|
|
29
|
-
default: C(() => [
|
|
30
|
-
v("div", w, [
|
|
31
|
-
i(E, {
|
|
32
|
-
activeColor: o.value,
|
|
33
|
-
class: "w-full p-1",
|
|
34
|
-
onSelect: t[0] || (t[0] = (s) => o.value = s)
|
|
35
|
-
}, null, 8, ["activeColor"]),
|
|
36
|
-
i(x, {
|
|
37
|
-
onCancel: t[1] || (t[1] = () => n("cancel")),
|
|
38
|
-
onSubmit: t[2] || (t[2] = () => n("submit"))
|
|
39
|
-
})
|
|
40
|
-
])
|
|
41
|
-
]),
|
|
42
|
-
_: 1
|
|
43
|
-
}, 8, ["state"]));
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
export {
|
|
47
|
-
N as default
|
|
48
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type ModalState } from '@scalar/components';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
state: ModalState;
|
|
4
|
-
name: string;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
-
submit: (payload: {
|
|
8
|
-
name: string;
|
|
9
|
-
}) => any;
|
|
10
|
-
cancel: () => any;
|
|
11
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
-
onSubmit?: ((payload: {
|
|
13
|
-
name: string;
|
|
14
|
-
}) => any) | undefined;
|
|
15
|
-
onCancel?: (() => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
export default _default;
|
|
18
|
-
//# sourceMappingURL=EnvironmentNameUpdateModal.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentNameUpdateModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/environments/components/EnvironmentNameUpdateModal.vue"],"names":[],"mappings":"AAuCA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAIjE,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;;;cAKmC,MAAM;;;;;cAAN,MAAM;;;;AAiF3C,wBAOG"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, createBlock as i, openBlock as s, unref as r, withCtx as l, createVNode as p } from "vue";
|
|
2
|
-
import { ScalarModal as d } from "@scalar/components";
|
|
3
|
-
import f from "../../../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
|
|
4
|
-
const b = /* @__PURE__ */ o({
|
|
5
|
-
__name: "EnvironmentNameUpdateModal",
|
|
6
|
-
props: {
|
|
7
|
-
state: {},
|
|
8
|
-
name: {}
|
|
9
|
-
},
|
|
10
|
-
emits: ["cancel", "submit"],
|
|
11
|
-
setup(u, { emit: a }) {
|
|
12
|
-
const n = a;
|
|
13
|
-
return (e, t) => (s(), i(r(d), {
|
|
14
|
-
size: "xxs",
|
|
15
|
-
state: e.state,
|
|
16
|
-
title: `Edit ${e.name}`
|
|
17
|
-
}, {
|
|
18
|
-
default: l(() => [
|
|
19
|
-
p(f, {
|
|
20
|
-
name: e.name,
|
|
21
|
-
onClose: t[0] || (t[0] = () => {
|
|
22
|
-
n("cancel"), e.state.hide();
|
|
23
|
-
}),
|
|
24
|
-
onEdit: t[1] || (t[1] = (m) => {
|
|
25
|
-
n("submit", { name: m }), e.state.hide();
|
|
26
|
-
})
|
|
27
|
-
}, null, 8, ["name"])
|
|
28
|
-
]),
|
|
29
|
-
_: 1
|
|
30
|
-
}, 8, ["state", "title"]));
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
b as default
|
|
35
|
-
};
|