@scalar/api-reference 1.32.0 → 1.32.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAmQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;;cAuCf,WAAW,CAAC,QAAQ;gBAClB,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;cAJN,WAAW,CAAC,QAAQ;gBAClB,UAAU;aACb,MAAM;aACN,QAAQ,GAAG,SAAS;gBACjB,IAAI;;YADP,QAAQ,GAAG,SAAS;;AAnBjC,wBAuUK"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, ref as v, watch as K, onMounted as j, withDirectives as A, createElementBlock as m, openBlock as a, normalizeClass as F, createBlock as p, createCommentVNode as
|
|
1
|
+
import { defineComponent as H, ref as v, watch as K, onMounted as j, withDirectives as A, createElementBlock as m, openBlock as a, normalizeClass as F, createBlock as p, createCommentVNode as b, Fragment as y, renderList as w, unref as o, withCtx as c, createVNode as _, createTextVNode as $, toDisplayString as q, vShow as G } from "vue";
|
|
2
2
|
import { scrollToId as T } from "@scalar/helpers/dom/scroll-to-id";
|
|
3
3
|
import { lazyBus as J } from "./lazyBus.js";
|
|
4
4
|
import { useNavState as P } from "../../../hooks/useNavState.js";
|
|
@@ -22,7 +22,7 @@ const x = v(!1), he = /* @__PURE__ */ H({
|
|
|
22
22
|
parsedSpec: {}
|
|
23
23
|
},
|
|
24
24
|
setup(B) {
|
|
25
|
-
const { document: h, collection: C, server: N, layout: z, parsedSpec: f } = B, L = v(!1), k = v([]),
|
|
25
|
+
const { document: h, collection: C, server: N, layout: z, parsedSpec: f } = B, L = v(!1), k = v([]), I = v([]), { getModelId: V, getSectionId: M, getTagId: D, hash: l, isIntersectionEnabled: g } = P(), W = v(!x.value && z !== "classic" && l.value);
|
|
26
26
|
K(
|
|
27
27
|
() => {
|
|
28
28
|
var s;
|
|
@@ -54,7 +54,7 @@ const x = v(!1), he = /* @__PURE__ */ H({
|
|
|
54
54
|
const t = Object.keys(S(h) ?? {}), [, d] = l.value.toLowerCase().split("/"), n = l.value === "models" ? 0 : t.findIndex((r) => r.toLowerCase() === d);
|
|
55
55
|
if (n === -1)
|
|
56
56
|
return;
|
|
57
|
-
|
|
57
|
+
I.value = t.slice(n, n + 3);
|
|
58
58
|
} else
|
|
59
59
|
typeof window < "u" && T(l.value), setTimeout(() => g.value = !0, 1e3);
|
|
60
60
|
},
|
|
@@ -78,17 +78,18 @@ const x = v(!1), he = /* @__PURE__ */ H({
|
|
|
78
78
|
"references-loading-top-spacer": k.value.length
|
|
79
79
|
}])
|
|
80
80
|
}, [
|
|
81
|
-
(a(!0), m(y, null,
|
|
81
|
+
(a(!0), m(y, null, w(k.value, (e, u) => (a(), m(y, {
|
|
82
82
|
key: e.name + u
|
|
83
83
|
}, [
|
|
84
84
|
e.operations && e.operations.length > 0 ? (a(), p(o(Q), {
|
|
85
85
|
key: 0,
|
|
86
86
|
collection: C,
|
|
87
87
|
spec: f,
|
|
88
|
+
id: "lazy-{{ getTagId(tag) }}",
|
|
88
89
|
tag: e
|
|
89
90
|
}, {
|
|
90
91
|
default: c(() => [
|
|
91
|
-
(a(!0), m(y, null,
|
|
92
|
+
(a(!0), m(y, null, w(e.lazyOperations, (t) => (a(), p(o(R), {
|
|
92
93
|
path: t.path,
|
|
93
94
|
method: t.httpVerb,
|
|
94
95
|
isWebhook: t.isWebhook,
|
|
@@ -100,11 +101,11 @@ const x = v(!1), he = /* @__PURE__ */ H({
|
|
|
100
101
|
}, null, 8, ["path", "method", "isWebhook", "id"]))), 128))
|
|
101
102
|
]),
|
|
102
103
|
_: 2
|
|
103
|
-
}, 1032, ["tag"])) :
|
|
104
|
+
}, 1032, ["tag"])) : b("", !0)
|
|
104
105
|
], 64))), 128)),
|
|
105
|
-
|
|
106
|
+
I.value.length ? (a(), p(o(U), { key: 0 }, {
|
|
106
107
|
default: c(() => [
|
|
107
|
-
(a(!0), m(y, null, I
|
|
108
|
+
(a(!0), m(y, null, w(I.value, (e) => (a(), p(o(X), {
|
|
108
109
|
key: e,
|
|
109
110
|
label: e
|
|
110
111
|
}, {
|
|
@@ -144,14 +145,14 @@ const x = v(!1), he = /* @__PURE__ */ H({
|
|
|
144
145
|
];
|
|
145
146
|
}),
|
|
146
147
|
_: 2
|
|
147
|
-
}, 1024)) :
|
|
148
|
+
}, 1024)) : b("", !0)
|
|
148
149
|
];
|
|
149
150
|
}),
|
|
150
151
|
_: 2
|
|
151
152
|
}, 1032, ["label"]))), 128))
|
|
152
153
|
]),
|
|
153
154
|
_: 1
|
|
154
|
-
})) :
|
|
155
|
+
})) : b("", !0)
|
|
155
156
|
], 2)), [
|
|
156
157
|
[G, W.value]
|
|
157
158
|
]);
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.32.
|
|
23
|
+
"version": "1.32.1",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
"zod": "3.24.1",
|
|
57
57
|
"@scalar/api-client": "2.5.13",
|
|
58
58
|
"@scalar/code-highlight": "0.1.4",
|
|
59
|
-
"@scalar/components": "0.14.14",
|
|
60
59
|
"@scalar/helpers": "0.0.5",
|
|
60
|
+
"@scalar/components": "0.14.14",
|
|
61
61
|
"@scalar/icons": "0.4.5",
|
|
62
|
-
"@scalar/oas-utils": "0.4.9",
|
|
63
62
|
"@scalar/openapi-parser": "0.18.0",
|
|
64
63
|
"@scalar/openapi-types": "0.3.4",
|
|
65
64
|
"@scalar/snippetz": "0.3.1",
|
|
65
|
+
"@scalar/oas-utils": "0.4.9",
|
|
66
66
|
"@scalar/types": "0.2.5",
|
|
67
|
-
"@scalar/themes": "0.13.6",
|
|
68
67
|
"@scalar/use-hooks": "0.2.3",
|
|
68
|
+
"@scalar/themes": "0.13.6",
|
|
69
69
|
"@scalar/use-toasts": "0.8.0",
|
|
70
70
|
"@scalar/workspace-store": "0.7.0"
|
|
71
71
|
},
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"vite-plugin-banner": "^0.7.1",
|
|
85
85
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
86
86
|
"vitest": "^1.6.0",
|
|
87
|
-
"@scalar/galaxy": "0.5.1",
|
|
88
87
|
"@scalar/build-tooling": "0.2.3",
|
|
88
|
+
"@scalar/galaxy": "0.5.1",
|
|
89
89
|
"@scalar/react-renderer": "0.2.0"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|