@scalar/api-client 2.3.34 → 2.4.2
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 +67 -0
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +74 -89
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.d.ts +2 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +19 -18
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +3 -3
- package/dist/components/TopNav/TopNavItem.vue2.js +46 -54
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
- package/dist/hooks/useClientConfig.d.ts +72 -6
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +45 -40
- package/dist/layouts/App/create-api-client-app.d.ts +72 -52
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +144 -104
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +49 -44
- package/dist/layouts/Web/create-api-client-web.d.ts +72 -52
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +72 -52
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +53 -49
- package/dist/libs/electron.d.ts +5 -0
- package/dist/libs/electron.d.ts.map +1 -0
- package/dist/libs/electron.js +4 -0
- package/dist/libs/find-request.d.ts +2 -0
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts +10 -3
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.js +28 -6
- package/dist/libs/send-request/create-request-operation.d.ts +3 -1
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +91 -87
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -0
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +8 -0
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -0
- package/dist/plugins/hooks/usePluginManager.js +10 -0
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +7 -0
- package/dist/plugins/plugin-manager.d.ts +28 -0
- package/dist/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/plugins/plugin-manager.js +24 -0
- package/dist/store/active-entities.d.ts +2 -0
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +26 -4
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/security-schemes.d.ts +24 -24
- package/dist/store/store.d.ts +72 -52
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +47 -45
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +37 -34
- package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestParams.vue.js +61 -70
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +92 -77
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -4
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +59 -65
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +34 -35
- package/dist/views/Request/RequestSection/types/post-response.d.ts +7 -0
- package/dist/views/Request/RequestSection/types/post-response.d.ts.map +1 -0
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
- package/dist/views/Request/RequestSidebarItem.vue2.js +132 -134
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +82 -70
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -114
- package/package.json +25 -20
|
@@ -1,57 +1,56 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { ScalarIconWarning as
|
|
1
|
+
import { defineComponent as d, computed as c, createBlock as s, openBlock as t, unref as n, withCtx as r, createElementVNode as l, createElementBlock as i, createCommentVNode as o, toDisplayString as a } from "vue";
|
|
2
|
+
import { ScalarPopover as f } from "@scalar/components";
|
|
3
|
+
import { ScalarIconWarning as h, ScalarIconInfo as v } from "@scalar/icons";
|
|
4
4
|
import { parameterIsInvalid as p } from "../libs/request.js";
|
|
5
|
-
const
|
|
5
|
+
const y = ["aria-label", "role"], k = { class: "w-content text-xxs text-c-1 grid min-w-48 gap-1.5 rounded px-1.5 pb-1.5 pt-2 leading-none" }, g = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "text-error-1"
|
|
8
8
|
}, b = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "schema text-c-2 flex items-center"
|
|
11
|
-
}, _ = { key: 0 }, I = { key: 1 },
|
|
11
|
+
}, _ = { key: 0 }, I = { key: 1 }, x = { key: 2 }, S = { key: 3 }, w = { key: 4 }, B = {
|
|
12
12
|
key: 2,
|
|
13
13
|
class: "text-pretty text-sm leading-snug",
|
|
14
14
|
style: { maxWidth: "16rem" }
|
|
15
|
-
}, V = /* @__PURE__ */
|
|
15
|
+
}, V = /* @__PURE__ */ d({
|
|
16
16
|
__name: "RequestTableTooltip",
|
|
17
17
|
props: {
|
|
18
18
|
item: {}
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
return (e,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
side: "left",
|
|
27
|
-
triggerClass: "py-1"
|
|
20
|
+
setup(u) {
|
|
21
|
+
const m = c(() => !!p(u.item).value);
|
|
22
|
+
return (e, C) => (t(), s(n(f), {
|
|
23
|
+
teleport: "",
|
|
24
|
+
offset: 4,
|
|
25
|
+
placement: "left"
|
|
28
26
|
}, {
|
|
29
|
-
|
|
30
|
-
l("div",
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
popover: r(() => [
|
|
28
|
+
l("div", k, [
|
|
29
|
+
m.value ? (t(), i("div", g, a(n(p)(e.item).value), 1)) : e.item.type || e.item.format || e.item.minimum || e.item.maximum || e.item.default ? (t(), i("div", b, [
|
|
30
|
+
e.item.type ? (t(), i("span", _, a(e.item.type), 1)) : o("", !0),
|
|
31
|
+
e.item.format ? (t(), i("span", I, a(e.item.format), 1)) : o("", !0),
|
|
32
|
+
e.item.minimum ? (t(), i("span", x, "min: " + a(e.item.minimum), 1)) : o("", !0),
|
|
33
|
+
e.item.maximum ? (t(), i("span", S, "max: " + a(e.item.maximum), 1)) : o("", !0),
|
|
34
|
+
e.item.default ? (t(), i("span", w, "default: " + a(e.item.default), 1)) : o("", !0)
|
|
35
|
+
])) : o("", !0),
|
|
36
|
+
e.item.description && !m.value ? (t(), i("span", B, a(e.item.description), 1)) : o("", !0)
|
|
37
|
+
])
|
|
38
|
+
]),
|
|
39
|
+
default: r(() => [
|
|
40
|
+
l("button", {
|
|
41
|
+
type: "button",
|
|
42
|
+
"aria-label": m.value ? "Input is invalid" : "More Information",
|
|
43
|
+
class: "text-c-2 hover:text-c-1 hover:bg-b-2 rounded p-1",
|
|
44
|
+
role: m.value ? "alert" : "none"
|
|
34
45
|
}, [
|
|
35
|
-
|
|
46
|
+
m.value ? (t(), s(n(h), {
|
|
36
47
|
key: 0,
|
|
37
|
-
class: "text-orange size-3.5 brightness-
|
|
38
|
-
})) : (t(), n(
|
|
48
|
+
class: "text-orange size-3.5 brightness-90 hover:brightness-75"
|
|
49
|
+
})) : (t(), s(n(v), {
|
|
39
50
|
key: 1,
|
|
40
51
|
class: "text-c-2 hover:text-c-1 size-3.5"
|
|
41
52
|
}))
|
|
42
|
-
], 8,
|
|
43
|
-
]),
|
|
44
|
-
content: m(() => [
|
|
45
|
-
l("div", v, [
|
|
46
|
-
r.value ? (t(), i("div", k, o(s(p)(e.item).value), 1)) : e.item.type || e.item.format || e.item.minimum || e.item.maximum || e.item.default ? (t(), i("div", b, [
|
|
47
|
-
e.item.type ? (t(), i("span", _, o(e.item.type), 1)) : a("", !0),
|
|
48
|
-
e.item.format ? (t(), i("span", I, o(e.item.format), 1)) : a("", !0),
|
|
49
|
-
e.item.minimum ? (t(), i("span", w, "min: " + o(e.item.minimum), 1)) : a("", !0),
|
|
50
|
-
e.item.maximum ? (t(), i("span", x, "max: " + o(e.item.maximum), 1)) : a("", !0),
|
|
51
|
-
e.item.default ? (t(), i("span", C, "default: " + o(e.item.default), 1)) : a("", !0)
|
|
52
|
-
])) : a("", !0),
|
|
53
|
-
e.item.description && !r.value ? (t(), i("span", S, o(e.item.description), 1)) : a("", !0)
|
|
54
|
-
])
|
|
53
|
+
], 8, y)
|
|
55
54
|
]),
|
|
56
55
|
_: 1
|
|
57
56
|
}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PostResponseScript, PostResponseScripts } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
export type { PostResponseScript };
|
|
3
|
+
export type PostResponseScriptsProps = {
|
|
4
|
+
scripts: PostResponseScripts | undefined;
|
|
5
|
+
onUpdate: (scripts: PostResponseScripts | undefined) => void;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=post-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-response.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/types/post-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AAE9F,YAAY,EAAE,kBAAkB,EAAE,CAAA;AAClC,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,mBAAmB,GAAG,SAAS,CAAA;IACxC,QAAQ,EAAE,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,KAAK,IAAI,CAAA;CAC7D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA+rBA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EAAY,QAAQ,EAAO,MAAM,KAAK,CAAA;AAU7C,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIzE,KAAK,WAAW,GAAG;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAA;IAC3C,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,0DAA0D;IAC1D,GAAG,EAAE,MAAM,CAAA;IACX,2CAA2C;IAC3C,QAAQ,EAAE,eAAe,CAAA;CAC1B,CAAC;AA4VF,iBAAS,cAAc;WAguBT,OAAO,IAA6B;;oBA1iCpC,IAAI;;oBAAJ,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAjElB,KA5oBmB;;;;;;;oCA4oBnB,KAxoBO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqyBQ,GAAG,8CACgB,GAAG,yBAC/B,GAAD,6DACe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAg9BtB;AAqCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAUpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import t from "./RequestSidebarItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-53a5cd2d"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
p as default
|
|
8
8
|
};
|