@scalar/api-client 2.5.21 → 2.5.24
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 +77 -0
- package/README.md +2 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts +0 -3
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +86 -106
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +55 -87
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -6
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/EmptyState.vue.d.ts.map +1 -1
- package/dist/components/EmptyState.vue.js +1 -1
- package/dist/components/EmptyState.vue2.js +12 -12
- package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +11 -12
- package/dist/components/TopNav/TopNav.vue.js +50 -51
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +1 -1
- package/dist/components/TopNav/TopNavItem.vue2.js +19 -20
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +8 -8
- package/dist/layouts/App/create-api-client-app.d.ts +50 -50
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +100 -100
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +50 -50
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +50 -50
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts +5 -5
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +5 -5
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +50 -50
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/store.d.ts +50 -50
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/components/EnvironmentForm.vue.js +2 -2
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +14 -15
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +71 -65
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +80 -59
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +52 -52
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +5 -7
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/helpers/filter-security-requirements.js +26 -13
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +26 -37
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +9 -9
- package/package.json +16 -17
- package/dist/components/ScalarHotkey.test.d.ts +0 -2
- package/dist/components/ScalarHotkey.test.d.ts.map +0 -1
- package/dist/components/ScalarHotkey.vue.d.ts +0 -8
- package/dist/components/ScalarHotkey.vue.d.ts.map +0 -1
- package/dist/components/ScalarHotkey.vue.js +0 -44
- package/dist/components/ScalarHotkey.vue2.js +0 -4
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarHotkey.test.d.ts","sourceRoot":"","sources":["../../src/components/ScalarHotkey.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { HotKeyModifiers } from '@scalar/oas-utils/entities/workspace';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
hotkey: string;
|
|
4
|
-
modifier?: HotKeyModifiers;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
-
export default _default;
|
|
8
|
-
//# sourceMappingURL=ScalarHotkey.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScalarHotkey.vue.d.ts","sourceRoot":"","sources":["../../src/components/ScalarHotkey.vue"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AAK3E,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,eAAe,CAAA;CAC3B,CAAC;;AAsGF,wBAOG"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, computed as a, createElementBlock as p, openBlock as y, normalizeProps as h, guardReactiveProps as k, unref as b, createElementVNode as i, toDisplayString as s } from "vue";
|
|
2
|
-
import { useBindCx as x } from "@scalar/components";
|
|
3
|
-
import { isMacOS as r } from "@scalar/helpers/general/is-mac-os";
|
|
4
|
-
const C = { "aria-hidden": "true" }, w = { class: "sr-only" }, A = /* @__PURE__ */ u({
|
|
5
|
-
__name: "ScalarHotkey",
|
|
6
|
-
props: {
|
|
7
|
-
hotkey: {},
|
|
8
|
-
modifier: { default: () => ["Meta"] }
|
|
9
|
-
},
|
|
10
|
-
setup(e) {
|
|
11
|
-
const d = {
|
|
12
|
-
"⌘": "Command",
|
|
13
|
-
"^": "Control",
|
|
14
|
-
"⌥": "Option",
|
|
15
|
-
"⇧": "Shift",
|
|
16
|
-
"⇪": "Caps Lock",
|
|
17
|
-
"↵": "Enter",
|
|
18
|
-
"←": "Left Arrow",
|
|
19
|
-
"→": "Right Arrow",
|
|
20
|
-
"↑": "Up Arrow",
|
|
21
|
-
"↓": "Down Arrow"
|
|
22
|
-
}, c = {
|
|
23
|
-
Meta: r() ? "⌘" : "^",
|
|
24
|
-
default: r() ? "⌘" : "^",
|
|
25
|
-
Shift: "⇧",
|
|
26
|
-
Alt: "⌥",
|
|
27
|
-
Control: "^"
|
|
28
|
-
}, { cx: l } = x(), m = a(() => `${e.modifier.map((o) => c[o]).join("+")} ${e.hotkey}`), f = a(() => {
|
|
29
|
-
const t = e.modifier.map((n) => n === "Meta" ? r() ? "Command" : "Control" : n).join("+"), o = d[e.hotkey] ?? e.hotkey;
|
|
30
|
-
return `${t} ${o}`;
|
|
31
|
-
});
|
|
32
|
-
return (t, o) => (y(), p("div", h(k(
|
|
33
|
-
b(l)(
|
|
34
|
-
"border-(--scalar-background-3) inline-block overflow-hidden rounded border text-xxs rounded-b px-1 font-medium uppercase"
|
|
35
|
-
)
|
|
36
|
-
)), [
|
|
37
|
-
i("span", C, s(m.value), 1),
|
|
38
|
-
i("span", w, s(f.value), 1)
|
|
39
|
-
], 16));
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
export {
|
|
43
|
-
A as default
|
|
44
|
-
};
|