@scalar/api-reference 1.36.0 → 1.36.2
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 +15482 -15086
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts +2 -0
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue2.js +52 -41
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +9 -8
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
- package/dist/components/Content/Models/ModernLayout.vue2.js +46 -42
- package/dist/components/Content/Schema/Schema.vue.d.ts +3 -4
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +1 -1
- package/dist/components/Content/Schema/Schema.vue2.js +71 -74
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +4 -5
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +46 -49
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +2 -7
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +29 -40
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -5
- 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 +72 -76
- package/dist/components/Content/Schema/types.d.ts +17 -0
- package/dist/components/Content/Schema/types.d.ts.map +1 -0
- package/dist/components/OperationsList/OperationsList.vue.js +2 -2
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
- package/dist/consts/urls.d.ts +17 -0
- package/dist/consts/urls.d.ts.map +1 -0
- package/dist/consts/urls.js +7 -0
- package/dist/features/Operation/components/Header.vue.d.ts +2 -0
- package/dist/features/Operation/components/Header.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Header.vue.js +15 -10
- package/dist/features/Operation/components/Headers.vue.d.ts +2 -0
- package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/Headers.vue.js +2 -2
- package/dist/features/Operation/components/Headers.vue2.js +26 -24
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +55 -48
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +1 -1
- package/dist/features/Operation/components/RequestBody.vue2.js +74 -61
- package/dist/features/Operation/components/callbacks/Callback.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +3 -3
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/api-client-modal/useApiClient.d.ts +20 -20
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts +4 -2
- package/dist/features/multiple-documents/useMultipleDocuments.d.ts.map +1 -1
- package/dist/features/multiple-documents/useMultipleDocuments.js +49 -43
- package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts +16 -0
- package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbar.vue.js +43 -0
- package/dist/features/toolbar/ApiReferenceToolbar.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts +13 -0
- package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.js +12 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts +14 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.js +95 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfig.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts +10 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.js +27 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts +25 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.js +123 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts +11 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.js +41 -0
- package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts +26 -0
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +46 -0
- package/dist/features/toolbar/ApiReferenceToolbarPopover.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts +25 -0
- package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.js +58 -0
- package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts +7 -0
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +84 -0
- package/dist/features/toolbar/ApiReferenceToolbarSdks.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts +7 -0
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue.js +42 -0
- package/dist/features/toolbar/ApiReferenceToolbarShare.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts +7 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.js +50 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts +14 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.js +83 -0
- package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue2.js +4 -0
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts +3 -0
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts.map +1 -0
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +51 -0
- package/dist/features/toolbar/ApiReferenceToolbarTitle.vue2.js +4 -0
- package/dist/features/toolbar/uploadTempDocument.d.ts +3 -0
- package/dist/features/toolbar/uploadTempDocument.d.ts.map +1 -0
- package/dist/features/toolbar/uploadTempDocument.js +21 -0
- package/dist/helpers/convert-security-scheme.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +6 -6
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +90 -82
- package/dist/v2/blocks/scalar-info-block/components/IntroductionLayout.vue.js +2 -2
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +5 -6
- package/dist/v2/helpers/map-configuration.d.ts.map +1 -1
- package/package.json +12 -12
|
@@ -4,17 +4,17 @@ type __VLS_Props = {
|
|
|
4
4
|
configuration?: AnyApiReferenceConfiguration;
|
|
5
5
|
store: WorkspaceStore;
|
|
6
6
|
};
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_20: {}, __VLS_22: {}, __VLS_24: {}, __VLS_26: {}, __VLS_28: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
'content-start'?: (props: typeof
|
|
9
|
+
'content-start'?: (props: typeof __VLS_20) => any;
|
|
10
10
|
} & {
|
|
11
|
-
'content-end'?: (props: typeof
|
|
11
|
+
'content-end'?: (props: typeof __VLS_22) => any;
|
|
12
12
|
} & {
|
|
13
|
-
'sidebar-start'?: (props: typeof
|
|
13
|
+
'sidebar-start'?: (props: typeof __VLS_24) => any;
|
|
14
14
|
} & {
|
|
15
|
-
'sidebar-end'?: (props: typeof
|
|
15
|
+
'sidebar-end'?: (props: typeof __VLS_26) => any;
|
|
16
16
|
} & {
|
|
17
|
-
footer?: (props: typeof
|
|
17
|
+
footer?: (props: typeof __VLS_28) => any;
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
20
|
updateContent: (content: any) => any;
|
|
@@ -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":"AAiWA,OAAO,KAAK,EACV,4BAA4B,EAG7B,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAA;AA0BpE,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,4BAA4B,CAAA;IAC5C,KAAK,EAAE,cAAc,CAAA;CACtB,CAAC;AA4UF,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,60 +1,62 @@
|
|
|
1
|
-
import { defineComponent as R, ref as
|
|
2
|
-
import { safeLocalStorage as
|
|
3
|
-
import { makeUrlAbsolute as
|
|
4
|
-
import { redirectToProxy as
|
|
5
|
-
import { useColorMode as
|
|
6
|
-
import { useSeoMeta as
|
|
7
|
-
import { useFavicon as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { defineComponent as R, ref as m, toRef as I, provide as N, useTemplateRef as L, onBeforeMount as U, watch as s, computed as V, createElementBlock as A, openBlock as g, createBlock as B, createCommentVNode as P, createVNode as f, unref as n, resolveDynamicComponent as _, withCtx as i, createTextVNode as K, toDisplayString as O, renderSlot as u, isRef as F } from "vue";
|
|
2
|
+
import { safeLocalStorage as W, REFERENCE_LS_KEYS as Y } from "@scalar/helpers/object/local-storage";
|
|
3
|
+
import { makeUrlAbsolute as z } from "@scalar/helpers/url/make-url-absolute";
|
|
4
|
+
import { redirectToProxy as H } from "@scalar/oas-utils/helpers";
|
|
5
|
+
import { useColorMode as j } from "@scalar/use-hooks/useColorMode";
|
|
6
|
+
import { useSeoMeta as q } from "@unhead/vue";
|
|
7
|
+
import { useFavicon as G } from "@vueuse/core";
|
|
8
|
+
import J from "../components/ApiReferenceLayout.vue.js";
|
|
9
|
+
import Q from "../features/toolbar/ApiReferenceToolbar.vue.js";
|
|
10
|
+
import { NAV_STATE_SYMBOL as X } from "../hooks/useNavState.js";
|
|
10
11
|
import { isClient as D } from "./blocks/scalar-request-example-block/helpers/find-client.js";
|
|
11
|
-
import { getDocumentName as
|
|
12
|
-
import { mapConfiguration as
|
|
13
|
-
import { normalizeContent as
|
|
14
|
-
import { useWorkspaceStoreEvents as
|
|
15
|
-
import { useMultipleDocuments as
|
|
16
|
-
import
|
|
17
|
-
const
|
|
12
|
+
import { getDocumentName as Z } from "./helpers/get-document-name.js";
|
|
13
|
+
import { mapConfiguration as E } from "./helpers/map-configuration.js";
|
|
14
|
+
import { normalizeContent as ee } from "./helpers/normalize-content.js";
|
|
15
|
+
import { useWorkspaceStoreEvents as te } from "./hooks/use-workspace-store-events.js";
|
|
16
|
+
import { useMultipleDocuments as oe } from "../features/multiple-documents/useMultipleDocuments.js";
|
|
17
|
+
import re from "../features/multiple-documents/DocumentSelector.vue.js";
|
|
18
|
+
const Me = /* @__PURE__ */ R({
|
|
18
19
|
__name: "ApiReferenceWorkspace",
|
|
19
20
|
props: {
|
|
20
21
|
configuration: {},
|
|
21
22
|
store: {}
|
|
22
23
|
},
|
|
23
24
|
emits: ["updateContent"],
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
availableDocuments:
|
|
25
|
+
setup(M) {
|
|
26
|
+
const p = M, d = m({}), {
|
|
27
|
+
availableDocuments: v,
|
|
27
28
|
selectedConfiguration: o,
|
|
28
|
-
selectedDocumentIndex:
|
|
29
|
-
isIntersectionEnabled:
|
|
30
|
-
hash:
|
|
31
|
-
hashPrefix:
|
|
32
|
-
} =
|
|
33
|
-
configuration: I(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
selectedDocumentIndex: l,
|
|
30
|
+
isIntersectionEnabled: c,
|
|
31
|
+
hash: x,
|
|
32
|
+
hashPrefix: y
|
|
33
|
+
} = oe({
|
|
34
|
+
configuration: I(p, "configuration"),
|
|
35
|
+
configurationOverrides: d,
|
|
36
|
+
isIntersectionEnabled: m(!1),
|
|
37
|
+
hash: m(""),
|
|
38
|
+
hashPrefix: m("")
|
|
39
|
+
}), S = (e, t) => fetch(
|
|
40
|
+
H(o.value.proxyUrl, e.toString()),
|
|
39
41
|
t
|
|
40
42
|
);
|
|
41
|
-
N(
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
const e =
|
|
45
|
-
|
|
43
|
+
N(X, { isIntersectionEnabled: c, hash: x, hashPrefix: y });
|
|
44
|
+
const k = L("root"), r = p.store;
|
|
45
|
+
U(() => {
|
|
46
|
+
const e = W().getItem(
|
|
47
|
+
Y.SELECTED_CLIENT
|
|
46
48
|
);
|
|
47
49
|
D(e) && !r.workspace["x-scalar-default-client"] && r.update("x-scalar-default-client", e);
|
|
48
50
|
});
|
|
49
|
-
const
|
|
50
|
-
const t =
|
|
51
|
+
const b = async (e) => {
|
|
52
|
+
const t = ee(e.content), a = Z({
|
|
51
53
|
name: e.slug || e.title,
|
|
52
54
|
url: e.url,
|
|
53
55
|
document: t
|
|
54
56
|
});
|
|
55
57
|
if (r.workspace.documents[a]) {
|
|
56
|
-
t && (
|
|
57
|
-
|
|
58
|
+
t && (c.value = !1, r.replaceDocument(a, t), r.update("x-scalar-active-document", a), setTimeout(() => {
|
|
59
|
+
c.value = !0;
|
|
58
60
|
}, 300));
|
|
59
61
|
return;
|
|
60
62
|
}
|
|
@@ -62,102 +64,108 @@ const De = /* @__PURE__ */ R({
|
|
|
62
64
|
return await r.addDocument({
|
|
63
65
|
name: a,
|
|
64
66
|
document: t,
|
|
65
|
-
config:
|
|
67
|
+
config: E(e)
|
|
66
68
|
});
|
|
67
69
|
if (e.url)
|
|
68
70
|
return await r.addDocument({
|
|
69
71
|
name: e.slug ?? "default",
|
|
70
|
-
url:
|
|
72
|
+
url: z(e.url, {
|
|
71
73
|
basePath: o.value.pathRouting?.basePath
|
|
72
74
|
}),
|
|
73
|
-
fetch: e.fetch ??
|
|
74
|
-
config:
|
|
75
|
+
fetch: e.fetch ?? S,
|
|
76
|
+
config: E(e)
|
|
75
77
|
});
|
|
76
78
|
};
|
|
77
|
-
|
|
79
|
+
s(
|
|
78
80
|
[
|
|
79
81
|
() => o.value.slug,
|
|
80
82
|
() => o.value.url,
|
|
81
83
|
() => o.value.content
|
|
82
84
|
],
|
|
83
85
|
([e, t, a]) => {
|
|
84
|
-
(e || t || a) &&
|
|
86
|
+
(e || t || a) && b(o.value);
|
|
85
87
|
},
|
|
86
88
|
{ immediate: !0 }
|
|
87
|
-
),
|
|
89
|
+
), te(r, k), s(
|
|
88
90
|
() => o.value.defaultHttpClient,
|
|
89
91
|
(e) => {
|
|
90
92
|
if (e) {
|
|
91
|
-
const { targetKey: t, clientKey: a } = e,
|
|
92
|
-
D(
|
|
93
|
+
const { targetKey: t, clientKey: a } = e, C = `${t}/${a}`;
|
|
94
|
+
D(C) && r.update("x-scalar-default-client", C);
|
|
93
95
|
}
|
|
94
96
|
},
|
|
95
97
|
{ immediate: !0 }
|
|
96
98
|
);
|
|
97
|
-
function
|
|
99
|
+
function h(e) {
|
|
98
100
|
if (e === !0)
|
|
99
101
|
return "dark";
|
|
100
102
|
if (e === !1)
|
|
101
103
|
return "light";
|
|
102
104
|
}
|
|
103
|
-
const { toggleColorMode:
|
|
104
|
-
initialColorMode:
|
|
105
|
+
const { toggleColorMode: $, isDarkMode: T } = j({
|
|
106
|
+
initialColorMode: h(o.value.darkMode),
|
|
105
107
|
overrideColorMode: o.value.forceDarkModeState
|
|
106
108
|
});
|
|
107
|
-
|
|
109
|
+
s(
|
|
108
110
|
() => o.value.darkMode,
|
|
109
111
|
(e) => r.update("x-scalar-dark-mode", !!e)
|
|
110
|
-
),
|
|
112
|
+
), s(
|
|
111
113
|
() => T.value,
|
|
112
114
|
(e) => r.update("x-scalar-dark-mode", e),
|
|
113
115
|
{ immediate: !0 }
|
|
114
|
-
),
|
|
115
|
-
() =>
|
|
116
|
+
), s(
|
|
117
|
+
() => l.value,
|
|
116
118
|
(e) => r.update(
|
|
117
119
|
"x-scalar-active-document",
|
|
118
|
-
|
|
120
|
+
v.value[e]?.slug
|
|
119
121
|
),
|
|
120
122
|
{ immediate: !0 }
|
|
121
|
-
), o.value.metaData &&
|
|
122
|
-
const
|
|
123
|
-
return
|
|
123
|
+
), o.value.metaData && q(o.value.metaData);
|
|
124
|
+
const w = V(() => o.value.favicon);
|
|
125
|
+
return G(w), (e, t) => (g(), A("div", {
|
|
124
126
|
ref_key: "root",
|
|
125
|
-
ref:
|
|
127
|
+
ref: k
|
|
126
128
|
}, [
|
|
127
|
-
n(o)?.customCss ? (
|
|
128
|
-
default:
|
|
129
|
-
|
|
129
|
+
n(o)?.customCss ? (g(), B(_("style"), { key: 0 }, {
|
|
130
|
+
default: i(() => [
|
|
131
|
+
K(O(n(o).customCss), 1)
|
|
130
132
|
]),
|
|
131
133
|
_: 1
|
|
132
134
|
})) : P("", !0),
|
|
133
|
-
|
|
135
|
+
f(J, {
|
|
134
136
|
configuration: n(o),
|
|
135
137
|
isDark: !!n(r).workspace["x-scalar-dark-mode"],
|
|
136
138
|
store: n(r),
|
|
137
|
-
onToggleDarkMode: t[
|
|
138
|
-
onUpdateContent: t[
|
|
139
|
+
onToggleDarkMode: t[2] || (t[2] = () => n($)()),
|
|
140
|
+
onUpdateContent: t[3] || (t[3] = (a) => e.$emit("updateContent", a))
|
|
139
141
|
}, {
|
|
140
|
-
"document-selector":
|
|
141
|
-
|
|
142
|
-
modelValue: n(
|
|
143
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) => F(
|
|
144
|
-
options: n(
|
|
142
|
+
"document-selector": i(() => [
|
|
143
|
+
f(n(re), {
|
|
144
|
+
modelValue: n(l),
|
|
145
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => F(l) ? l.value = a : null),
|
|
146
|
+
options: n(v)
|
|
145
147
|
}, null, 8, ["modelValue", "options"])
|
|
146
148
|
]),
|
|
147
|
-
"content-start":
|
|
148
|
-
|
|
149
|
+
"content-start": i(() => [
|
|
150
|
+
f(Q, {
|
|
151
|
+
workspace: n(r),
|
|
152
|
+
configuration: n(o),
|
|
153
|
+
overrides: d.value,
|
|
154
|
+
"onUpdate:overrides": t[1] || (t[1] = (a) => d.value = a)
|
|
155
|
+
}, null, 8, ["workspace", "configuration", "overrides"]),
|
|
156
|
+
u(e.$slots, "content-start")
|
|
149
157
|
]),
|
|
150
|
-
"content-end":
|
|
151
|
-
|
|
158
|
+
"content-end": i(() => [
|
|
159
|
+
u(e.$slots, "content-end")
|
|
152
160
|
]),
|
|
153
|
-
"sidebar-start":
|
|
154
|
-
|
|
161
|
+
"sidebar-start": i(() => [
|
|
162
|
+
u(e.$slots, "sidebar-start")
|
|
155
163
|
]),
|
|
156
|
-
"sidebar-end":
|
|
157
|
-
|
|
164
|
+
"sidebar-end": i(() => [
|
|
165
|
+
u(e.$slots, "sidebar-end")
|
|
158
166
|
]),
|
|
159
|
-
footer:
|
|
160
|
-
|
|
167
|
+
footer: i(() => [
|
|
168
|
+
u(e.$slots, "footer")
|
|
161
169
|
]),
|
|
162
170
|
_: 3
|
|
163
171
|
}, 8, ["configuration", "isDark", "store"])
|
|
@@ -165,5 +173,5 @@ const De = /* @__PURE__ */ R({
|
|
|
165
173
|
}
|
|
166
174
|
});
|
|
167
175
|
export {
|
|
168
|
-
|
|
176
|
+
Me as default
|
|
169
177
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./IntroductionLayout.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2f5c2779"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-secrets.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-request-example-block/helpers/get-secrets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-secrets.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-request-example-block/helpers/get-secrets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAGxG,4CAA4C;AAC5C,eAAO,MAAM,UAAU,GAAI,iBAAiB,oBAAoB,EAAE,KAAG,MAAM,EAqBvD,CAAA"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const p = (t) => t.flatMap((r) => r.type === "apiKey" ? r["x-scalar-secret-token"] : r?.type === "http" ? [
|
|
1
|
+
import { encode as e } from "js-base64";
|
|
2
|
+
const l = (t) => t.flatMap((r) => r.type === "apiKey" ? r["x-scalar-secret-token"] : r?.type === "http" ? [
|
|
4
3
|
r["x-scalar-secret-token"],
|
|
5
4
|
r["x-scalar-secret-username"],
|
|
6
5
|
r["x-scalar-secret-password"],
|
|
7
|
-
|
|
8
|
-
] : r.type === "oauth2" ? Object.values(r.flows).map((a) => a["x-scalar-secret-token"]) : []).filter(
|
|
6
|
+
e(`${r["x-scalar-secret-username"]}:${r["x-scalar-secret-password"]}`)
|
|
7
|
+
] : r.type === "oauth2" ? Object.values(r.flows).map((a) => a["x-scalar-secret-token"]) : []).filter(Boolean);
|
|
9
8
|
export {
|
|
10
|
-
|
|
9
|
+
l as getSecrets
|
|
11
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-configuration.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/map-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAG9D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,OAAO,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"map-configuration.d.ts","sourceRoot":"","sources":["../../../src/v2/helpers/map-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAG9D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,OAAO,CAAC,yBAAyB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAiD+o4C,CAAC;;;gBAAyH,CAAC;;;;;mBAAsS,CAAC;uBAAyC,CAAC;;;gBAA1N,CAAC;;;;kBAA4W,CAAC;;;CADzz5C,CAAA"}
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.36.
|
|
23
|
+
"version": "1.36.2",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=20"
|
|
26
26
|
},
|
|
@@ -56,23 +56,23 @@
|
|
|
56
56
|
"type-fest": "^4.41.0",
|
|
57
57
|
"vue": "^3.5.17",
|
|
58
58
|
"zod": "3.24.1",
|
|
59
|
-
"@scalar/api-client": "2.
|
|
60
|
-
"@scalar/components": "0.14.36",
|
|
61
|
-
"@scalar/helpers": "0.0.11",
|
|
59
|
+
"@scalar/api-client": "2.6.1",
|
|
62
60
|
"@scalar/code-highlight": "0.2.0",
|
|
61
|
+
"@scalar/components": "0.14.38",
|
|
62
|
+
"@scalar/helpers": "0.0.11",
|
|
63
63
|
"@scalar/icons": "0.4.7",
|
|
64
|
-
"@scalar/json-magic": "0.5.
|
|
64
|
+
"@scalar/json-magic": "0.5.2",
|
|
65
65
|
"@scalar/object-utils": "1.2.7",
|
|
66
|
-
"@scalar/oas-utils": "0.4.31",
|
|
67
|
-
"@scalar/openapi-parser": "0.21.1",
|
|
68
66
|
"@scalar/openapi-types": "0.3.7",
|
|
67
|
+
"@scalar/oas-utils": "0.4.33",
|
|
69
68
|
"@scalar/openapi-upgrader": "0.1.0",
|
|
70
|
-
"@scalar/
|
|
71
|
-
"@scalar/
|
|
69
|
+
"@scalar/themes": "0.13.19",
|
|
70
|
+
"@scalar/openapi-parser": "0.21.2",
|
|
72
71
|
"@scalar/types": "0.2.16",
|
|
73
72
|
"@scalar/use-hooks": "0.2.5",
|
|
73
|
+
"@scalar/snippetz": "0.4.10",
|
|
74
74
|
"@scalar/use-toasts": "0.8.0",
|
|
75
|
-
"@scalar/workspace-store": "0.
|
|
75
|
+
"@scalar/workspace-store": "0.16.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@hono/node-server": "^1.11.0",
|
|
@@ -92,10 +92,10 @@
|
|
|
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.17",
|
|
96
95
|
"@scalar/build-tooling": "0.2.7",
|
|
97
96
|
"@scalar/galaxy": "0.5.8",
|
|
98
|
-
"@scalar/react-renderer": "0.2.1"
|
|
97
|
+
"@scalar/react-renderer": "0.2.1",
|
|
98
|
+
"@scalar/core": "0.3.17"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"build": "pnpm build:default && pnpm build:standalone && pnpm types:build && tsc-alias -p tsconfig.build.json",
|