@scalar/api-reference 1.38.0 → 1.38.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.
- package/CHANGELOG.md +34 -0
- package/dist/browser/standalone.js +16480 -16453
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/Tags/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tags/Tag.vue.js +22 -11
- package/dist/features/api-client-modal/useApiClient.d.ts +40 -40
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponse.vue2.js +23 -19
- package/dist/hooks/useFreezing.d.ts.map +1 -1
- package/dist/hooks/useFreezing.js +18 -18
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +94 -83
- package/dist/v2/hooks/use-workspace-store-events.d.ts +2 -1
- package/dist/v2/hooks/use-workspace-store-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-store-events.js +9 -9
- package/package.json +17 -17
- package/dist/blocks/constants.d.ts +0 -9
- package/dist/blocks/constants.d.ts.map +0 -1
- package/dist/blocks/helpers/getPointer.d.ts +0 -22
- package/dist/blocks/helpers/getPointer.d.ts.map +0 -1
|
@@ -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":"AAqXA,OAAO,KAAK,EACV,4BAA4B,EAG7B,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAyBpE,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,4BAA4B,CAAA;IAC5C,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AA+VF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC9G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACrD;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA8B/C,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,88 +1,99 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isClient as
|
|
3
|
-
import { safeLocalStorage as
|
|
4
|
-
import { makeUrlAbsolute as
|
|
5
|
-
import { redirectToProxy as
|
|
6
|
-
import { useColorMode as
|
|
7
|
-
import { useSeoMeta as
|
|
8
|
-
import { useFavicon as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { NAV_STATE_SYMBOL as
|
|
12
|
-
import { getDocumentName as
|
|
13
|
-
import { mapConfiguration as
|
|
14
|
-
import { normalizeContent as
|
|
15
|
-
import { useWorkspaceStoreEvents as
|
|
16
|
-
import { useMultipleDocuments as
|
|
17
|
-
import
|
|
18
|
-
const
|
|
1
|
+
import { defineComponent as I, ref as d, toRef as N, provide as P, useTemplateRef as L, onBeforeMount as U, watch as u, computed as V, createElementBlock as A, openBlock as D, createBlock as B, createCommentVNode as _, createVNode as v, unref as n, resolveDynamicComponent as H, withCtx as i, createTextVNode as K, toDisplayString as O, renderSlot as l, isRef as F } from "vue";
|
|
2
|
+
import { isClient as b } from "@scalar/api-client/v2/blocks/operation-code-sample";
|
|
3
|
+
import { safeLocalStorage as W, REFERENCE_LS_KEYS as Y } from "@scalar/helpers/object/local-storage";
|
|
4
|
+
import { makeUrlAbsolute as z } from "@scalar/helpers/url/make-url-absolute";
|
|
5
|
+
import { redirectToProxy as j } from "@scalar/oas-utils/helpers";
|
|
6
|
+
import { useColorMode as q } from "@scalar/use-hooks/useColorMode";
|
|
7
|
+
import { useSeoMeta as G } from "@unhead/vue";
|
|
8
|
+
import { useFavicon as J } from "@vueuse/core";
|
|
9
|
+
import Q from "../components/ApiReferenceLayout.vue.js";
|
|
10
|
+
import X from "../features/toolbar/ApiReferenceToolbar.vue.js";
|
|
11
|
+
import { NAV_STATE_SYMBOL as Z } from "../hooks/useNavState.js";
|
|
12
|
+
import { getDocumentName as ee } from "./helpers/get-document-name.js";
|
|
13
|
+
import { mapConfiguration as c } from "./helpers/map-configuration.js";
|
|
14
|
+
import { normalizeContent as te } from "./helpers/normalize-content.js";
|
|
15
|
+
import { useWorkspaceStoreEvents as oe } from "./hooks/use-workspace-store-events.js";
|
|
16
|
+
import { useMultipleDocuments as re } from "../features/multiple-documents/useMultipleDocuments.js";
|
|
17
|
+
import ae from "../features/multiple-documents/DocumentSelector.vue.js";
|
|
18
|
+
const Me = /* @__PURE__ */ I({
|
|
19
19
|
__name: "ApiReferenceWorkspace",
|
|
20
20
|
props: {
|
|
21
21
|
configuration: {},
|
|
22
22
|
store: {}
|
|
23
23
|
},
|
|
24
24
|
emits: ["updateContent"],
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
availableDocuments:
|
|
25
|
+
setup(E) {
|
|
26
|
+
const g = E, f = d({}), {
|
|
27
|
+
availableDocuments: k,
|
|
28
28
|
selectedConfiguration: o,
|
|
29
|
-
selectedDocumentIndex:
|
|
30
|
-
isIntersectionEnabled:
|
|
31
|
-
hash:
|
|
32
|
-
hashPrefix:
|
|
33
|
-
} =
|
|
34
|
-
configuration:
|
|
35
|
-
configurationOverrides:
|
|
36
|
-
isIntersectionEnabled:
|
|
37
|
-
hash:
|
|
38
|
-
hashPrefix:
|
|
39
|
-
}),
|
|
40
|
-
|
|
29
|
+
selectedDocumentIndex: m,
|
|
30
|
+
isIntersectionEnabled: p,
|
|
31
|
+
hash: M,
|
|
32
|
+
hashPrefix: S
|
|
33
|
+
} = re({
|
|
34
|
+
configuration: N(g, "configuration"),
|
|
35
|
+
configurationOverrides: f,
|
|
36
|
+
isIntersectionEnabled: d(!1),
|
|
37
|
+
hash: d(""),
|
|
38
|
+
hashPrefix: d("")
|
|
39
|
+
}), h = (e, t) => fetch(
|
|
40
|
+
j(o.value.proxyUrl, e.toString()),
|
|
41
41
|
t
|
|
42
42
|
);
|
|
43
|
-
|
|
44
|
-
isIntersectionEnabled:
|
|
45
|
-
hash:
|
|
46
|
-
hashPrefix:
|
|
43
|
+
P(Z, {
|
|
44
|
+
isIntersectionEnabled: p,
|
|
45
|
+
hash: M,
|
|
46
|
+
hashPrefix: S,
|
|
47
47
|
basePath: () => o.value.pathRouting?.basePath,
|
|
48
48
|
generateHeadingSlug: () => o.value.generateHeadingSlug
|
|
49
49
|
});
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
const e =
|
|
53
|
-
|
|
50
|
+
const C = L("root"), r = g.store;
|
|
51
|
+
U(() => {
|
|
52
|
+
const e = W().getItem(
|
|
53
|
+
Y.SELECTED_CLIENT
|
|
54
54
|
);
|
|
55
|
-
|
|
55
|
+
b(e) && !r.workspace["x-scalar-default-client"] && r.update("x-scalar-default-client", e);
|
|
56
56
|
});
|
|
57
57
|
const x = async (e) => {
|
|
58
|
-
const t =
|
|
58
|
+
const t = te(e.content), a = ee({
|
|
59
59
|
name: e.slug || e.title,
|
|
60
60
|
url: e.url,
|
|
61
61
|
document: t
|
|
62
62
|
});
|
|
63
63
|
if (r.workspace.documents[a]) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
if (t) {
|
|
65
|
+
p.value = !1;
|
|
66
|
+
const s = await r.rebaseDocument({
|
|
67
|
+
name: a,
|
|
68
|
+
document: t,
|
|
69
|
+
config: c(e)
|
|
70
|
+
});
|
|
71
|
+
s && await r.rebaseDocument(
|
|
72
|
+
{ name: a, document: t, config: c(e) },
|
|
73
|
+
s.flatMap((T) => T[0])
|
|
74
|
+
), r.update("x-scalar-active-document", a), setTimeout(() => {
|
|
75
|
+
p.value = !0;
|
|
76
|
+
}, 300);
|
|
77
|
+
}
|
|
67
78
|
return;
|
|
68
79
|
}
|
|
69
80
|
if (t)
|
|
70
81
|
return await r.addDocument({
|
|
71
82
|
name: a,
|
|
72
83
|
document: t,
|
|
73
|
-
config:
|
|
84
|
+
config: c(e)
|
|
74
85
|
});
|
|
75
86
|
if (e.url)
|
|
76
87
|
return await r.addDocument({
|
|
77
88
|
name: e.slug ?? "default",
|
|
78
|
-
url:
|
|
89
|
+
url: z(e.url, {
|
|
79
90
|
basePath: o.value.pathRouting?.basePath
|
|
80
91
|
}),
|
|
81
|
-
fetch: e.fetch ??
|
|
82
|
-
config:
|
|
92
|
+
fetch: e.fetch ?? h,
|
|
93
|
+
config: c(e)
|
|
83
94
|
});
|
|
84
95
|
};
|
|
85
|
-
|
|
96
|
+
u(
|
|
86
97
|
[
|
|
87
98
|
() => o.value.slug,
|
|
88
99
|
() => o.value.url,
|
|
@@ -92,12 +103,12 @@ const Se = /* @__PURE__ */ w({
|
|
|
92
103
|
(e || t || a) && x(o.value);
|
|
93
104
|
},
|
|
94
105
|
{ immediate: !0 }
|
|
95
|
-
),
|
|
106
|
+
), oe(r, C, o.value), u(
|
|
96
107
|
() => o.value.defaultHttpClient,
|
|
97
108
|
(e) => {
|
|
98
109
|
if (e) {
|
|
99
|
-
const { targetKey: t, clientKey: a } = e,
|
|
100
|
-
|
|
110
|
+
const { targetKey: t, clientKey: a } = e, s = `${t}/${a}`;
|
|
111
|
+
b(s) && r.update("x-scalar-default-client", s);
|
|
101
112
|
}
|
|
102
113
|
},
|
|
103
114
|
{ immediate: !0 }
|
|
@@ -108,70 +119,70 @@ const Se = /* @__PURE__ */ w({
|
|
|
108
119
|
if (e === !1)
|
|
109
120
|
return "light";
|
|
110
121
|
}
|
|
111
|
-
const { toggleColorMode:
|
|
122
|
+
const { toggleColorMode: w, isDarkMode: $ } = q({
|
|
112
123
|
initialColorMode: y(o.value.darkMode),
|
|
113
124
|
overrideColorMode: o.value.forceDarkModeState
|
|
114
125
|
});
|
|
115
|
-
|
|
126
|
+
u(
|
|
116
127
|
() => o.value.darkMode,
|
|
117
128
|
(e) => r.update("x-scalar-dark-mode", !!e)
|
|
118
|
-
),
|
|
119
|
-
() =>
|
|
129
|
+
), u(
|
|
130
|
+
() => $.value,
|
|
120
131
|
(e) => r.update("x-scalar-dark-mode", e),
|
|
121
132
|
{ immediate: !0 }
|
|
122
|
-
),
|
|
123
|
-
() =>
|
|
133
|
+
), u(
|
|
134
|
+
() => m.value,
|
|
124
135
|
(e) => r.update(
|
|
125
136
|
"x-scalar-active-document",
|
|
126
|
-
|
|
137
|
+
k.value[e]?.slug
|
|
127
138
|
),
|
|
128
139
|
{ immediate: !0 }
|
|
129
|
-
), o.value.metaData &&
|
|
130
|
-
const
|
|
131
|
-
return
|
|
140
|
+
), o.value.metaData && G(o.value.metaData);
|
|
141
|
+
const R = V(() => o.value.favicon);
|
|
142
|
+
return J(R), (e, t) => (D(), A("div", {
|
|
132
143
|
ref_key: "root",
|
|
133
|
-
ref:
|
|
144
|
+
ref: C
|
|
134
145
|
}, [
|
|
135
|
-
n(o)?.customCss ? (
|
|
146
|
+
n(o)?.customCss ? (D(), B(H("style"), { key: 0 }, {
|
|
136
147
|
default: i(() => [
|
|
137
|
-
|
|
148
|
+
K(O(n(o).customCss), 1)
|
|
138
149
|
]),
|
|
139
150
|
_: 1
|
|
140
|
-
})) :
|
|
141
|
-
|
|
151
|
+
})) : _("", !0),
|
|
152
|
+
v(Q, {
|
|
142
153
|
configuration: n(o),
|
|
143
154
|
isDark: !!n(r).workspace["x-scalar-dark-mode"],
|
|
144
155
|
store: n(r),
|
|
145
|
-
onToggleDarkMode: t[2] || (t[2] = () => n(
|
|
156
|
+
onToggleDarkMode: t[2] || (t[2] = () => n(w)()),
|
|
146
157
|
onUpdateContent: t[3] || (t[3] = (a) => e.$emit("updateContent", a))
|
|
147
158
|
}, {
|
|
148
159
|
"document-selector": i(() => [
|
|
149
|
-
|
|
150
|
-
modelValue: n(
|
|
151
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) =>
|
|
152
|
-
options: n(
|
|
160
|
+
v(n(ae), {
|
|
161
|
+
modelValue: n(m),
|
|
162
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => F(m) ? m.value = a : null),
|
|
163
|
+
options: n(k)
|
|
153
164
|
}, null, 8, ["modelValue", "options"])
|
|
154
165
|
]),
|
|
155
166
|
"content-start": i(() => [
|
|
156
|
-
|
|
157
|
-
overrides:
|
|
158
|
-
"onUpdate:overrides": t[1] || (t[1] = (a) =>
|
|
167
|
+
v(X, {
|
|
168
|
+
overrides: f.value,
|
|
169
|
+
"onUpdate:overrides": t[1] || (t[1] = (a) => f.value = a),
|
|
159
170
|
configuration: n(o),
|
|
160
171
|
workspace: n(r)
|
|
161
172
|
}, null, 8, ["overrides", "configuration", "workspace"]),
|
|
162
|
-
|
|
173
|
+
l(e.$slots, "content-start")
|
|
163
174
|
]),
|
|
164
175
|
"content-end": i(() => [
|
|
165
|
-
|
|
176
|
+
l(e.$slots, "content-end")
|
|
166
177
|
]),
|
|
167
178
|
"sidebar-start": i(() => [
|
|
168
|
-
|
|
179
|
+
l(e.$slots, "sidebar-start")
|
|
169
180
|
]),
|
|
170
181
|
"sidebar-end": i(() => [
|
|
171
|
-
|
|
182
|
+
l(e.$slots, "sidebar-end")
|
|
172
183
|
]),
|
|
173
184
|
footer: i(() => [
|
|
174
|
-
|
|
185
|
+
l(e.$slots, "footer")
|
|
175
186
|
]),
|
|
176
187
|
_: 3
|
|
177
188
|
}, 8, ["configuration", "isDark", "store"])
|
|
@@ -179,5 +190,5 @@ const Se = /* @__PURE__ */ w({
|
|
|
179
190
|
}
|
|
180
191
|
});
|
|
181
192
|
export {
|
|
182
|
-
|
|
193
|
+
Me as default
|
|
183
194
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
|
|
1
2
|
import { type WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
3
|
import type { Ref } from 'vue';
|
|
3
|
-
export declare const useWorkspaceStoreEvents: (store: WorkspaceStore, root: Ref<HTMLElement | null
|
|
4
|
+
export declare const useWorkspaceStoreEvents: (store: WorkspaceStore, root: Ref<HTMLElement | null>, configuration: ApiReferenceConfiguration) => void;
|
|
4
5
|
//# sourceMappingURL=use-workspace-store-events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-workspace-store-events.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-workspace-store-events.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"use-workspace-store-events.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/use-workspace-store-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,gCAAgC,CAAA;AAE5F,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,eAAO,MAAM,uBAAuB,GAClC,OAAO,cAAc,EACrB,MAAM,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,EAC7B,eAAe,yBAAyB,SA4GzC,CAAA"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { safeLocalStorage as
|
|
2
|
-
import { generateClientMutators as
|
|
1
|
+
import { safeLocalStorage as d, REFERENCE_LS_KEYS as u } from "@scalar/helpers/object/local-storage";
|
|
2
|
+
import { generateClientMutators as n } from "@scalar/workspace-store/client";
|
|
3
3
|
import { onCustomEvent as c } from "@scalar/workspace-store/events";
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const f = (r, t, i) => {
|
|
5
|
+
const v = n(r);
|
|
6
6
|
c(t, "scalar-update-dark-mode", (e) => {
|
|
7
7
|
r.update("x-scalar-dark-mode", e.detail.value);
|
|
8
8
|
}), c(t, "scalar-update-active-document", (e) => {
|
|
9
9
|
r.update("x-scalar-active-document", e.detail.value);
|
|
10
10
|
}), c(t, "scalar-update-selected-client", (e) => {
|
|
11
|
-
r.update("x-scalar-default-client", e.detail),
|
|
11
|
+
r.update("x-scalar-default-client", e.detail), d().setItem(u.SELECTED_CLIENT, e.detail);
|
|
12
12
|
}), c(t, "scalar-replace-servers", (e) => {
|
|
13
13
|
const a = r.workspace.activeDocument;
|
|
14
14
|
a && (a.servers = e.detail.servers, a["x-scalar-active-server"] = e.detail.servers.at(-1)?.url);
|
|
15
15
|
}), c(t, "scalar-update-selected-server", (e) => {
|
|
16
16
|
const a = r.workspace.activeDocument;
|
|
17
|
-
a && (a["x-scalar-active-server"] = e.detail.value);
|
|
17
|
+
a && (a["x-scalar-active-server"] = e.detail.value), i.onServerChange && i.onServerChange(e.detail.value ?? "");
|
|
18
18
|
}), c(t, "store-update-selected-server-properties", (e) => {
|
|
19
19
|
const a = r.workspace.activeDocument;
|
|
20
20
|
if (!a)
|
|
@@ -28,13 +28,13 @@ const p = (r, t) => {
|
|
|
28
28
|
const s = a.servers?.find((l) => l.url === a["x-scalar-active-server"]);
|
|
29
29
|
s && s.variables?.[e.detail.key] && (s.variables[e.detail.key].default = e.detail.value);
|
|
30
30
|
}), c(t, "scalar-add-server", (e) => {
|
|
31
|
-
|
|
31
|
+
v.active().serverMutators.addServer(e.detail.server);
|
|
32
32
|
const a = r.workspace.activeDocument;
|
|
33
33
|
a && (a["x-scalar-active-server"] = e.detail.server.url);
|
|
34
34
|
}), c(t, "scalar-delete-server", (e) => {
|
|
35
|
-
|
|
35
|
+
v.active().serverMutators.deleteServer(e.detail.url);
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
f as useWorkspaceStoreEvents
|
|
40
40
|
};
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.38.
|
|
23
|
+
"version": "1.38.1",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -53,26 +53,26 @@
|
|
|
53
53
|
"js-base64": "^3.7.8",
|
|
54
54
|
"microdiff": "^1.5.0",
|
|
55
55
|
"nanoid": "5.1.5",
|
|
56
|
-
"type-fest": "
|
|
56
|
+
"type-fest": "5.0.0",
|
|
57
57
|
"vue": "^3.5.17",
|
|
58
58
|
"zod": "4.1.11",
|
|
59
|
+
"@scalar/api-client": "2.8.1",
|
|
60
|
+
"@scalar/helpers": "0.0.12",
|
|
61
|
+
"@scalar/components": "0.15.1",
|
|
59
62
|
"@scalar/code-highlight": "0.2.0",
|
|
60
|
-
"@scalar/
|
|
61
|
-
"@scalar/components": "0.15.0",
|
|
62
|
-
"@scalar/helpers": "0.0.11",
|
|
63
|
-
"@scalar/json-magic": "0.6.0",
|
|
64
|
-
"@scalar/oas-utils": "0.5.1",
|
|
63
|
+
"@scalar/oas-utils": "0.5.2",
|
|
65
64
|
"@scalar/icons": "0.4.7",
|
|
66
|
-
"@scalar/
|
|
67
|
-
"@scalar/
|
|
68
|
-
"@scalar/openapi-types": "0.
|
|
69
|
-
"@scalar/
|
|
70
|
-
"@scalar/
|
|
65
|
+
"@scalar/object-utils": "1.2.8",
|
|
66
|
+
"@scalar/json-magic": "0.6.1",
|
|
67
|
+
"@scalar/openapi-types": "0.5.0",
|
|
68
|
+
"@scalar/openapi-parser": "0.22.3",
|
|
69
|
+
"@scalar/openapi-upgrader": "0.1.3",
|
|
70
|
+
"@scalar/snippetz": "0.5.1",
|
|
71
|
+
"@scalar/themes": "0.13.22",
|
|
71
72
|
"@scalar/use-hooks": "0.2.5",
|
|
72
|
-
"@scalar/
|
|
73
|
-
"@scalar/types": "0.3.1",
|
|
73
|
+
"@scalar/types": "0.3.2",
|
|
74
74
|
"@scalar/use-toasts": "0.8.0",
|
|
75
|
-
"@scalar/workspace-store": "0.17.
|
|
75
|
+
"@scalar/workspace-store": "0.17.1"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@hono/node-server": "^1.11.0",
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
"vite-plugin-banner": "^0.7.1",
|
|
93
93
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
94
94
|
"vitest": "3.2.4",
|
|
95
|
-
"@scalar/core": "0.3.19",
|
|
96
95
|
"@scalar/build-tooling": "0.2.7",
|
|
97
|
-
"@scalar/
|
|
96
|
+
"@scalar/core": "0.3.20",
|
|
97
|
+
"@scalar/galaxy": "0.5.9",
|
|
98
98
|
"@scalar/react-renderer": "0.2.1"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/blocks/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;CAMlB,CAAA;AAED,eAAO,MAAM,QAAQ;;CAEpB,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { OpenAPI } from '@scalar/openapi-types';
|
|
2
|
-
/**
|
|
3
|
-
* Pass an array of strings to get a valid OpenAPI pointer.
|
|
4
|
-
*
|
|
5
|
-
* Works with any path, but is typed to allow the paths that we support.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ['paths', '/planets/{foo}', 'get'] > '#/paths/~1planets~1{foo}/get'
|
|
9
|
-
* ['components', 'schemas', 'Planet] > '#/components/schemas/Planet'
|
|
10
|
-
*/
|
|
11
|
-
type ValidOpenApiPaths = ['paths' | 'webhooks', string, Lowercase<OpenAPI.HttpMethod> | string] | ['components', 'schemas', string];
|
|
12
|
-
/**
|
|
13
|
-
* Encodes a location string with paths
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* getPointer(['paths', '/planets/{foo}', 'get'])
|
|
17
|
-
*
|
|
18
|
-
* '#/paths/~1planets~1{foo}/get'
|
|
19
|
-
*/
|
|
20
|
-
export declare function getPointer(path: ValidOpenApiPaths): `#/${string}`;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=getPointer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPointer.d.ts","sourceRoot":"","sources":["../../../src/blocks/helpers/getPointer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAIpD;;;;;;;;GAQG;AACH,KAAK,iBAAiB,GAClB,CAAC,OAAO,GAAG,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,CAAC,GACtE,CAAC,YAAY,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;AAErC;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAY9B,KAAK,MAAM,EAAE,CAChC"}
|