@scalar/api-reference 1.31.11 → 1.31.14
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 +30 -0
- package/dist/browser/standalone.js +12820 -11753
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.js +3 -3
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +27 -26
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +73 -73
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +12 -14
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +97 -73
- package/dist/helpers/parse.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -15
- package/dist/libs/openapi.js +24 -24
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +8 -7
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiReferenceWorkspace.vue.d.ts","sourceRoot":"","sources":["../../src/v2/ApiReferenceWorkspace.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiReferenceWorkspace.vue.d.ts","sourceRoot":"","sources":["../../src/v2/ApiReferenceWorkspace.vue"],"names":[],"mappings":"AAmOA,OAAO,KAAK,EACV,4BAA4B,EAE7B,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAuBpE,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,4BAA4B,CAAA;IAC5C,iBAAiB,EAAE,MAAM,cAAc,CAAA;CACxC,CAAC;AAsIF,iBAAS,cAAc;WA0GT,OAAO,IAA6B;;wBAVrB,GAAG;wBACH,GAAG;iCACM,GAAG;;;;EAaxC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as V, ref as
|
|
1
|
+
import { defineComponent as V, ref as l, toRef as y, provide as b, shallowRef as E, onServerPrefetch as R, onMounted as $, watch as c, computed as w, createElementBlock as A, openBlock as f, Fragment as B, createBlock as N, createCommentVNode as T, createVNode as p, unref as t, resolveDynamicComponent as F, withCtx as a, createTextVNode as I, toDisplayString as P, renderSlot as d, isRef as W } from "vue";
|
|
2
2
|
import { useColorMode as L } from "@scalar/use-hooks/useColorMode";
|
|
3
3
|
import { useSeoMeta as U } from "@unhead/vue";
|
|
4
4
|
import { useFavicon as _ } from "@vueuse/core";
|
|
@@ -23,9 +23,9 @@ const te = /* @__PURE__ */ V({
|
|
|
23
23
|
hashPrefix: M
|
|
24
24
|
} = Y({
|
|
25
25
|
configuration: y(u, "configuration"),
|
|
26
|
-
isIntersectionEnabled:
|
|
27
|
-
hash:
|
|
28
|
-
hashPrefix:
|
|
26
|
+
isIntersectionEnabled: l(!1),
|
|
27
|
+
hash: l(""),
|
|
28
|
+
hashPrefix: l("")
|
|
29
29
|
});
|
|
30
30
|
b(j, { isIntersectionEnabled: g, hash: C, hashPrefix: M });
|
|
31
31
|
const D = E(null), n = u.getWorkspaceStore();
|
|
@@ -43,7 +43,8 @@ const te = /* @__PURE__ */ V({
|
|
|
43
43
|
(e) => n.update("x-scalar-dark-mode", !!e)
|
|
44
44
|
), c(
|
|
45
45
|
() => h.value,
|
|
46
|
-
(e) => n.update("x-scalar-dark-mode", e)
|
|
46
|
+
(e) => n.update("x-scalar-dark-mode", e),
|
|
47
|
+
{ immediate: !0 }
|
|
47
48
|
), o.value.metaData && U(o.value.metaData);
|
|
48
49
|
const x = w(() => o.value.favicon);
|
|
49
50
|
return _(x), (e, r) => {
|
|
@@ -59,7 +60,7 @@ const te = /* @__PURE__ */ V({
|
|
|
59
60
|
configuration: t(o),
|
|
60
61
|
isDark: !!t(n).workspace["x-scalar-dark-mode"],
|
|
61
62
|
onToggleDarkMode: r[1] || (r[1] = () => t(S)()),
|
|
62
|
-
onUpdateContent: r[2] || (r[2] = (
|
|
63
|
+
onUpdateContent: r[2] || (r[2] = (i) => e.$emit("updateContent", i))
|
|
63
64
|
}, {
|
|
64
65
|
footer: a(() => [
|
|
65
66
|
d(e.$slots, "footer")
|
|
@@ -70,7 +71,7 @@ const te = /* @__PURE__ */ V({
|
|
|
70
71
|
"document-selector": a(() => [
|
|
71
72
|
p(t(z), {
|
|
72
73
|
modelValue: t(s),
|
|
73
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
74
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => W(s) ? s.value = i : null),
|
|
74
75
|
options: t(v)
|
|
75
76
|
}, null, 8, ["modelValue", "options"])
|
|
76
77
|
]),
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.31.
|
|
23
|
+
"version": "1.31.14",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -54,20 +54,20 @@
|
|
|
54
54
|
"nanoid": "^5.1.5",
|
|
55
55
|
"vue": "^3.5.12",
|
|
56
56
|
"zod": "3.24.1",
|
|
57
|
-
"@scalar/api-client": "2.5.
|
|
58
|
-
"@scalar/
|
|
59
|
-
"@scalar/components": "0.14.9",
|
|
57
|
+
"@scalar/api-client": "2.5.8",
|
|
58
|
+
"@scalar/helpers": "0.0.4",
|
|
60
59
|
"@scalar/icons": "0.4.3",
|
|
61
|
-
"@scalar/
|
|
60
|
+
"@scalar/components": "0.14.9",
|
|
61
|
+
"@scalar/code-highlight": "0.1.4",
|
|
62
62
|
"@scalar/oas-utils": "0.4.5",
|
|
63
|
-
"@scalar/
|
|
64
|
-
"@scalar/themes": "0.13.3",
|
|
63
|
+
"@scalar/openapi-types": "0.3.3",
|
|
65
64
|
"@scalar/snippetz": "0.3.1",
|
|
65
|
+
"@scalar/openapi-parser": "0.18.0",
|
|
66
|
+
"@scalar/themes": "0.13.3",
|
|
66
67
|
"@scalar/types": "0.2.3",
|
|
67
|
-
"@scalar/openapi-parser": "0.17.0",
|
|
68
68
|
"@scalar/use-hooks": "0.2.2",
|
|
69
69
|
"@scalar/use-toasts": "0.8.0",
|
|
70
|
-
"@scalar/workspace-store": "0.
|
|
70
|
+
"@scalar/workspace-store": "0.5.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@tailwindcss/vite": "^4.1.7",
|
|
@@ -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": {
|