@scalar/api-client 2.3.2 → 2.3.4
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 +27 -0
- package/dist/components/CodeInput/CodeInput.test.d.ts +2 -0
- package/dist/components/CodeInput/CodeInput.test.d.ts.map +1 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts +8 -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 +86 -80
- package/dist/components/DataTable/DataTableInput.vue.d.ts +13 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +3 -3
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +27 -28
- package/dist/layouts/Modal/create-api-client-modal.d.ts +6 -6
- package/dist/layouts/Web/create-api-client-web.d.ts +3 -3
- package/dist/libs/create-client.d.ts +3 -3
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +53 -54
- package/dist/libs/create-client.test.d.ts +2 -0
- package/dist/libs/create-client.test.d.ts.map +1 -0
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/store.d.ts +14 -35
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- 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 +50 -55
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +60 -62
- 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 +142 -141
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/vitest.setup.d.ts +4 -0
- package/dist/vitest.setup.d.ts.map +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ed2b1fb: chore: removed isReadOnly property as it isn't used anymore
|
|
8
|
+
- ebc29d5: fix: boolean values being nullable with tests
|
|
9
|
+
- 58acdc6: fix(api-client): focus the client modal sidebar button when modal opens
|
|
10
|
+
|
|
11
|
+
## 2.3.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- cd75eeb: fix: update collection in multi doc
|
|
16
|
+
- 4093692: fix: updates multiple auth style
|
|
17
|
+
- Updated dependencies [cd75eeb]
|
|
18
|
+
- Updated dependencies [39c0f47]
|
|
19
|
+
- @scalar/oas-utils@0.2.120
|
|
20
|
+
- @scalar/types@0.1.1
|
|
21
|
+
- @scalar/import@0.3.2
|
|
22
|
+
- @scalar/postman-to-openapi@0.1.43
|
|
23
|
+
- @scalar/openapi-parser@0.10.10
|
|
24
|
+
- @scalar/snippetz@0.2.16
|
|
25
|
+
- @scalar/themes@0.9.79
|
|
26
|
+
- @scalar/components@0.13.37
|
|
27
|
+
- @scalar/use-codemirror@0.11.82
|
|
28
|
+
- @scalar/use-hooks@0.1.33
|
|
29
|
+
|
|
3
30
|
## 2.3.2
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeInput.test.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Workspace } from '@scalar/oas-utils/entities';
|
|
2
2
|
import type { Environment } from '@scalar/oas-utils/entities/environment';
|
|
3
3
|
import { type CodeMirrorLanguage } from '@scalar/use-codemirror';
|
|
4
|
+
import { type Ref } from 'vue';
|
|
4
5
|
import type { EnvVariable } from '../../store/active-entities';
|
|
5
6
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
6
7
|
colorPicker?: boolean;
|
|
@@ -30,7 +31,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
30
31
|
envVariables: EnvVariable[];
|
|
31
32
|
workspace: Workspace;
|
|
32
33
|
}, {
|
|
34
|
+
/** Expose focus method */
|
|
33
35
|
focus: () => void;
|
|
36
|
+
handleChange: (value: string) => void | null;
|
|
37
|
+
handleSubmit: (value: string) => void;
|
|
38
|
+
handleBlur: (value: string) => void;
|
|
39
|
+
booleanOptions: import("vue").ComputedRef<string[]>;
|
|
40
|
+
codeMirror: Ref<import("@codemirror/view").EditorView | null, import("@codemirror/view").EditorView | null>;
|
|
41
|
+
modelValue: string | number;
|
|
34
42
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
35
43
|
submit: (v: string) => any;
|
|
36
44
|
"update:modelValue": (v: string) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAkgBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAEzE,OAAO,EAIL,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAA;AAG/B,OAAO,EAAyC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAGrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;;kBAYxC,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;eAChB,SAAS;;IA4KtB,0BAA0B;;0BAhIC,MAAM;0BAwBN,MAAM;wBAOR,MAAM;;;;;;;;;;kBApGf,OAAO;eACV,OAAO;gBACN,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;eACJ,MAAM,EAAE;WACZ,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;eACzB,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;iBACZ,WAAW;kBACV,WAAW,EAAE;eAChB,SAAS;;;;;;;cAPT,OAAO;cAjBP,OAAO;iBADJ,OAAO;gBAIR,OAAO;sBAGD,OAAO;kBAMX,OAAO;0BACC,OAAO;mBAKd,OAAO;gBAEV,OAAO;;qBAygBM,GAAG;kBACN,GAAG;;AAliB9B,wBA6lBC;AAeD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-92277922"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as H, useAttrs as J, ref as i, toRef as
|
|
1
|
+
import { defineComponent as H, useAttrs as J, ref as i, toRef as r, watch as Q, computed as I, openBlock as n, createElementBlock as d, Fragment as W, normalizeClass as G, unref as u, createElementVNode as m, toDisplayString as X, createBlock as y, mergeProps as Y, withKeys as g, withModifiers as N, createVNode as Z, createCommentVNode as f, createTextVNode as k, renderSlot as R } from "vue";
|
|
2
2
|
import { ScalarIcon as _ } from "@scalar/components";
|
|
3
3
|
import { prettyPrintJson as ee } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import { useCodeMirror as oe, useDropdown as te, colorPicker as le } from "@scalar/use-codemirror";
|
|
5
5
|
import { useClipboard as ne } from "@scalar/use-hooks/useClipboard";
|
|
6
|
-
import { nanoid as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { pillPlugin as se, backspaceCommand as
|
|
10
|
-
import { useLayout as
|
|
6
|
+
import { nanoid as ae } from "nanoid";
|
|
7
|
+
import re from "../../views/Environment/EnvironmentVariableDropdown.vue.js";
|
|
8
|
+
import C from "../DataTable/DataTableInputSelect.vue.js";
|
|
9
|
+
import { pillPlugin as se, backspaceCommand as de } from "./codeVariableWidget.js";
|
|
10
|
+
import { useLayout as ue } from "../../hooks/useLayout.js";
|
|
11
11
|
const ie = { class: "whitespace-nowrap" }, pe = ["id"], me = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "scalar-code-copy z-context"
|
|
@@ -55,160 +55,166 @@ const ie = { class: "whitespace-nowrap" }, pe = ["id"], me = {
|
|
|
55
55
|
workspace: {}
|
|
56
56
|
},
|
|
57
57
|
emits: ["submit", "update:modelValue", "curl", "blur"],
|
|
58
|
-
setup(
|
|
59
|
-
var
|
|
60
|
-
const o =
|
|
61
|
-
function
|
|
58
|
+
setup(A, { expose: M, emit: O }) {
|
|
59
|
+
var q;
|
|
60
|
+
const o = A, s = O, B = J(), K = B.id || `id-${ae()}`, x = i(!1), v = i(!1), S = i(""), P = i({ left: 0, top: 0 }), c = i(null), { layout: w } = ue(), { copyToClipboard: z } = ne();
|
|
61
|
+
function D(e) {
|
|
62
62
|
var t;
|
|
63
|
-
return e === o.modelValue ? null : o.importCurl && e.trim().toLowerCase().startsWith("curl") ? (s("curl", e), (t =
|
|
63
|
+
return e === o.modelValue ? null : o.importCurl && e.trim().toLowerCase().startsWith("curl") ? (s("curl", e), (t = a.value) == null || t.dispatch({
|
|
64
64
|
changes: {
|
|
65
65
|
from: 0,
|
|
66
|
-
to:
|
|
66
|
+
to: a.value.state.doc.length,
|
|
67
67
|
insert: String(o.modelValue)
|
|
68
68
|
}
|
|
69
69
|
}), null) : o.handleFieldChange ? o.handleFieldChange(e) : s("update:modelValue", e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function h(e) {
|
|
72
72
|
return o.handleFieldSubmit ? o.handleFieldSubmit(e) : s("submit", e);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
74
|
+
function T(e) {
|
|
75
|
+
x.value = !1, o.emitOnBlur && o.modelValue && h(e), s("blur", e);
|
|
76
76
|
}
|
|
77
|
-
const
|
|
78
|
-
o.colorPicker &&
|
|
77
|
+
const V = [];
|
|
78
|
+
o.colorPicker && V.push(le), V.push(
|
|
79
79
|
se({
|
|
80
80
|
environment: o.environment,
|
|
81
81
|
envVariables: o.envVariables,
|
|
82
82
|
workspace: o.workspace,
|
|
83
83
|
isReadOnly: w === "modal"
|
|
84
84
|
}),
|
|
85
|
-
|
|
85
|
+
de
|
|
86
86
|
);
|
|
87
|
-
const
|
|
88
|
-
content:
|
|
87
|
+
const F = i(null), { codeMirror: a } = oe({
|
|
88
|
+
content: r(
|
|
89
89
|
() => o.modelValue !== void 0 ? String(o.modelValue) : ""
|
|
90
90
|
),
|
|
91
91
|
onChange: (e) => {
|
|
92
|
-
|
|
92
|
+
D(e), U();
|
|
93
93
|
},
|
|
94
|
-
onFocus: () =>
|
|
95
|
-
onBlur: (e) =>
|
|
96
|
-
codeMirrorRef:
|
|
97
|
-
disableTabIndent:
|
|
98
|
-
disableEnter:
|
|
99
|
-
disableCloseBrackets:
|
|
100
|
-
lineNumbers:
|
|
101
|
-
language:
|
|
102
|
-
lint:
|
|
103
|
-
extensions:
|
|
104
|
-
placeholder:
|
|
94
|
+
onFocus: () => x.value = !0,
|
|
95
|
+
onBlur: (e) => T(e),
|
|
96
|
+
codeMirrorRef: F,
|
|
97
|
+
disableTabIndent: r(() => o.disableTabIndent),
|
|
98
|
+
disableEnter: r(() => o.disableEnter),
|
|
99
|
+
disableCloseBrackets: r(() => o.disableCloseBrackets),
|
|
100
|
+
lineNumbers: r(() => o.lineNumbers),
|
|
101
|
+
language: r(() => o.language),
|
|
102
|
+
lint: r(() => o.lint),
|
|
103
|
+
extensions: V,
|
|
104
|
+
placeholder: r(() => o.placeholder)
|
|
105
105
|
});
|
|
106
|
-
(
|
|
107
|
-
|
|
106
|
+
(q = a.value) == null || q.focus(), Q(a, () => {
|
|
107
|
+
a.value && Object.prototype.hasOwnProperty.call(B, "autofocus") && a.value.focus();
|
|
108
108
|
});
|
|
109
|
-
const { handleDropdownSelect:
|
|
110
|
-
codeMirror:
|
|
111
|
-
query:
|
|
109
|
+
const { handleDropdownSelect: L, updateDropdownVisibility: U } = te({
|
|
110
|
+
codeMirror: a,
|
|
111
|
+
query: S,
|
|
112
112
|
showDropdown: v,
|
|
113
|
-
dropdownPosition:
|
|
114
|
-
}),
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
var e;
|
|
121
|
-
(e = r.value) == null || e.focus();
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
const b = (e, t) => {
|
|
125
|
-
var p, l, F;
|
|
126
|
-
v.value ? e === "down" ? (t.preventDefault(), (p = c.value) == null || p.handleArrowKey("down")) : e === "up" ? (t.preventDefault(), (l = c.value) == null || l.handleArrowKey("up")) : e === "enter" && (t.preventDefault(), (F = c.value) == null || F.handleSelect()) : e === "escape" ? o.disableTabIndent || t.stopPropagation() : e === "enter" && t.target instanceof HTMLDivElement && P(t.target.textContent ?? "");
|
|
127
|
-
}, j = $(() => Array.isArray(o.type) ? (
|
|
113
|
+
dropdownPosition: P
|
|
114
|
+
}), $ = I(
|
|
115
|
+
() => o.nullable ? ["true", "false", "null"] : ["true", "false"]
|
|
116
|
+
), b = (e, t) => {
|
|
117
|
+
var p, l, E;
|
|
118
|
+
v.value ? e === "down" ? (t.preventDefault(), (p = c.value) == null || p.handleArrowKey("down")) : e === "up" ? (t.preventDefault(), (l = c.value) == null || l.handleArrowKey("up")) : e === "enter" && (t.preventDefault(), (E = c.value) == null || E.handleSelect()) : e === "escape" ? o.disableTabIndent || t.stopPropagation() : e === "enter" && t.target instanceof HTMLDivElement && h(t.target.textContent ?? "");
|
|
119
|
+
}, j = I(() => Array.isArray(o.type) ? (
|
|
128
120
|
// Find the first type, that’s not 'null'
|
|
129
121
|
o.type.find((e) => e !== "null") ?? "string"
|
|
130
122
|
) : (
|
|
131
123
|
// If it’s not an array, just return the type
|
|
132
124
|
o.type
|
|
133
125
|
));
|
|
134
|
-
return (
|
|
126
|
+
return M({
|
|
127
|
+
/** Expose focus method */
|
|
128
|
+
focus: () => {
|
|
129
|
+
var e;
|
|
130
|
+
(e = a.value) == null || e.focus();
|
|
131
|
+
},
|
|
132
|
+
// Expose these methods for testing
|
|
133
|
+
handleChange: D,
|
|
134
|
+
handleSubmit: h,
|
|
135
|
+
handleBlur: T,
|
|
136
|
+
booleanOptions: $,
|
|
137
|
+
codeMirror: a,
|
|
138
|
+
modelValue: o.modelValue
|
|
139
|
+
}), (e, t) => {
|
|
135
140
|
var p;
|
|
136
|
-
return n(),
|
|
137
|
-
e.disabled ? (n(),
|
|
141
|
+
return n(), d(W, null, [
|
|
142
|
+
e.disabled ? (n(), d("div", {
|
|
138
143
|
key: 0,
|
|
139
|
-
|
|
144
|
+
"data-testid": "code-input-disabled",
|
|
145
|
+
class: G(["text-c-2 flex cursor-default items-center justify-center", u(w) === "modal" ? "font-code pl-1 pr-2 text-sm" : "px-2"])
|
|
140
146
|
}, [
|
|
141
147
|
m("span", ie, X(e.modelValue), 1)
|
|
142
|
-
], 2)) : o.enum && o.enum.length ? (n(), y(
|
|
148
|
+
], 2)) : o.enum && o.enum.length ? (n(), y(C, {
|
|
143
149
|
key: 1,
|
|
144
150
|
default: o.default,
|
|
145
151
|
modelValue: e.modelValue,
|
|
146
152
|
type: j.value,
|
|
147
153
|
value: o.enum,
|
|
148
154
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => s("update:modelValue", l))
|
|
149
|
-
}, null, 8, ["default", "modelValue", "type", "value"])) : e.type === "boolean" || (p = e.type) != null && p.includes("boolean") ? (n(), y(
|
|
155
|
+
}, null, 8, ["default", "modelValue", "type", "value"])) : e.type === "boolean" || (p = e.type) != null && p.includes("boolean") ? (n(), y(C, {
|
|
150
156
|
key: 2,
|
|
151
157
|
default: o.default,
|
|
152
158
|
modelValue: e.modelValue,
|
|
153
|
-
value:
|
|
159
|
+
value: $.value,
|
|
154
160
|
"onUpdate:modelValue": t[1] || (t[1] = (l) => s("update:modelValue", l))
|
|
155
|
-
}, null, 8, ["default", "modelValue", "value"])) : o.examples && o.examples.length ? (n(), y(
|
|
161
|
+
}, null, 8, ["default", "modelValue", "value"])) : o.examples && o.examples.length ? (n(), y(C, {
|
|
156
162
|
key: 3,
|
|
157
163
|
default: o.default,
|
|
158
164
|
modelValue: o.modelValue,
|
|
159
165
|
value: o.examples,
|
|
160
166
|
"onUpdate:modelValue": t[2] || (t[2] = (l) => s("update:modelValue", l))
|
|
161
|
-
}, null, 8, ["default", "modelValue", "value"])) : (n(),
|
|
167
|
+
}, null, 8, ["default", "modelValue", "value"])) : (n(), d("div", Y({
|
|
162
168
|
key: 4,
|
|
163
|
-
id:
|
|
169
|
+
id: u(K)
|
|
164
170
|
}, e.$attrs, {
|
|
165
171
|
ref_key: "codeMirrorRef",
|
|
166
|
-
ref:
|
|
172
|
+
ref: F,
|
|
167
173
|
class: ["group/input group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden whitespace-nowrap text-xs leading-[1.44] -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline", {
|
|
168
174
|
"flow-code-input--error": e.error
|
|
169
175
|
}],
|
|
170
176
|
onKeydown: [
|
|
171
|
-
t[4] || (t[4] = g(
|
|
177
|
+
t[4] || (t[4] = g(N((l) => b("down", l), ["stop"]), ["down"])),
|
|
172
178
|
t[5] || (t[5] = g((l) => b("enter", l), ["enter"])),
|
|
173
179
|
t[6] || (t[6] = g((l) => b("escape", l), ["escape"])),
|
|
174
|
-
t[7] || (t[7] = g(
|
|
180
|
+
t[7] || (t[7] = g(N((l) => b("up", l), ["stop"]), ["up"]))
|
|
175
181
|
]
|
|
176
182
|
}), [
|
|
177
|
-
e.isCopyable ? (n(),
|
|
183
|
+
e.isCopyable ? (n(), d("div", me, [
|
|
178
184
|
m("button", {
|
|
179
185
|
class: "copy-button",
|
|
180
186
|
type: "button",
|
|
181
|
-
onClick: t[3] || (t[3] = (l) =>
|
|
187
|
+
onClick: t[3] || (t[3] = (l) => u(z)(u(ee)(e.modelValue)))
|
|
182
188
|
}, [
|
|
183
189
|
t[8] || (t[8] = m("span", { class: "sr-only" }, "Copy content", -1)),
|
|
184
|
-
Z(
|
|
190
|
+
Z(u(_), {
|
|
185
191
|
icon: "Clipboard",
|
|
186
192
|
size: "md"
|
|
187
193
|
})
|
|
188
194
|
])
|
|
189
195
|
])) : f("", !0),
|
|
190
|
-
e.disableTabIndent ? f("", !0) : (n(),
|
|
191
|
-
|
|
196
|
+
e.disableTabIndent ? f("", !0) : (n(), d("div", fe, t[9] || (t[9] = [
|
|
197
|
+
k(" Press "),
|
|
192
198
|
m("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Esc", -1),
|
|
193
|
-
|
|
199
|
+
k(" then "),
|
|
194
200
|
m("kbd", { class: "-mx-0.25 rounded border px-0.5 font-mono" }, "Tab", -1),
|
|
195
|
-
|
|
201
|
+
k(" to exit ")
|
|
196
202
|
])))
|
|
197
203
|
], 16, pe)),
|
|
198
|
-
e.$slots.warning ? (n(),
|
|
199
|
-
|
|
204
|
+
e.$slots.warning ? (n(), d("div", ce, [
|
|
205
|
+
R(e.$slots, "warning", {}, void 0, !0)
|
|
200
206
|
])) : f("", !0),
|
|
201
|
-
|
|
202
|
-
e.required ? (n(),
|
|
203
|
-
v.value && e.withVariables &&
|
|
207
|
+
R(e.$slots, "icon", {}, void 0, !0),
|
|
208
|
+
e.required ? (n(), d("div", be, " Required ")) : f("", !0),
|
|
209
|
+
v.value && e.withVariables && u(w) !== "modal" && e.environment ? (n(), y(re, {
|
|
204
210
|
key: 7,
|
|
205
211
|
ref_key: "dropdownRef",
|
|
206
212
|
ref: c,
|
|
207
|
-
dropdownPosition:
|
|
213
|
+
dropdownPosition: P.value,
|
|
208
214
|
envVariables: e.envVariables,
|
|
209
215
|
environment: e.environment,
|
|
210
|
-
query:
|
|
211
|
-
onSelect:
|
|
216
|
+
query: S.value,
|
|
217
|
+
onSelect: u(L)
|
|
212
218
|
}, null, 8, ["dropdownPosition", "envVariables", "environment", "query", "onSelect"])) : f("", !0)
|
|
213
219
|
], 64);
|
|
214
220
|
};
|
|
@@ -111,6 +111,12 @@ declare function __VLS_template(): {
|
|
|
111
111
|
onCurl?: (v: string) => any;
|
|
112
112
|
}>, {
|
|
113
113
|
focus: () => void;
|
|
114
|
+
handleChange: (value: string) => void | null;
|
|
115
|
+
handleSubmit: (value: string) => void;
|
|
116
|
+
handleBlur: (value: string) => void;
|
|
117
|
+
booleanOptions: import("vue").ComputedRef<string[]>;
|
|
118
|
+
codeMirror: import("vue").Ref<import("@codemirror/view").EditorView | null, import("@codemirror/view").EditorView | null>;
|
|
119
|
+
modelValue: string | number;
|
|
114
120
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
115
121
|
submit: (v: string) => any;
|
|
116
122
|
"update:modelValue": (v: string) => any;
|
|
@@ -188,8 +194,14 @@ declare function __VLS_template(): {
|
|
|
188
194
|
"onUpdate:modelValue"?: (v: string) => any;
|
|
189
195
|
onBlur?: (v: string) => any;
|
|
190
196
|
onCurl?: (v: string) => any;
|
|
191
|
-
}>, "focus" | ("nullable" | "disabled" | "colorPicker" | "emitOnBlur" | "disableTabIndent" | "disableEnter" | "disableCloseBrackets" | "withVariables" | "isCopyable")> & import("vue").ShallowUnwrapRef<{
|
|
197
|
+
}>, "modelValue" | "handleBlur" | "focus" | "codeMirror" | "handleChange" | "handleSubmit" | "booleanOptions" | ("nullable" | "disabled" | "colorPicker" | "emitOnBlur" | "disableTabIndent" | "disableEnter" | "disableCloseBrackets" | "withVariables" | "isCopyable")> & import("vue").ShallowUnwrapRef<{
|
|
192
198
|
focus: () => void;
|
|
199
|
+
handleChange: (value: string) => void | null;
|
|
200
|
+
handleSubmit: (value: string) => void;
|
|
201
|
+
handleBlur: (value: string) => void;
|
|
202
|
+
booleanOptions: import("vue").ComputedRef<string[]>;
|
|
203
|
+
codeMirror: import("vue").Ref<import("@codemirror/view").EditorView | null, import("@codemirror/view").EditorView | null>;
|
|
204
|
+
modelValue: string | number;
|
|
193
205
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
194
206
|
$slots: {
|
|
195
207
|
warning?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAuLA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAO/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,sEAAsE;IACtE,cAAc,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACjC,CAAC;AAgDJ,iBAAS,cAAc;WAuOT,OAAO,IAA6B;;yBAXrB,GAAG;yBACF,GAAG;sBACN,GAAG
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAuLA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAO/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,sEAAsE;IACtE,cAAc,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACjC,CAAC;AAgDJ,iBAAS,cAAc;WAuOT,OAAO,IAA6B;;yBAXrB,GAAG;yBACF,GAAG;sBACN,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAkEkrK,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EApDr0K;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cA7TN,OAAO;cAIP,OAAO;2BADM,OAAO;6EAkUjC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAepG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -415,7 +415,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
|
|
|
415
415
|
watchMode?: boolean | undefined;
|
|
416
416
|
integration?: string | null | undefined;
|
|
417
417
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
418
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
418
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "slug" | "baseServerURL"> & {
|
|
419
419
|
setCollectionSecurity?: boolean;
|
|
420
420
|
shouldLoad?: boolean;
|
|
421
421
|
} & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
@@ -466,7 +466,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
|
|
|
466
466
|
watchMode?: boolean | undefined;
|
|
467
467
|
integration?: string | null | undefined;
|
|
468
468
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
469
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
469
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "slug" | "baseServerURL"> & {
|
|
470
470
|
setCollectionSecurity?: boolean;
|
|
471
471
|
shouldLoad?: boolean;
|
|
472
472
|
} & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "proxyUrl">) => Promise<import("../../libs").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: Pick<{
|
|
@@ -507,7 +507,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
|
|
|
507
507
|
watchMode?: boolean | undefined;
|
|
508
508
|
integration?: string | null | undefined;
|
|
509
509
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
510
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
510
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "slug" | "baseServerURL"> & {
|
|
511
511
|
setCollectionSecurity?: boolean;
|
|
512
512
|
shouldLoad?: boolean;
|
|
513
513
|
} & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/ApiClientModal.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/ApiClientModal.vue"],"names":[],"mappings":";AAyaA,wBAMG"}
|
|
@@ -2,7 +2,7 @@ import o from "./ApiClientModal.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b0cf3ebb"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { defineComponent as f, ref as v, useId as
|
|
2
|
-
import { addScalarClassesToHeadless as M, ScalarTeleportRoot as
|
|
3
|
-
import { useFocusTrap as
|
|
4
|
-
import { RouterView as
|
|
5
|
-
import { useActiveEntities as
|
|
6
|
-
import { useWorkspace as
|
|
7
|
-
import { handleHotKeyDown as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as f, ref as v, useId as h, watch as w, nextTick as y, onBeforeMount as _, onMounted as k, onBeforeUnmount as C, withDirectives as E, openBlock as T, createElementBlock as x, createElementVNode as r, unref as a, createVNode as d, withCtx as K, vShow as F } from "vue";
|
|
2
|
+
import { addScalarClassesToHeadless as M, ScalarTeleportRoot as B } from "@scalar/components";
|
|
3
|
+
import { useFocusTrap as P } from "@vueuse/integrations/useFocusTrap";
|
|
4
|
+
import { RouterView as S } from "vue-router";
|
|
5
|
+
import { useActiveEntities as b } from "../../store/active-entities.js";
|
|
6
|
+
import { useWorkspace as A } from "../../store/store.js";
|
|
7
|
+
import { handleHotKeyDown as D } from "../../libs/hot-keys.js";
|
|
8
|
+
const V = { class: "scalar scalar-app" }, $ = { class: "scalar-container" }, g = ["id"], j = /* @__PURE__ */ f({
|
|
9
9
|
__name: "ApiClientModal",
|
|
10
|
-
setup(
|
|
11
|
-
const { activeWorkspace:
|
|
10
|
+
setup(H) {
|
|
11
|
+
const { activeWorkspace: m } = b(), { modalState: o, events: n } = A(), l = v(null), s = h(), { activate: u, deactivate: p } = P(l, {
|
|
12
12
|
allowOutsideClick: !0,
|
|
13
|
-
initialFocus: () => l.value,
|
|
14
13
|
fallbackFocus: `#${s}`
|
|
15
|
-
}),
|
|
14
|
+
}), c = (e) => {
|
|
16
15
|
var t;
|
|
17
|
-
return
|
|
16
|
+
return D(e, n.hotKeys, (t = m.value) == null ? void 0 : t.hotKeyConfig);
|
|
18
17
|
};
|
|
19
|
-
|
|
18
|
+
w(
|
|
20
19
|
() => o.open,
|
|
21
20
|
(e) => {
|
|
22
|
-
e ? (window.addEventListener("keydown",
|
|
21
|
+
e ? (window.addEventListener("keydown", c), document.documentElement.style.overflow = "hidden", u({ checkCanFocusTrap: () => y() })) : (window.removeEventListener("keydown", c), document.documentElement.style.removeProperty("overflow"), p());
|
|
23
22
|
}
|
|
24
|
-
),
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
document.documentElement.style.removeProperty("overflow"), n.hotKeys.off(
|
|
28
|
-
}), (e, t) =>
|
|
29
|
-
r("div",
|
|
23
|
+
), _(() => M());
|
|
24
|
+
const i = (e) => (e == null ? void 0 : e.closeModal) && o.open && o.hide();
|
|
25
|
+
return k(() => n.hotKeys.on(i)), C(() => {
|
|
26
|
+
document.documentElement.style.removeProperty("overflow"), n.hotKeys.off(i);
|
|
27
|
+
}), (e, t) => E((T(), x("div", V, [
|
|
28
|
+
r("div", $, [
|
|
30
29
|
r("div", {
|
|
31
30
|
id: a(s),
|
|
32
31
|
ref_key: "client",
|
|
@@ -35,18 +34,18 @@ const D = { class: "scalar scalar-app" }, V = { class: "scalar-container" }, $ =
|
|
|
35
34
|
"aria-modal": "true",
|
|
36
35
|
class: "scalar-app-layout scalar-client",
|
|
37
36
|
role: "dialog",
|
|
38
|
-
tabindex: "
|
|
37
|
+
tabindex: "-1"
|
|
39
38
|
}, [
|
|
40
|
-
d(a(
|
|
41
|
-
default:
|
|
42
|
-
d(a(
|
|
39
|
+
d(a(B), null, {
|
|
40
|
+
default: K(() => [
|
|
41
|
+
d(a(S), { key: "$route.fullPath" })
|
|
43
42
|
]),
|
|
44
43
|
_: 1
|
|
45
44
|
})
|
|
46
|
-
], 8,
|
|
45
|
+
], 8, g),
|
|
47
46
|
r("div", {
|
|
48
47
|
class: "scalar-app-exit -z-1",
|
|
49
|
-
onClick: t[0] || (t[0] = (
|
|
48
|
+
onClick: t[0] || (t[0] = (I) => a(o).hide())
|
|
50
49
|
})
|
|
51
50
|
])
|
|
52
51
|
], 512)), [
|
|
@@ -55,5 +54,5 @@ const D = { class: "scalar scalar-app" }, V = { class: "scalar-container" }, $ =
|
|
|
55
54
|
}
|
|
56
55
|
});
|
|
57
56
|
export {
|
|
58
|
-
|
|
57
|
+
j as default
|
|
59
58
|
};
|
|
@@ -417,7 +417,7 @@ export declare const createApiClientModal: ({ el, configuration, mountOnInitiali
|
|
|
417
417
|
watchMode?: boolean | undefined;
|
|
418
418
|
integration?: string | null | undefined;
|
|
419
419
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
420
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
420
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "slug" | "baseServerURL"> & {
|
|
421
421
|
setCollectionSecurity?: boolean;
|
|
422
422
|
shouldLoad?: boolean;
|
|
423
423
|
} & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
@@ -468,7 +468,7 @@ export declare const createApiClientModal: ({ el, configuration, mountOnInitiali
|
|
|
468
468
|
watchMode?: boolean | undefined;
|
|
469
469
|
integration?: string | null | undefined;
|
|
470
470
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
471
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
471
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "slug" | "baseServerURL"> & {
|
|
472
472
|
setCollectionSecurity?: boolean;
|
|
473
473
|
shouldLoad?: boolean;
|
|
474
474
|
} & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "proxyUrl">) => Promise<import("../../libs").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: Pick<{
|
|
@@ -509,7 +509,7 @@ export declare const createApiClientModal: ({ el, configuration, mountOnInitiali
|
|
|
509
509
|
watchMode?: boolean | undefined;
|
|
510
510
|
integration?: string | null | undefined;
|
|
511
511
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
512
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
512
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "slug" | "baseServerURL"> & {
|
|
513
513
|
setCollectionSecurity?: boolean;
|
|
514
514
|
shouldLoad?: boolean;
|
|
515
515
|
} & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
@@ -3959,7 +3959,7 @@ export declare const createApiClientModalSync: ({ el, configuration, mountOnInit
|
|
|
3959
3959
|
watchMode?: boolean | undefined;
|
|
3960
3960
|
integration?: string | null | undefined;
|
|
3961
3961
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
3962
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
3962
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "slug" | "baseServerURL"> & {
|
|
3963
3963
|
setCollectionSecurity?: boolean;
|
|
3964
3964
|
shouldLoad?: boolean;
|
|
3965
3965
|
} & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
@@ -4010,7 +4010,7 @@ export declare const createApiClientModalSync: ({ el, configuration, mountOnInit
|
|
|
4010
4010
|
watchMode?: boolean | undefined;
|
|
4011
4011
|
integration?: string | null | undefined;
|
|
4012
4012
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
4013
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
4013
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "slug" | "baseServerURL"> & {
|
|
4014
4014
|
setCollectionSecurity?: boolean;
|
|
4015
4015
|
shouldLoad?: boolean;
|
|
4016
4016
|
} & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "proxyUrl">) => Promise<import("../../libs").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: Pick<{
|
|
@@ -4051,7 +4051,7 @@ export declare const createApiClientModalSync: ({ el, configuration, mountOnInit
|
|
|
4051
4051
|
watchMode?: boolean | undefined;
|
|
4052
4052
|
integration?: string | null | undefined;
|
|
4053
4053
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
4054
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
4054
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "slug" | "baseServerURL"> & {
|
|
4055
4055
|
setCollectionSecurity?: boolean;
|
|
4056
4056
|
shouldLoad?: boolean;
|
|
4057
4057
|
} & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
@@ -415,7 +415,7 @@ export declare const createApiClientWeb: (el: HTMLElement | null, configuration?
|
|
|
415
415
|
watchMode?: boolean | undefined;
|
|
416
416
|
integration?: string | null | undefined;
|
|
417
417
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
418
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
418
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "slug" | "baseServerURL"> & {
|
|
419
419
|
setCollectionSecurity?: boolean;
|
|
420
420
|
shouldLoad?: boolean;
|
|
421
421
|
} & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers">) => Promise<{
|
|
@@ -466,7 +466,7 @@ export declare const createApiClientWeb: (el: HTMLElement | null, configuration?
|
|
|
466
466
|
watchMode?: boolean | undefined;
|
|
467
467
|
integration?: string | null | undefined;
|
|
468
468
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
469
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
469
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "slug" | "baseServerURL"> & {
|
|
470
470
|
setCollectionSecurity?: boolean;
|
|
471
471
|
shouldLoad?: boolean;
|
|
472
472
|
} & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers">, "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "proxyUrl">) => Promise<import("../../libs").ErrorResponse<Awaited<ReturnType<(_spec: string | Record<string, any>, workspaceUid: string, options?: Pick<{
|
|
@@ -507,7 +507,7 @@ export declare const createApiClientWeb: (el: HTMLElement | null, configuration?
|
|
|
507
507
|
watchMode?: boolean | undefined;
|
|
508
508
|
integration?: string | null | undefined;
|
|
509
509
|
watchModeStatus?: "IDLE" | "WATCHING" | "ERROR" | undefined;
|
|
510
|
-
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "baseServerURL"> & {
|
|
510
|
+
}, "watchMode" | "documentUrl"> & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers" | "authentication" | "slug" | "baseServerURL"> & {
|
|
511
511
|
setCollectionSecurity?: boolean;
|
|
512
512
|
shouldLoad?: boolean;
|
|
513
513
|
} & Pick<import("@scalar/types/api-reference").ApiReferenceConfiguration, "servers">) => Promise<{
|