@scalar/api-reference 1.25.123 → 1.25.125
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":"BaseUrl.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/BaseUrl.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"BaseUrl.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/BaseUrl.vue"],"names":[],"mappings":";AA2MA,wBAKG"}
|
|
@@ -1,40 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ServerSelector as
|
|
3
|
-
import { useActiveEntities as
|
|
4
|
-
import { ScalarMarkdown as
|
|
5
|
-
|
|
1
|
+
import { defineComponent as _, useId as x, openBlock as s, createElementBlock as k, Fragment as g, createElementVNode as m, unref as e, createBlock as d, createCommentVNode as p, createVNode as V } from "vue";
|
|
2
|
+
import { ServerSelector as B, ServerVariablesForm as y } from "@scalar/api-client/components/Server";
|
|
3
|
+
import { useActiveEntities as C, useWorkspace as E } from "@scalar/api-client/store";
|
|
4
|
+
import { ScalarMarkdown as N } from "@scalar/components";
|
|
5
|
+
import { useConfig as U } from "../../hooks/useConfig.js";
|
|
6
|
+
const F = ["id"], j = /* @__PURE__ */ _({
|
|
6
7
|
__name: "BaseUrl",
|
|
7
|
-
setup(
|
|
8
|
-
const { activeCollection:
|
|
8
|
+
setup(M) {
|
|
9
|
+
const { activeCollection: i, activeServer: r } = C(), { serverMutators: f } = E(), n = x(), b = (a, o) => {
|
|
9
10
|
if (!r.value) return;
|
|
10
11
|
const t = r.value.variables || {};
|
|
11
|
-
t[
|
|
12
|
+
t[a] = { ...t[a], default: o }, f.edit(r.value.uid, "variables", t);
|
|
13
|
+
}, { onServerChange: l } = U(), S = (a) => {
|
|
14
|
+
l == null || l(a);
|
|
12
15
|
};
|
|
13
|
-
return (
|
|
14
|
-
var t,
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
(
|
|
16
|
+
return (a, o) => {
|
|
17
|
+
var t, c, u, v;
|
|
18
|
+
return s(), k(g, null, [
|
|
19
|
+
o[0] || (o[0] = m("label", { class: "bg-b-2 flex h-8 items-center px-3 py-2.5 text-sm font-medium" }, " Server ", -1)),
|
|
20
|
+
m("div", { id: e(n) }, [
|
|
21
|
+
(c = (t = e(i)) == null ? void 0 : t.servers) != null && c.length ? (s(), d(e(B), {
|
|
19
22
|
key: 0,
|
|
20
|
-
collection: e(
|
|
23
|
+
collection: e(i),
|
|
21
24
|
server: e(r),
|
|
22
|
-
target: e(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
target: e(n),
|
|
26
|
+
onUpdateServer: S
|
|
27
|
+
}, null, 8, ["collection", "server", "target"])) : p("", !0)
|
|
28
|
+
], 8, F),
|
|
29
|
+
V(e(y), {
|
|
30
|
+
variables: (u = e(r)) == null ? void 0 : u.variables,
|
|
27
31
|
"onUpdate:variable": b
|
|
28
32
|
}, null, 8, ["variables"]),
|
|
29
|
-
(
|
|
33
|
+
(v = e(r)) != null && v.description ? (s(), d(e(N), {
|
|
30
34
|
key: 0,
|
|
31
35
|
class: "text-c-3 px-3 py-1.5",
|
|
32
36
|
value: e(r).description
|
|
33
|
-
}, null, 8, ["value"])) :
|
|
37
|
+
}, null, 8, ["value"])) : p("", !0)
|
|
34
38
|
], 64);
|
|
35
39
|
};
|
|
36
40
|
}
|
|
37
41
|
});
|
|
38
42
|
export {
|
|
39
|
-
|
|
43
|
+
j as default
|
|
40
44
|
};
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.25.
|
|
23
|
+
"version": "1.25.125",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=18"
|
|
26
26
|
},
|
|
@@ -55,16 +55,16 @@
|
|
|
55
55
|
"github-slugger": "^2.0.0",
|
|
56
56
|
"nanoid": "^5.0.9",
|
|
57
57
|
"vue": "^3.5.12",
|
|
58
|
-
"@scalar/api-client": "2.2.
|
|
58
|
+
"@scalar/api-client": "2.2.54",
|
|
59
59
|
"@scalar/code-highlight": "0.0.23",
|
|
60
|
-
"@scalar/oas-utils": "0.2.
|
|
61
|
-
"@scalar/components": "0.13.
|
|
60
|
+
"@scalar/oas-utils": "0.2.109",
|
|
61
|
+
"@scalar/components": "0.13.27",
|
|
62
62
|
"@scalar/openapi-parser": "0.10.9",
|
|
63
63
|
"@scalar/openapi-types": "0.1.9",
|
|
64
64
|
"@scalar/snippetz": "0.2.15",
|
|
65
|
-
"@scalar/
|
|
66
|
-
"@scalar/
|
|
67
|
-
"@scalar/
|
|
65
|
+
"@scalar/types": "0.0.36",
|
|
66
|
+
"@scalar/use-hooks": "0.1.24",
|
|
67
|
+
"@scalar/themes": "0.9.70",
|
|
68
68
|
"@scalar/use-toasts": "0.7.9"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"vite-plugin-banner": "^0.7.1",
|
|
80
80
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
81
81
|
"vitest": "^1.6.0",
|
|
82
|
-
"@scalar/
|
|
83
|
-
"@scalar/
|
|
82
|
+
"@scalar/build-tooling": "0.1.15",
|
|
83
|
+
"@scalar/galaxy": "0.2.22"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"analyze:default": "pnpm dlx vite-bundle-visualizer",
|