@scalar/api-reference 1.28.8 → 1.28.9
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 +23 -0
- package/dist/browser/standalone.js +6036 -5989
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/GettingStarted.vue.js +1 -1
- package/dist/components/GettingStarted.vue2.js +25 -25
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +1 -1
- package/dist/components/SingleApiReference.vue.d.ts +1 -1
- package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +1334 -990
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/helpers/get-request.d.ts +4 -4
- package/dist/helpers/get-request.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.d.ts +24 -22
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.js +53 -51
- package/dist/hooks/useReactiveSpec.d.ts +220 -3
- package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
- package/dist/hooks/useReactiveSpec.js +30 -28
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./GettingStarted.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0f473adb"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, openBlock as o, createElementBlock as d, createElementVNode as e, createStaticVNode as r, createVNode as i, unref as l, withCtx as n, createTextVNode as p, Fragment as u, renderList as w, normalizeClass as y, toDisplayString as A } from "vue";
|
|
2
2
|
import { ScalarButton as c } from "@scalar/components";
|
|
3
3
|
import { themeLabels as f } from "@scalar/themes";
|
|
4
|
-
const
|
|
4
|
+
const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, E = ["onClick"], P = /* @__PURE__ */ b({
|
|
5
5
|
__name: "GettingStarted",
|
|
6
6
|
props: {
|
|
7
7
|
theme: {}
|
|
8
8
|
},
|
|
9
9
|
emits: ["changeTheme", "loadSwaggerFile", "linkSwaggerFile", "updateContent"],
|
|
10
|
-
setup(
|
|
11
|
-
const g = v,
|
|
10
|
+
setup(F, { emit: v }) {
|
|
11
|
+
const g = v, m = [
|
|
12
12
|
"default",
|
|
13
13
|
"alternate",
|
|
14
14
|
"moon",
|
|
@@ -20,49 +20,49 @@ const A = { class: "start custom-scroll" }, x = { class: "start-copy" }, k = { c
|
|
|
20
20
|
"mars",
|
|
21
21
|
"deepSpace"
|
|
22
22
|
];
|
|
23
|
-
async function
|
|
23
|
+
async function h() {
|
|
24
24
|
const s = await fetch(
|
|
25
25
|
"https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml"
|
|
26
26
|
);
|
|
27
27
|
g("updateContent", await s.text());
|
|
28
28
|
}
|
|
29
|
-
return (s,
|
|
30
|
-
e("div",
|
|
31
|
-
|
|
32
|
-
e("div",
|
|
33
|
-
|
|
29
|
+
return (s, a) => (o(), d("div", C, [
|
|
30
|
+
e("div", S, [
|
|
31
|
+
a[3] || (a[3] = r('<div class="start-logo" data-v-0f473adb><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-0f473adb></path></svg></div><h1 class="start-h1" data-v-0f473adb>Swagger Editor</h1><p class="start-p" data-v-0f473adb> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
|
|
32
|
+
e("div", x, [
|
|
33
|
+
i(l(c), {
|
|
34
34
|
fullWidth: "",
|
|
35
|
-
onClick:
|
|
35
|
+
onClick: h
|
|
36
36
|
}, {
|
|
37
|
-
default:
|
|
37
|
+
default: n(() => a[1] || (a[1] = [
|
|
38
38
|
p(" Show Example ")
|
|
39
39
|
])),
|
|
40
40
|
_: 1
|
|
41
41
|
}),
|
|
42
|
-
|
|
42
|
+
i(l(c), {
|
|
43
43
|
fullWidth: "",
|
|
44
44
|
variant: "outlined",
|
|
45
|
-
onClick:
|
|
45
|
+
onClick: a[0] || (a[0] = (t) => s.$emit("loadSwaggerFile"))
|
|
46
46
|
}, {
|
|
47
|
-
default:
|
|
47
|
+
default: n(() => a[2] || (a[2] = [
|
|
48
48
|
p(" Upload File ")
|
|
49
49
|
])),
|
|
50
50
|
_: 1
|
|
51
51
|
})
|
|
52
52
|
])
|
|
53
53
|
]),
|
|
54
|
-
e("div",
|
|
55
|
-
|
|
56
|
-
e("div",
|
|
57
|
-
|
|
58
|
-
(o(),
|
|
59
|
-
key:
|
|
60
|
-
class:
|
|
61
|
-
onClick: (
|
|
62
|
-
},
|
|
54
|
+
e("div", k, [
|
|
55
|
+
a[5] || (a[5] = r('<div class="start-section start-section-integrations" data-v-0f473adb><div class="start-h2" data-v-0f473adb>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-0f473adb><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-0f473adb></path></svg><span data-v-0f473adb>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-0f473adb><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g data-v-0f473adb><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-0f473adb></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0f473adb></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0f473adb></path></g></svg><span data-v-0f473adb>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-0f473adb><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g fill="currentColor" fill-rule="nonzero" data-v-0f473adb><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-0f473adb></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-0f473adb></polygon></g></svg><span data-v-0f473adb>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-0f473adb><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g fill="none" fill-rule="evenodd" data-v-0f473adb><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-0f473adb></circle><g stroke="currentColor" data-v-0f473adb><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-0f473adb></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-0f473adb></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-0f473adb></ellipse></g></g></svg><span data-v-0f473adb>React</span></a></div>', 1)),
|
|
56
|
+
e("div", Z, [
|
|
57
|
+
a[4] || (a[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
|
|
58
|
+
(o(), d(u, null, w(m, (t) => e("div", {
|
|
59
|
+
key: t,
|
|
60
|
+
class: y(["start-item", { "start-item-active": t === s.theme }]),
|
|
61
|
+
onClick: (B) => s.$emit("changeTheme", { id: t, label: l(f)[t] })
|
|
62
|
+
}, A(l(f)[t]), 11, E)), 64))
|
|
63
63
|
])
|
|
64
64
|
]),
|
|
65
|
-
|
|
65
|
+
a[6] || (a[6] = r('<p class="start-h1" data-v-0f473adb>Features</p><ul class="start-ul" data-v-0f473adb><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
|
|
66
66
|
]));
|
|
67
67
|
}
|
|
68
68
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SidebarElement.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-8f90da18"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -28,7 +28,7 @@ const D = ["id"], L = {
|
|
|
28
28
|
setup(k, { emit: y }) {
|
|
29
29
|
const i = k, p = y, { getFullHash: u, isIntersectionEnabled: r, replaceUrlState: w } = I(), l = U(), f = async () => {
|
|
30
30
|
var e, t;
|
|
31
|
-
i.hasChildren && p("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e),
|
|
31
|
+
r.value = !1, i.hasChildren && p("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), await C(100), r.value = !0;
|
|
32
32
|
}, S = () => {
|
|
33
33
|
if (l.value.pathRouting)
|
|
34
34
|
return R(l.value.pathRouting.basePath, i.item.id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/SingleApiReference.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAW5E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"SingleApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/SingleApiReference.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAW5E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CAClD,CAAC;AAyCF,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;wBAVrB,GAAG;wBACH,GAAG;qCACU,GAAG;;;;EAa5C;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|