@scalar/api-client 2.2.8 → 2.2.9
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 +21 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +65 -65
- package/dist/components/CodeInput/codeVariableWidget.d.ts +6 -4
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +72 -68
- package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.vue.js +20 -15
- package/dist/components/DataTable/DataTableCell.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCell.vue.js +16 -11
- package/dist/components/DataTable/DataTableHeader.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableHeader.vue.js +11 -12
- package/dist/components/DataTable/DataTableInput.vue.d.ts +2 -1
- 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 +9 -9
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +87 -67
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +2 -2
- package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarList.vue.js +4 -4
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +8 -4
- 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 +52 -32
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +3 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +43 -31
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +32 -31
- package/dist/layouts/App/create-api-client-app.d.ts +49 -42
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +103 -89
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.js +31 -19
- package/dist/layouts/Web/create-api-client-web.d.ts +49 -42
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +50 -44
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/env-helpers.d.ts +9 -0
- package/dist/libs/env-helpers.d.ts.map +1 -0
- package/dist/libs/env-helpers.js +4 -0
- package/dist/libs/environment-parser.d.ts +3 -4
- package/dist/libs/environment-parser.d.ts.map +1 -1
- package/dist/libs/environment-parser.js +5 -4
- package/dist/libs/index.d.ts +1 -0
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +24 -22
- package/dist/libs/send-request/send-request.d.ts +5 -2
- package/dist/libs/send-request/send-request.d.ts.map +1 -1
- package/dist/libs/send-request/send-request.js +106 -104
- package/dist/routes.d.ts +11 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +13 -7
- package/dist/store/active-entities.d.ts +18 -11
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +108 -69
- package/dist/store/collections.d.ts +17 -15
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +62 -41
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -0
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +7 -3
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/router-params.d.ts +1 -1
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/router-params.js +7 -7
- package/dist/store/store.d.ts +49 -42
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +76 -72
- package/dist/store/workspace.d.ts +12 -12
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/vue.d.ts +10 -0
- package/dist/types/vue.d.ts.map +1 -0
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +75 -70
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +308 -152
- package/dist/views/Environment/EnvironmentColorModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColorModal.vue.js +20 -18
- package/dist/views/Environment/EnvironmentColors.vue.d.ts +4 -1
- package/dist/views/Environment/EnvironmentColors.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentColors.vue.js +83 -58
- package/dist/views/Environment/EnvironmentModal.vue.d.ts +7 -0
- package/dist/views/Environment/EnvironmentModal.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +119 -37
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +4 -5
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +73 -63
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +2 -2
- package/dist/views/Request/Request.vue2.js +60 -61
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +185 -187
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -24
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +35 -187
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +7 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +207 -0
- package/dist/views/Request/RequestSection/{RequestAuthDataTableInput.vue.d.ts → RequestAuth/RequestAuthDataTableInput.vue.d.ts} +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +43 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +5 -134
- package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +176 -2
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.d.ts.map +1 -0
- package/dist/views/Request/RequestSection/RequestAuth/index.js +4 -0
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +2 -2
- package/dist/views/Request/RequestSidebar.vue2.js +129 -109
- 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 +32 -38
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/auth.js +3 -3
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +9 -8
- package/package.json +19 -9
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.js +0 -46
- /package/dist/views/Request/RequestSection/{RequestAuthDataTableInput.vue2.js → RequestAuth/RequestAuthDataTableInput.vue2.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as d, openBlock as a, createBlock as m, withCtx as e, createVNode as r, unref as n, createElementVNode as
|
|
1
|
+
import { defineComponent as d, openBlock as a, createBlock as m, withCtx as e, createVNode as r, unref as n, createElementVNode as v, createElementBlock as _, Fragment as S, renderList as x, createTextVNode as b } from "vue";
|
|
2
2
|
import k from "../../components/Sidebar/SidebarButton.vue.js";
|
|
3
3
|
import h from "../../components/Sidebar/SidebarList.vue.js";
|
|
4
4
|
import L from "../../components/Sidebar/SidebarListElement.vue.js";
|
|
5
5
|
import V from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
6
6
|
import w from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
7
|
-
import { useActiveEntities as
|
|
8
|
-
import { serverSchema as
|
|
9
|
-
import { useRouter as
|
|
7
|
+
import { useActiveEntities as y } from "../../store/active-entities.js";
|
|
8
|
+
import { serverSchema as C } from "@scalar/oas-utils/entities/spec";
|
|
9
|
+
import { useRouter as E } from "vue-router";
|
|
10
10
|
import B from "./ServerForm.vue.js";
|
|
11
11
|
import { useWorkspace as N } from "../../store/store.js";
|
|
12
12
|
import A from "../../components/Sidebar/Sidebar.vue.js";
|
|
13
13
|
const $ = { class: "flex-1" }, J = /* @__PURE__ */ d({
|
|
14
14
|
__name: "Servers",
|
|
15
15
|
setup(g) {
|
|
16
|
-
const { activeCollection: t } =
|
|
16
|
+
const { activeCollection: t } = y(), { servers: u, serverMutators: c } = N(), { push: f } = E(), p = () => {
|
|
17
17
|
if (!t.value) return;
|
|
18
|
-
const o =
|
|
18
|
+
const o = C.parse({ url: "http://localhost" });
|
|
19
19
|
c.add(o, t.value.uid), f({
|
|
20
20
|
name: "servers",
|
|
21
21
|
params: {
|
|
@@ -27,14 +27,15 @@ const $ = { class: "flex-1" }, J = /* @__PURE__ */ d({
|
|
|
27
27
|
default: e(() => [
|
|
28
28
|
r(n(A), { title: "Servers" }, {
|
|
29
29
|
content: e(() => [
|
|
30
|
-
|
|
30
|
+
v("div", $, [
|
|
31
31
|
r(h, null, {
|
|
32
32
|
default: e(() => {
|
|
33
33
|
var l;
|
|
34
34
|
return [
|
|
35
|
-
(a(!0),
|
|
35
|
+
(a(!0), _(S, null, x((l = n(t)) == null ? void 0 : l.servers, (s) => (a(), m(L, {
|
|
36
36
|
key: s,
|
|
37
37
|
class: "text-xs",
|
|
38
|
+
type: "server",
|
|
38
39
|
variable: {
|
|
39
40
|
name: n(u)[s].url ?? "",
|
|
40
41
|
uid: s
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.2.
|
|
21
|
+
"version": "2.2.9",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -50,6 +50,16 @@
|
|
|
50
50
|
"types": "./dist/views/Request/components/index.d.ts",
|
|
51
51
|
"default": "./dist/views/Request/components/index.js"
|
|
52
52
|
},
|
|
53
|
+
"./views/Request/RequestSection/RequestAuth": {
|
|
54
|
+
"import": "./dist/views/Request/RequestSection/RequestAuth/index.js",
|
|
55
|
+
"types": "./dist/views/Request/RequestSection/RequestAuth/index.d.ts",
|
|
56
|
+
"default": "./dist/views/Request/RequestSection/RequestAuth/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./types": {
|
|
59
|
+
"import": "./dist/types/index.js",
|
|
60
|
+
"types": "./dist/types/index.d.ts",
|
|
61
|
+
"default": "./dist/types/index.js"
|
|
62
|
+
},
|
|
53
63
|
"./store": {
|
|
54
64
|
"import": "./dist/store/index.js",
|
|
55
65
|
"types": "./dist/store/index.d.ts",
|
|
@@ -159,19 +169,19 @@
|
|
|
159
169
|
"whatwg-mimetype": "^4.0.0",
|
|
160
170
|
"yaml": "^2.4.5",
|
|
161
171
|
"zod": "^3.23.8",
|
|
162
|
-
"@scalar/components": "0.13.2",
|
|
163
172
|
"@scalar/draggable": "0.1.7",
|
|
164
|
-
"@scalar/
|
|
165
|
-
"@scalar/import": "0.2.
|
|
166
|
-
"@scalar/oas-utils": "0.2.85",
|
|
167
|
-
"@scalar/object-utils": "1.1.12",
|
|
173
|
+
"@scalar/oas-utils": "0.2.86",
|
|
174
|
+
"@scalar/import": "0.2.4",
|
|
168
175
|
"@scalar/openapi-parser": "0.8.10",
|
|
176
|
+
"@scalar/object-utils": "1.1.12",
|
|
177
|
+
"@scalar/icons": "0.1.2",
|
|
169
178
|
"@scalar/openapi-types": "0.1.5",
|
|
170
|
-
"@scalar/
|
|
179
|
+
"@scalar/postman-to-openapi": "0.1.9",
|
|
171
180
|
"@scalar/types": "0.0.23",
|
|
172
|
-
"@scalar/
|
|
173
|
-
"@scalar/
|
|
181
|
+
"@scalar/components": "0.13.3",
|
|
182
|
+
"@scalar/use-codemirror": "0.11.47",
|
|
174
183
|
"@scalar/use-hooks": "0.1.7",
|
|
184
|
+
"@scalar/themes": "0.9.54",
|
|
175
185
|
"@scalar/use-toasts": "0.7.7",
|
|
176
186
|
"@scalar/use-tooltip": "1.0.4"
|
|
177
187
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestAuthDataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestAuthDataTableInput.vue"],"names":[],"mappings":"AAoDA,KAAK,WAAW,GAAG;IACf,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AAqBJ,iBAAS,cAAc;WA4GT,OAAO,IAA6B;;yBATpB,GAAG;sBACN,GAAG;;;;EAa7B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cAtJN,OAAO;cAEP,OAAO;6EA6JpB,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"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, openBlock as i, createBlock as p, mergeProps as m, withCtx as a, createElementVNode as f, renderSlot as r } from "vue";
|
|
2
|
-
import V from "../../../components/DataTable/DataTableInput.vue.js";
|
|
3
|
-
const y = ["for"], B = /* @__PURE__ */ s({
|
|
4
|
-
__name: "RequestAuthDataTableInput",
|
|
5
|
-
props: {
|
|
6
|
-
id: {},
|
|
7
|
-
type: {},
|
|
8
|
-
containerClass: {},
|
|
9
|
-
required: { type: Boolean, default: !1 },
|
|
10
|
-
modelValue: {},
|
|
11
|
-
readOnly: { type: Boolean, default: !1 }
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
14
|
-
setup(u, { emit: d }) {
|
|
15
|
-
const e = u, o = d;
|
|
16
|
-
return (n, t) => (i(), p(V, m({
|
|
17
|
-
id: e.id,
|
|
18
|
-
canAddCustomEnumValue: !e.readOnly,
|
|
19
|
-
containerClass: e.containerClass,
|
|
20
|
-
modelValue: e.modelValue,
|
|
21
|
-
readOnly: e.readOnly,
|
|
22
|
-
required: e.required,
|
|
23
|
-
type: e.type
|
|
24
|
-
}, n.$attrs, {
|
|
25
|
-
onInputBlur: t[0] || (t[0] = (l) => o("inputBlur")),
|
|
26
|
-
onInputFocus: t[1] || (t[1] = (l) => o("inputFocus")),
|
|
27
|
-
onSelectVariable: t[2] || (t[2] = (l) => o("selectVariable", l)),
|
|
28
|
-
"onUpdate:modelValue": t[3] || (t[3] = (l) => o("update:modelValue", l))
|
|
29
|
-
}), {
|
|
30
|
-
default: a(() => [
|
|
31
|
-
f("label", {
|
|
32
|
-
for: e.id
|
|
33
|
-
}, [
|
|
34
|
-
r(n.$slots, "default")
|
|
35
|
-
], 8, y)
|
|
36
|
-
]),
|
|
37
|
-
icon: a(() => [
|
|
38
|
-
r(n.$slots, "icon")
|
|
39
|
-
]),
|
|
40
|
-
_: 3
|
|
41
|
-
}, 16, ["id", "canAddCustomEnumValue", "containerClass", "modelValue", "readOnly", "required", "type"]));
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
export {
|
|
45
|
-
B as default
|
|
46
|
-
};
|