@scalar/api-reference 1.25.63 → 1.25.65
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 +32 -0
- package/dist/browser/standalone.js +19184 -19124
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +2 -2
- package/dist/components/Anchor/Anchor.vue2.js +4 -4
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +59 -61
- package/dist/components/Content/Operation/OperationAccordion.vue.js +2 -2
- package/dist/components/Content/Operation/OperationAccordion.vue2.js +18 -18
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +7 -7
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +17 -17
- package/dist/features/ApiClientModal/useApiClient.d.ts +634 -302
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +4 -4
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +4 -5
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +4 -4
- package/dist/features/BaseUrl/ServerVariablesSelect.vue2.js +27 -23
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +36 -35
- package/dist/features/ExampleResponses/ExampleResponses.vue.js +3 -3
- package/dist/features/ExampleResponses/ExampleResponses.vue2.js +14 -14
- package/dist/helpers/getApiClientRequest.js +19 -19
- package/dist/helpers/getExampleCode.d.ts.map +1 -1
- package/dist/helpers/getExampleCode.js +16 -14
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.d.ts +7 -7
- package/dist/index.js +33 -37
- package/dist/legacy/components/SecurityScheme.vue.js +2 -2
- package/dist/legacy/components/SecurityScheme.vue2.js +8 -8
- package/dist/legacy/helpers/getUrlFromServerState.d.ts +4 -1
- package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -1
- package/dist/legacy/helpers/getUrlFromServerState.js +15 -6
- package/dist/legacy/helpers/prepareClientRequestConfig.d.ts +1 -1
- package/dist/legacy/stores/useOpenApiStore.d.ts +5 -5
- package/dist/legacy/stores/useServerStore.d.ts.map +1 -1
- package/dist/legacy/stores/useServerStore.js +47 -36
- package/dist/style.css +1 -1
- 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 -7
- package/dist/hooks/useDarkModeState.d.ts.map +0 -1
- package/dist/hooks/useDarkModeState.js +0 -31
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.25.
|
|
23
|
+
"version": "1.25.65",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=18"
|
|
26
26
|
},
|
|
@@ -55,15 +55,16 @@
|
|
|
55
55
|
"httpsnippet-lite": "^3.0.5",
|
|
56
56
|
"nanoid": "^5.0.7",
|
|
57
57
|
"vue": "^3.5.12",
|
|
58
|
-
"@scalar/
|
|
59
|
-
"@scalar/
|
|
60
|
-
"@scalar/components": "0.12.68",
|
|
61
|
-
"@scalar/oas-utils": "0.2.74",
|
|
58
|
+
"@scalar/components": "0.12.70",
|
|
59
|
+
"@scalar/api-client": "2.1.50",
|
|
62
60
|
"@scalar/openapi-parser": "0.8.9",
|
|
61
|
+
"@scalar/code-highlight": "0.0.15",
|
|
62
|
+
"@scalar/oas-utils": "0.2.76",
|
|
63
63
|
"@scalar/openapi-types": "0.1.5",
|
|
64
64
|
"@scalar/snippetz": "0.2.4",
|
|
65
65
|
"@scalar/themes": "0.9.48",
|
|
66
66
|
"@scalar/types": "0.0.19",
|
|
67
|
+
"@scalar/use-hooks": "0.1.0",
|
|
67
68
|
"@scalar/use-toasts": "0.7.7"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
@@ -77,8 +78,8 @@
|
|
|
77
78
|
"vite-plugin-banner": "^0.7.1",
|
|
78
79
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
79
80
|
"vitest": "^1.6.0",
|
|
80
|
-
"@scalar/
|
|
81
|
-
"@scalar/
|
|
81
|
+
"@scalar/galaxy": "0.2.16",
|
|
82
|
+
"@scalar/build-tooling": "0.1.12"
|
|
82
83
|
},
|
|
83
84
|
"scripts": {
|
|
84
85
|
"analyze:default": "pnpm dlx vite-bundle-visualizer",
|
|
@@ -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,7 +0,0 @@
|
|
|
1
|
-
/** This hook helps with retrieving the dark mode setting from local storage or from system settings. */
|
|
2
|
-
export declare function useDarkModeState(isDarkInitially?: boolean, forceDarkModeState?: 'dark' | 'light'): {
|
|
3
|
-
isDark: import("vue").Ref<boolean, boolean>;
|
|
4
|
-
toggleDarkMode: () => void;
|
|
5
|
-
setDarkMode: (value: boolean) => void;
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=useDarkModeState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDarkModeState.d.ts","sourceRoot":"","sources":["../../src/hooks/useDarkModeState.ts"],"names":[],"mappings":"AAKA,wGAAwG;AACxG,wBAAgB,gBAAgB,CAC9B,eAAe,CAAC,EAAE,OAAO,EACzB,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO;;;yBAqCT,OAAO;EAkCpC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ref as u, watch as f } from "vue";
|
|
2
|
-
const t = u(!1);
|
|
3
|
-
function c(r, n) {
|
|
4
|
-
var i;
|
|
5
|
-
const d = () => {
|
|
6
|
-
var o, a;
|
|
7
|
-
const e = typeof window < "u" ? (o = window.localStorage) == null ? void 0 : o.getItem("isDark") : null;
|
|
8
|
-
return typeof e == "string" ? !!JSON.parse(e) : !!(typeof window < "u" && typeof (window == null ? void 0 : window.matchMedia) == "function" && ((a = window == null ? void 0 : window.matchMedia("(prefers-color-scheme: dark)")) != null && a.matches));
|
|
9
|
-
}, l = () => {
|
|
10
|
-
var e;
|
|
11
|
-
t.value = !t.value, typeof window < "u" && ((e = window == null ? void 0 : window.localStorage) == null || e.setItem("isDark", JSON.stringify(t.value)));
|
|
12
|
-
};
|
|
13
|
-
function s(e) {
|
|
14
|
-
var o;
|
|
15
|
-
t.value = e, typeof window < "u" && ((o = window == null ? void 0 : window.localStorage) == null || o.setItem("isDark", JSON.stringify(t.value)));
|
|
16
|
-
}
|
|
17
|
-
return n ? t.value = n === "dark" : t.value = (typeof window > "u" ? null : JSON.parse(((i = window.localStorage) == null ? void 0 : i.getItem("isDark")) || "null")) ?? r ?? d(), f(
|
|
18
|
-
t,
|
|
19
|
-
(e) => {
|
|
20
|
-
typeof document > "u" || (document.body.classList.toggle("dark-mode", e), document.body.classList.toggle("light-mode", !e));
|
|
21
|
-
},
|
|
22
|
-
{ immediate: !0 }
|
|
23
|
-
), {
|
|
24
|
-
isDark: t,
|
|
25
|
-
toggleDarkMode: l,
|
|
26
|
-
setDarkMode: s
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
c as useDarkModeState
|
|
31
|
-
};
|