@scalar/api-reference 1.24.73 → 1.24.75
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/browser/standalone.js +12564 -12621
- 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 +19 -19
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts +27 -0
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +1 -0
- package/dist/components/Content/Operation/ContentTypeSelect.vue.js +7 -0
- package/dist/components/Content/Operation/ContentTypeSelect.vue2.js +41 -0
- package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.js +10 -7
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts +5 -0
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ParameterItem.vue.js +2 -2
- package/dist/components/Content/Operation/ParameterItem.vue2.js +54 -19
- package/dist/components/Content/Operation/Parameters.vue.d.ts +5 -0
- package/dist/components/Content/Operation/Parameters.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/Parameters.vue.js +2 -2
- package/dist/components/Content/Operation/Parameters.vue2.js +16 -14
- 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.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +2 -2
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
- package/dist/components/Content/Webhooks/Webhooks.vue.js +5 -76
- package/dist/components/Content/Webhooks/Webhooks.vue2.js +76 -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/Section/SectionContainer.vue.js +1 -1
- package/dist/components/ShowMoreButton.vue.d.ts.map +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/hooks/useReactiveSpec.d.ts +2 -0
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useResponses.d.ts +2 -1
- package/dist/hooks/useResponses.d.ts.map +1 -1
- package/dist/hooks/useResponses.js +12 -11
- 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/legacy/stores/useOpenApiStore.d.ts +2 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +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 "./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 {
|
|
@@ -42,6 +42,7 @@ export declare function useReactiveSpec({ specConfig, proxy, }: {
|
|
|
42
42
|
} | undefined;
|
|
43
43
|
example?: any;
|
|
44
44
|
examples?: (Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>) | undefined;
|
|
45
|
+
content?: import("@scalar/oas-utils").RequestBodyMimeTypes;
|
|
45
46
|
}[] | undefined;
|
|
46
47
|
responses?: Record<string, import("@scalar/oas-utils").ScalarResponse>;
|
|
47
48
|
security?: import("@scalar/openapi-parser").OpenAPIV3.SecurityRequirementObject[];
|
|
@@ -90,6 +91,7 @@ export declare function useReactiveSpec({ specConfig, proxy, }: {
|
|
|
90
91
|
} | undefined;
|
|
91
92
|
example?: any;
|
|
92
93
|
examples?: (Map<string, any> & Omit<Map<string, any>, keyof Map<any, any>>) | undefined;
|
|
94
|
+
content?: import("@scalar/oas-utils").RequestBodyMimeTypes;
|
|
93
95
|
}[] | undefined;
|
|
94
96
|
}[];
|
|
95
97
|
'x-displayName'?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReactiveSpec.d.ts","sourceRoot":"","sources":["../../src/hooks/useReactiveSpec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAM1D,OAAO,EAAE,KAAK,gBAAgB,EAAiC,MAAM,KAAK,CAAA;AAmD1E;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,KAAK,GACN,EAAE;IACD,UAAU,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;IAChD,KAAK,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CACjC
|
|
1
|
+
{"version":3,"file":"useReactiveSpec.d.ts","sourceRoot":"","sources":["../../src/hooks/useReactiveSpec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAM1D,OAAO,EAAE,KAAK,gBAAgB,EAAiC,MAAM,KAAK,CAAA;AAmD1E;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,KAAK,GACN,EAAE;IACD,UAAU,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;IAChD,KAAK,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;CACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwDA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TransformedOperation } from '@scalar/oas-utils';
|
|
1
|
+
import type { RequestBodyMimeTypes, TransformedOperation } from '@scalar/oas-utils';
|
|
2
2
|
/**
|
|
3
3
|
* This hook is used to generate the responses for the request from the parameters in the swagger file
|
|
4
4
|
*/
|
|
@@ -6,6 +6,7 @@ export declare function useResponses(operation: TransformedOperation): {
|
|
|
6
6
|
responses: import("vue").ComputedRef<{
|
|
7
7
|
name: string;
|
|
8
8
|
description: string;
|
|
9
|
+
content: RequestBodyMimeTypes;
|
|
9
10
|
}[]>;
|
|
10
11
|
};
|
|
11
12
|
//# sourceMappingURL=useResponses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResponses.d.ts","sourceRoot":"","sources":["../../src/hooks/useResponses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useResponses.d.ts","sourceRoot":"","sources":["../../src/hooks/useResponses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,mBAAmB,CAAA;AAG1B;;GAEG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,oBAAoB;;cAOhD,MAAM;qBACC,MAAM;iBACV,oBAAoB;;EAiBlC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
function
|
|
3
|
-
return { responses:
|
|
4
|
-
if (!
|
|
5
|
-
const { responses:
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
name:
|
|
9
|
-
description: r
|
|
1
|
+
import { computed as s } from "vue";
|
|
2
|
+
function i(e) {
|
|
3
|
+
return { responses: s(() => {
|
|
4
|
+
if (!e.information) return [];
|
|
5
|
+
const { responses: n } = e.information, o = [];
|
|
6
|
+
return n && Object.keys(n).forEach((r) => {
|
|
7
|
+
o.push({
|
|
8
|
+
name: r,
|
|
9
|
+
description: n[r].description,
|
|
10
|
+
content: n[r].content
|
|
10
11
|
});
|
|
11
|
-
}),
|
|
12
|
+
}), o;
|
|
12
13
|
}) };
|
|
13
14
|
}
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
i as useResponses
|
|
16
17
|
};
|