@scalar/api-reference 1.24.73 → 1.24.74
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 +16 -0
- package/dist/browser/standalone.js +12271 -12358
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +37 -36
- package/dist/components/Card/Card.vue.js +4 -4
- package/dist/components/Card/CardContent.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +4 -4
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +9 -9
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +11 -11
- package/dist/components/Content/Operation/ParameterItem.vue.js +3 -3
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +1 -1
- package/dist/components/Content/Operation/PathResponses/PathResponses.vue2.js +1 -1
- package/dist/components/Content/Operation/RequestBody.vue.js +1 -1
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +3 -3
- package/dist/components/Content/Schema/Schema.vue2.js +57 -65
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +63 -58
- package/dist/components/Content/Tag/Tag.vue.js +2 -2
- package/dist/components/DarkModeToggle/DarkModeToggle.vue.js +2 -2
- package/dist/components/DarkModeToggle/DarkModeToggle.vue2.js +3 -3
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +16 -15
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +22 -21
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
- package/dist/features/BaseUrl/ServerForm.vue2.js +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +1 -1
- package/dist/hooks/useDarkModeState.d.ts +1 -1
- package/dist/hooks/useDarkModeState.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.js +12 -12
- package/dist/index.js +1 -1
- package/dist/legacy/components/CardForm.vue.js +2 -2
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -1
- package/dist/legacy/components/CardFormTextInput.vue.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Section.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fc324287"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ShowMoreButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4575cc81"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAiOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAI7C,OAAO,EAAE,KAAK,gBAAgB,EAA2B,MAAM,aAAa,CAAA;AAwE5E,iBAAS,cAAc;6BA8Oc,GAAG;2BACJ,GAAG;EAuBtC;AACD,QAAA,MAAM,eAAe;gBAxUL,IAAI;;gBAAJ,IAAI;gCA8UlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Sidebar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const p = /* @__PURE__ */
|
|
3
|
+
import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-4420a9a3"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ServerForm.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-390111af"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -3,7 +3,7 @@ import { ScalarMarkdown as V } from "@scalar/components";
|
|
|
3
3
|
import B from "./ServerUrl.vue.js";
|
|
4
4
|
import R from "./ServerUrlSelect.vue.js";
|
|
5
5
|
import g from "./ServerVariablesForm.vue.js";
|
|
6
|
-
const y = (r) => (N("data-v-
|
|
6
|
+
const y = (r) => (N("data-v-390111af"), r = r(), U(), r), E = { key: 0 }, F = /* @__PURE__ */ y(() => /* @__PURE__ */ t("span", { class: "server-form-title" }, "Base URL", -1)), L = { class: "server-form" }, M = { class: "server-form-container" }, $ = { class: "server-item" }, j = {
|
|
7
7
|
key: 0,
|
|
8
8
|
muted: ""
|
|
9
9
|
}, q = { class: "description" }, H = /* @__PURE__ */ S({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SearchButton.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5a5c276c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -4,7 +4,7 @@ import { isMacOS as r } from "@scalar/use-tooltip";
|
|
|
4
4
|
import { useMagicKeys as M, whenever as g } from "@vueuse/core";
|
|
5
5
|
import { modalStateBus as B } from "../../components/api-client-bus.js";
|
|
6
6
|
import C from "./Search.vue.js";
|
|
7
|
-
const H = (o) => (v("data-v-
|
|
7
|
+
const H = (o) => (v("data-v-5a5c276c"), o = o(), b(), o), I = { class: "sidebar-search-input" }, $ = /* @__PURE__ */ H(() => /* @__PURE__ */ a("span", { class: "sidebar-search-placeholder" }, "Search", -1)), E = { class: "sidebar-search-shortcut" }, z = { class: "sidebar-search-key" }, j = /* @__PURE__ */ m({
|
|
8
8
|
__name: "SearchButton",
|
|
9
9
|
props: {
|
|
10
10
|
spec: {},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** This hook helps with retrieving the dark mode setting from local storage or from system settings. */
|
|
2
|
-
export declare function useDarkModeState(isDarkInitially?: boolean): {
|
|
2
|
+
export declare function useDarkModeState(isDarkInitially?: boolean, forceDarkModeState?: 'dark' | 'light'): {
|
|
3
3
|
isDark: import("vue").Ref<boolean>;
|
|
4
4
|
toggleDarkMode: () => void;
|
|
5
5
|
setDarkMode: (value: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDarkModeState.d.ts","sourceRoot":"","sources":["../../src/hooks/useDarkModeState.ts"],"names":[],"mappings":"AAKA,wGAAwG;AACxG,wBAAgB,gBAAgB,
|
|
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,20 +1,20 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
const t =
|
|
3
|
-
function c(
|
|
4
|
-
var
|
|
5
|
-
const
|
|
6
|
-
var o,
|
|
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
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" && ((
|
|
9
|
-
},
|
|
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
10
|
var e;
|
|
11
11
|
t.value = !t.value, typeof window < "u" && ((e = window == null ? void 0 : window.localStorage) == null || e.setItem("isDark", JSON.stringify(t.value)));
|
|
12
12
|
};
|
|
13
|
-
function
|
|
13
|
+
function s(e) {
|
|
14
14
|
var o;
|
|
15
15
|
t.value = e, typeof window < "u" && ((o = window == null ? void 0 : window.localStorage) == null || o.setItem("isDark", JSON.stringify(t.value)));
|
|
16
16
|
}
|
|
17
|
-
return t.value = (typeof window > "u" ? null : JSON.parse(((
|
|
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
18
|
t,
|
|
19
19
|
(e) => {
|
|
20
20
|
typeof document > "u" || (document.body.classList.toggle("dark-mode", e), document.body.classList.toggle("light-mode", !e));
|
|
@@ -22,8 +22,8 @@ function c(a) {
|
|
|
22
22
|
{ immediate: !0 }
|
|
23
23
|
), {
|
|
24
24
|
isDark: t,
|
|
25
|
-
toggleDarkMode:
|
|
26
|
-
setDarkMode:
|
|
25
|
+
toggleDarkMode: l,
|
|
26
|
+
setDarkMode: s
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
export {
|