@scalar/api-client 2.1.48 → 2.1.50
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/assets/keycap.ascii.js +25 -0
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +12 -12
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +2 -2
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +8 -12
- package/dist/layouts/App/ApiClientApp.vue.js +19 -19
- package/dist/layouts/App/create-api-client-app.d.ts +317 -151
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +634 -302
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +20 -20
- package/dist/layouts/Web/create-api-client-web.d.ts +317 -151
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +310 -144
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/store/collections.d.ts +134 -4
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/import-spec.d.ts +26 -0
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +22 -72
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/requests.d.ts +54 -14
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/requests.js +65 -55
- package/dist/store/servers.d.ts +4 -4
- package/dist/store/store.d.ts +632 -300
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/tags.d.ts +34 -34
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +24 -29
- package/dist/style.css +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +20 -21
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +23 -23
- package/dist/views/Request/RequestSidebar.vue.d.ts +2 -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 +169 -133
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +181 -155
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts +2 -0
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +3 -3
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +155 -96
- 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 +74 -34
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneralMode.vue.js +38 -46
- package/package.json +8 -7
- package/dist/hooks/useClipboard.d.ts +0 -4
- package/dist/hooks/useClipboard.d.ts.map +0 -1
- package/dist/hooks/useClipboard.js +0 -14
- package/dist/hooks/useDarkModeState.d.ts +0 -8
- package/dist/hooks/useDarkModeState.d.ts.map +0 -1
- package/dist/hooks/useDarkModeState.js +0 -46
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.1.
|
|
21
|
+
"version": "2.1.50",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -155,17 +155,18 @@
|
|
|
155
155
|
"whatwg-mimetype": "^4.0.0",
|
|
156
156
|
"yaml": "^2.4.5",
|
|
157
157
|
"zod": "^3.23.8",
|
|
158
|
-
"@scalar/components": "0.12.68",
|
|
159
|
-
"@scalar/draggable": "0.1.7",
|
|
160
158
|
"@scalar/icons": "0.1.1",
|
|
159
|
+
"@scalar/draggable": "0.1.7",
|
|
160
|
+
"@scalar/components": "0.12.70",
|
|
161
161
|
"@scalar/import": "0.1.1",
|
|
162
|
-
"@scalar/
|
|
162
|
+
"@scalar/openapi-parser": "0.8.9",
|
|
163
|
+
"@scalar/oas-utils": "0.2.76",
|
|
163
164
|
"@scalar/object-utils": "1.1.12",
|
|
164
165
|
"@scalar/openapi-types": "0.1.5",
|
|
165
|
-
"@scalar/themes": "0.9.48",
|
|
166
|
-
"@scalar/openapi-parser": "0.8.9",
|
|
167
166
|
"@scalar/types": "0.0.19",
|
|
168
|
-
"@scalar/use-codemirror": "0.11.
|
|
167
|
+
"@scalar/use-codemirror": "0.11.37",
|
|
168
|
+
"@scalar/themes": "0.9.48",
|
|
169
|
+
"@scalar/use-hooks": "0.1.0",
|
|
169
170
|
"@scalar/use-toasts": "0.7.7",
|
|
170
171
|
"@scalar/use-tooltip": "1.0.4"
|
|
171
172
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useClipboard.d.ts","sourceRoot":"","sources":["../../src/hooks/useClipboard.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;6BAGS,MAAM;CAQvC,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useToasts as r } from "@scalar/use-toasts";
|
|
2
|
-
const a = () => {
|
|
3
|
-
const { toast: o } = r();
|
|
4
|
-
return {
|
|
5
|
-
copyToClipboard: (t) => {
|
|
6
|
-
navigator.clipboard.writeText(t).then(() => {
|
|
7
|
-
o("Copied to the clipboard.", "info");
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
a as useClipboard
|
|
14
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** This hook helps with retrieving the dark mode setting from local storage or from system settings. */
|
|
2
|
-
export declare function useDarkModeState(): {
|
|
3
|
-
colorMode: import("vue").Ref<"light" | "dark" | "system", "light" | "dark" | "system">;
|
|
4
|
-
toggleDarkMode: () => void;
|
|
5
|
-
setDarkMode: (value: boolean | null) => void;
|
|
6
|
-
getSystemModePreference: () => boolean;
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=useDarkModeState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDarkModeState.d.ts","sourceRoot":"","sources":["../../src/hooks/useDarkModeState.ts"],"names":[],"mappings":"AAIA,wGAAwG;AACxG,wBAAgB,gBAAgB;;;yBAYF,OAAO,GAAG,IAAI;;EA+E3C"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ref as r, watch as l, onMounted as s, onUnmounted as c } from "vue";
|
|
2
|
-
const o = r("dark");
|
|
3
|
-
function f() {
|
|
4
|
-
const a = () => {
|
|
5
|
-
var e;
|
|
6
|
-
o.value = o.value === "dark" ? "light" : "dark", typeof window < "u" && ((e = window == null ? void 0 : window.localStorage) == null || e.setItem("colorMode", o.value));
|
|
7
|
-
};
|
|
8
|
-
function i(e) {
|
|
9
|
-
var d;
|
|
10
|
-
o.value = e === null ? "system" : e ? "dark" : "light", typeof window < "u" && ((d = window == null ? void 0 : window.localStorage) == null || d.setItem("colorMode", o.value));
|
|
11
|
-
}
|
|
12
|
-
const t = () => {
|
|
13
|
-
var e;
|
|
14
|
-
return typeof window < "u" && typeof (window == null ? void 0 : window.matchMedia) == "function" ? (e = window == null ? void 0 : window.matchMedia("(prefers-color-scheme: dark)")) == null ? void 0 : e.matches : !1;
|
|
15
|
-
}, n = (e) => {
|
|
16
|
-
typeof document < "u" && (e === null ? (document.body.classList.toggle("dark-mode", t()), document.body.classList.toggle("light-mode", !t())) : (document.body.classList.toggle("dark-mode", e === !0), document.body.classList.toggle("light-mode", e === !1)));
|
|
17
|
-
};
|
|
18
|
-
return o.value = typeof window > "u" ? "dark" : localStorage.getItem("colorMode") || "dark", n(
|
|
19
|
-
o.value === "dark" || o.value === "system" && t()
|
|
20
|
-
), l(
|
|
21
|
-
o,
|
|
22
|
-
(e) => {
|
|
23
|
-
n(
|
|
24
|
-
e === "dark" || e === "system" && t()
|
|
25
|
-
);
|
|
26
|
-
},
|
|
27
|
-
{ immediate: !0 }
|
|
28
|
-
), s(() => {
|
|
29
|
-
if (typeof window < "u" && typeof window.matchMedia == "function") {
|
|
30
|
-
const e = window.matchMedia("(prefers-color-scheme: dark)"), d = () => {
|
|
31
|
-
o.value === "system" && n(t());
|
|
32
|
-
};
|
|
33
|
-
e.addEventListener("change", d), c(() => {
|
|
34
|
-
e.removeEventListener("change", d);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}), {
|
|
38
|
-
colorMode: o,
|
|
39
|
-
toggleDarkMode: a,
|
|
40
|
-
setDarkMode: i,
|
|
41
|
-
getSystemModePreference: t
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
f as useDarkModeState
|
|
46
|
-
};
|