@scalar/api-client 2.3.28 → 2.3.30
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/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +12 -10
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +54 -53
- package/dist/layouts/App/create-api-client-app.d.ts +182 -172
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +364 -344
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +182 -172
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +182 -172
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts +6 -5
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts +18 -17
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +18 -17
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +122 -122
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +66 -55
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +182 -172
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +1 -0
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +18 -14
- 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 +12 -11
- package/dist/views/Request/ResponseSection/index.d.ts +1 -0
- package/dist/views/Request/ResponseSection/index.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/index.js +2 -0
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.3.30
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [e8457cb]
|
|
8
|
+
- @scalar/themes@0.11.0
|
|
9
|
+
- @scalar/oas-utils@0.2.140
|
|
10
|
+
- @scalar/types@0.1.13
|
|
11
|
+
- @scalar/components@0.13.56
|
|
12
|
+
- @scalar/use-codemirror@0.11.101
|
|
13
|
+
- @scalar/use-hooks@0.1.47
|
|
14
|
+
- @scalar/import@0.3.23
|
|
15
|
+
- @scalar/postman-to-openapi@0.2.13
|
|
16
|
+
- @scalar/openapi-parser@0.10.16
|
|
17
|
+
- @scalar/snippetz@0.2.19
|
|
18
|
+
- @scalar/icons@0.3.4
|
|
19
|
+
|
|
20
|
+
## 2.3.29
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- a4e5a2e: chore: export response body component
|
|
25
|
+
- 701093e: chore: propogogate layout prop outside response body
|
|
26
|
+
- Updated dependencies [d2f27f4]
|
|
27
|
+
- Updated dependencies [d2f27f4]
|
|
28
|
+
- @scalar/components@0.13.55
|
|
29
|
+
- @scalar/oas-utils@0.2.139
|
|
30
|
+
- @scalar/use-codemirror@0.11.100
|
|
31
|
+
- @scalar/import@0.3.22
|
|
32
|
+
- @scalar/postman-to-openapi@0.2.12
|
|
33
|
+
|
|
3
34
|
## 2.3.28
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -96,21 +96,22 @@ export declare const PaletteComponents: {
|
|
|
96
96
|
required?: boolean | undefined;
|
|
97
97
|
example?: unknown;
|
|
98
98
|
deprecated?: boolean | undefined;
|
|
99
|
-
schema?: unknown;
|
|
100
|
-
content?: unknown;
|
|
101
|
-
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
102
99
|
examples?: unknown[] | Record<string, {
|
|
103
100
|
value?: unknown;
|
|
104
101
|
summary?: string | undefined;
|
|
102
|
+
externalValue?: string | undefined;
|
|
105
103
|
}> | undefined;
|
|
104
|
+
schema?: unknown;
|
|
105
|
+
content?: unknown;
|
|
106
|
+
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
106
107
|
}[] | undefined;
|
|
107
108
|
requestBody?: any;
|
|
108
109
|
responses?: Record<string, any> | undefined;
|
|
110
|
+
'x-scalar-stability'?: unknown;
|
|
111
|
+
method?: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace" | undefined;
|
|
109
112
|
'x-codeSamples'?: unknown;
|
|
110
113
|
'x-code-samples'?: unknown;
|
|
111
114
|
'x-custom-examples'?: unknown;
|
|
112
|
-
'x-scalar-stability'?: unknown;
|
|
113
|
-
method?: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace" | undefined;
|
|
114
115
|
} & {
|
|
115
116
|
url?: string;
|
|
116
117
|
};
|
|
@@ -148,21 +149,22 @@ export declare const PaletteComponents: {
|
|
|
148
149
|
required?: boolean | undefined;
|
|
149
150
|
example?: unknown;
|
|
150
151
|
deprecated?: boolean | undefined;
|
|
151
|
-
schema?: unknown;
|
|
152
|
-
content?: unknown;
|
|
153
|
-
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
154
152
|
examples?: unknown[] | Record<string, {
|
|
155
153
|
value?: unknown;
|
|
156
154
|
summary?: string | undefined;
|
|
155
|
+
externalValue?: string | undefined;
|
|
157
156
|
}> | undefined;
|
|
157
|
+
schema?: unknown;
|
|
158
|
+
content?: unknown;
|
|
159
|
+
style?: "matrix" | "simple" | "form" | "label" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
158
160
|
}[] | undefined;
|
|
159
161
|
requestBody?: any;
|
|
160
162
|
responses?: Record<string, any> | undefined;
|
|
163
|
+
'x-scalar-stability'?: unknown;
|
|
164
|
+
method?: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace" | undefined;
|
|
161
165
|
'x-codeSamples'?: unknown;
|
|
162
166
|
'x-code-samples'?: unknown;
|
|
163
167
|
'x-custom-examples'?: unknown;
|
|
164
|
-
'x-scalar-stability'?: unknown;
|
|
165
|
-
method?: "options" | "connect" | "delete" | "get" | "head" | "patch" | "post" | "put" | "trace" | undefined;
|
|
166
168
|
} & {
|
|
167
169
|
url?: string;
|
|
168
170
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AA0eA;;;;GAIG;;AACH,wBAmjBI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBAnlB9B,CAvTqC;qBAuTrC,CAtTY;;;;;;;mBAsTZ,CAvTqC;qBAuTrC,CAtTY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+
|
|
1
|
+
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AA0eA;;;;GAIG;;AACH,wBAmjBI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBAnlB9B,CAvTqC;qBAuTrC,CAtTY;;;;;;;mBAsTZ,CAvTqC;qBAuTrC,CAtTY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA6sB+B,CAAC;;;;;;;;;;;;;;;+BAOmD,CAAC;4BAAsC,CAAC;2BACrI,CAAA;8BAGO,CAAC;4BAAuC,CAAC;6BACb,CAAC;+BAA8B,CAAC;qCAA+C,CAAC;;0BAI/F,CAAC;2BAA0B,CAAC;yBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAhBhC,CAAC;;;;;;;;;;;;;;;+BAOmD,CAAC;4BAAsC,CAAC;2BACrI,CAAA;8BAGO,CAAC;4BAAuC,CAAC;6BACb,CAAC;+BAA8B,CAAC;qCAA+C,CAAC;;0BAI/F,CAAC;2BAA0B,CAAC;yBAAwB,CAAC;;;;;;;;;;;;;;;;;;CAqLjE,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"AA+LA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,CAAC;;;;;;uBAFoB,OAAO;;AAoX/B,wBASG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarComboboxMultiselect as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as T, computed as m, ref as V, watch as S, nextTick as E, openBlock as o, createElementBlock as f, createBlock as v, unref as a, withCtx as s, createVNode as u, createElementVNode as i, toDisplayString as y, withDirectives as K, withKeys as M, vModelText as R, Fragment as C, renderList as U, normalizeClass as W, createCommentVNode as _ } from "vue";
|
|
2
|
+
import { ScalarComboboxMultiselect as $, ScalarButton as b, ScalarIcon as h, ScalarDropdown as F, ScalarDropdownItem as D, ScalarDropdownDivider as L } from "@scalar/components";
|
|
3
|
+
const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline" }, G = { class: "text-c-1 whitespace-nowrap" }, H = { class: "text-c-1 overflow-hidden text-ellipsis" }, J = { class: "overflow-hidden text-ellipsis" }, P = { class: "flex h-4 w-4 items-center justify-center" }, Z = /* @__PURE__ */ T({
|
|
4
4
|
__name: "DataTableInputSelect",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
@@ -11,61 +11,62 @@ const G = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
13
|
setup(B, { emit: j }) {
|
|
14
|
-
const
|
|
14
|
+
const n = B, c = j, p = m(() => n.value ?? []), d = V(!1), r = V(""), x = V(null);
|
|
15
15
|
S(r, (e) => {
|
|
16
16
|
c("update:modelValue", e);
|
|
17
17
|
});
|
|
18
18
|
const g = (e) => {
|
|
19
|
-
c("update:modelValue", e),
|
|
19
|
+
c("update:modelValue", e), d.value = !1;
|
|
20
20
|
}, z = () => {
|
|
21
21
|
r.value.trim() && g(r.value);
|
|
22
22
|
}, A = () => {
|
|
23
|
-
r.value.trim() || c("update:modelValue", ""),
|
|
24
|
-
},
|
|
25
|
-
S(
|
|
23
|
+
r.value.trim() || c("update:modelValue", ""), d.value = !1;
|
|
24
|
+
}, I = (e) => n.modelValue.toString() === e;
|
|
25
|
+
S(d, (e) => {
|
|
26
26
|
e && E(() => {
|
|
27
|
-
var
|
|
28
|
-
(
|
|
27
|
+
var l;
|
|
28
|
+
(l = x.value) == null || l.focus();
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
|
-
const k = m(() =>
|
|
32
|
-
const e = new Set(
|
|
33
|
-
return p.value.filter((
|
|
34
|
-
}),
|
|
31
|
+
const k = m(() => n.modelValue !== void 0 ? n.modelValue : n.default), w = m(() => {
|
|
32
|
+
const e = new Set(n.modelValue.toString().split(", "));
|
|
33
|
+
return p.value.filter((l) => e.has(l)).map((l) => ({ id: l, label: l, value: l }));
|
|
34
|
+
}), N = m(
|
|
35
35
|
() => p.value.map((e) => ({ id: e, label: e, value: e }))
|
|
36
|
-
),
|
|
37
|
-
const
|
|
38
|
-
c("update:modelValue",
|
|
36
|
+
), O = (e) => {
|
|
37
|
+
const l = e.map((t) => t.value);
|
|
38
|
+
c("update:modelValue", l.join(", "));
|
|
39
39
|
};
|
|
40
|
-
return (e,
|
|
41
|
-
e.type === "array" ? (o(), v(a(
|
|
40
|
+
return (e, l) => (o(), f("div", q, [
|
|
41
|
+
e.type === "array" ? (o(), v(a($), {
|
|
42
42
|
key: 0,
|
|
43
|
-
modelValue:
|
|
44
|
-
options:
|
|
45
|
-
"onUpdate:modelValue":
|
|
43
|
+
modelValue: w.value,
|
|
44
|
+
options: N.value,
|
|
45
|
+
"onUpdate:modelValue": O
|
|
46
46
|
}, {
|
|
47
|
-
default:
|
|
48
|
-
|
|
47
|
+
default: s(() => [
|
|
48
|
+
u(a(b), {
|
|
49
49
|
class: "custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none",
|
|
50
50
|
fullWidth: "",
|
|
51
51
|
variant: "ghost"
|
|
52
52
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
default: s(() => [
|
|
54
|
+
i("span", G, y(w.value.length > 0 ? w.value.map((t) => t.label).join(", ") : "Select a value"), 1),
|
|
55
|
+
u(a(h), {
|
|
56
56
|
icon: "ChevronDown",
|
|
57
|
-
size: "md"
|
|
57
|
+
size: "md",
|
|
58
|
+
class: "min-w-4"
|
|
58
59
|
})
|
|
59
60
|
]),
|
|
60
61
|
_: 1
|
|
61
62
|
})
|
|
62
63
|
]),
|
|
63
64
|
_: 1
|
|
64
|
-
}, 8, ["modelValue", "options"])) :
|
|
65
|
+
}, 8, ["modelValue", "options"])) : d.value ? K((o(), f("input", {
|
|
65
66
|
key: 1,
|
|
66
67
|
ref_key: "inputRef",
|
|
67
68
|
ref: x,
|
|
68
|
-
"onUpdate:modelValue":
|
|
69
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => r.value = t),
|
|
69
70
|
class: "text-c-1 w-full min-w-0 border-none px-2 py-1.5 outline-none",
|
|
70
71
|
placeholder: "Value",
|
|
71
72
|
type: "text",
|
|
@@ -73,63 +74,63 @@ const G = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
73
74
|
onKeyup: M(z, ["enter"])
|
|
74
75
|
}, null, 544)), [
|
|
75
76
|
[R, r.value]
|
|
76
|
-
]) : (o(), v(a(
|
|
77
|
+
]) : (o(), v(a(F), {
|
|
77
78
|
key: 2,
|
|
78
79
|
resize: "",
|
|
79
80
|
value: k.value
|
|
80
81
|
}, {
|
|
81
|
-
items:
|
|
82
|
-
(o(!0), f(C, null, U(p.value, (
|
|
83
|
-
key:
|
|
82
|
+
items: s(() => [
|
|
83
|
+
(o(!0), f(C, null, U(p.value, (t) => (o(), v(a(D), {
|
|
84
|
+
key: t,
|
|
84
85
|
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
85
|
-
value:
|
|
86
|
-
onClick: (Q) => g(
|
|
86
|
+
value: t,
|
|
87
|
+
onClick: (Q) => g(t)
|
|
87
88
|
}, {
|
|
88
|
-
default:
|
|
89
|
-
|
|
89
|
+
default: s(() => [
|
|
90
|
+
i("div", {
|
|
90
91
|
class: W([
|
|
91
92
|
"flex h-4 w-4 items-center justify-center rounded-full p-[3px]",
|
|
92
|
-
|
|
93
|
+
I(t) ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
|
|
93
94
|
])
|
|
94
95
|
}, [
|
|
95
|
-
|
|
96
|
+
u(a(h), {
|
|
96
97
|
class: "size-2.5",
|
|
97
98
|
icon: "Checkmark",
|
|
98
99
|
thickness: "3"
|
|
99
100
|
})
|
|
100
101
|
], 2),
|
|
101
|
-
|
|
102
|
+
i("span", J, y(t), 1)
|
|
102
103
|
]),
|
|
103
104
|
_: 2
|
|
104
105
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
105
106
|
e.canAddCustomValue ? (o(), f(C, { key: 0 }, [
|
|
106
|
-
p.value.length ? (o(), v(a(
|
|
107
|
-
|
|
107
|
+
p.value.length ? (o(), v(a(L), { key: 0 })) : _("", !0),
|
|
108
|
+
u(a(D), {
|
|
108
109
|
class: "flex items-center gap-1.5",
|
|
109
|
-
onClick:
|
|
110
|
+
onClick: l[1] || (l[1] = (t) => d.value = !0)
|
|
110
111
|
}, {
|
|
111
|
-
default:
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
default: s(() => [
|
|
113
|
+
i("div", P, [
|
|
114
|
+
u(a(h), {
|
|
114
115
|
icon: "Add",
|
|
115
116
|
size: "sm"
|
|
116
117
|
})
|
|
117
118
|
]),
|
|
118
|
-
|
|
119
|
+
l[2] || (l[2] = i("span", null, "Add value", -1))
|
|
119
120
|
]),
|
|
120
121
|
_: 1
|
|
121
122
|
})
|
|
122
123
|
], 64)) : _("", !0)
|
|
123
124
|
]),
|
|
124
|
-
default:
|
|
125
|
-
|
|
125
|
+
default: s(() => [
|
|
126
|
+
u(a(b), {
|
|
126
127
|
class: "h-full justify-start gap-1.5 overflow-auto whitespace-nowrap px-2 py-1.5 font-normal outline-none",
|
|
127
128
|
fullWidth: "",
|
|
128
129
|
variant: "ghost"
|
|
129
130
|
}, {
|
|
130
|
-
default:
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
default: s(() => [
|
|
132
|
+
i("span", H, y(k.value || "Select a value"), 1),
|
|
133
|
+
u(a(h), {
|
|
133
134
|
icon: "ChevronDown",
|
|
134
135
|
size: "md"
|
|
135
136
|
})
|