@scalar/api-reference 1.44.20 → 1.44.24
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 +133 -0
- package/dist/browser/standalone.js +17540 -17460
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Content/Auth/Auth.vue.d.ts.map +1 -1
- package/dist/components/Content/Auth/Auth.vue.js +2 -1
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue2.js +1 -3
- package/dist/helpers/index.d.ts +2 -0
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +5 -0
- package/dist/helpers/storage.d.ts +14 -14
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +2 -0
- package/dist/standalone/lib/html-api.js +1 -1
- package/dist/style.css +111 -98
- package/package.json +16 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Auth.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Auth/Auth.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Auth.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Auth/Auth.vue"],"names":[],"mappings":"AAqGA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,yDAAyD,CAAA;AAKhE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAKlF,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,IAAI,CACX,4BAA4B,EAC5B,gBAAgB,GAAG,aAAa,GAAG,UAAU,CAC9C,CAAA;IACD,SAAS,EAAE,SAAS,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAA;IACvC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;AAkHJ,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -57,6 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
57
|
key: 0,
|
|
58
58
|
environment: __props.environment,
|
|
59
59
|
eventBus: __props.eventBus,
|
|
60
|
+
createAnySecurityScheme: __props.options.authentication?.createAnySecurityScheme,
|
|
60
61
|
isStatic: "",
|
|
61
62
|
layout: "reference",
|
|
62
63
|
meta: { type: "document" },
|
|
@@ -67,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
68
|
selectedSecurity: selectedSecurity.value,
|
|
68
69
|
server: __props.selectedServer,
|
|
69
70
|
title: "Authentication"
|
|
70
|
-
}, null, 8, ["environment", "eventBus", "persistAuth", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "server"])) : createCommentVNode("", true);
|
|
71
|
+
}, null, 8, ["environment", "eventBus", "createAnySecurityScheme", "persistAuth", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "server"])) : createCommentVNode("", true);
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
74
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AA2SA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAEf,MAAM,8DAA8D,CAAA;AAIrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAKxE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,GAAG,cAAc,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,OAAO,EAAE,IAAI,CACX,cAAc,CAAC,SAAS,CAAC,EACzB,8BAA8B,GAAG,yBAAyB,CAC3D,CAAA;CACF,CAAC;AAyWF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ParameterListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const ParameterListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const ParameterListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-be55ce3a"]]);
|
|
5
5
|
export {
|
|
6
6
|
ParameterListItem as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, createElementBlock, openBlock, createVNode, unref, withCtx, createBlock, createCommentVNode, normalizeClass, createElementVNode } from "vue";
|
|
2
2
|
import { Disclosure, DisclosureButton, DisclosurePanel } from "@headlessui/vue";
|
|
3
3
|
import { ScalarWrappingText, ScalarMarkdownSummary, ScalarMarkdown } from "@scalar/components";
|
|
4
|
-
import { isDefined } from "@scalar/helpers/array/is-defined";
|
|
5
4
|
import { ScalarIconCaretRight } from "@scalar/icons";
|
|
6
5
|
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
7
6
|
import SchemaProperty from "../../../components/Content/Schema/SchemaProperty.vue.js";
|
|
@@ -40,16 +39,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
39
|
const baseSchema = content.value ? content.value?.[selectedContentType.value]?.schema : schema.value;
|
|
41
40
|
const deprecated = "deprecated" in __props.parameter ? __props.parameter.deprecated : schema.value?.deprecated;
|
|
42
41
|
const paramExamples = "examples" in __props.parameter ? __props.parameter.examples : {};
|
|
43
|
-
const arrayExamples = schema.value?.examples ?? [];
|
|
44
42
|
const recordExamples = Object.values({
|
|
45
43
|
...paramExamples,
|
|
46
44
|
...content.value?.[selectedContentType.value]?.examples
|
|
47
45
|
});
|
|
46
|
+
const arrayExamples = schema.value?.examples ?? (recordExamples.length === 0 && "example" in __props.parameter ? [__props.parameter.example] : []);
|
|
48
47
|
const examples = [...recordExamples, ...arrayExamples];
|
|
49
48
|
return {
|
|
50
49
|
...getResolvedRef(baseSchema),
|
|
51
50
|
deprecated,
|
|
52
|
-
..."example" in __props.parameter && isDefined(__props.parameter.example) && { example: __props.parameter.example },
|
|
53
51
|
examples
|
|
54
52
|
};
|
|
55
53
|
});
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export { getSystemModePreference } from './color-mode.js';
|
|
|
2
2
|
export { downloadDocument } from './download.js';
|
|
3
3
|
export { getIdFromUrl, makeUrlFromId } from './id-routing.js';
|
|
4
4
|
export { blockIntersection, firstLazyLoadComplete, intersectionEnabled, scrollToLazy } from './lazy-bus.js';
|
|
5
|
+
export { loadAuthFromStorage, loadClientFromStorage } from './load-from-perssistance.js';
|
|
6
|
+
export { mapConfigPlugins } from './map-config-plugins.js';
|
|
5
7
|
export { mapConfigToWorkspaceStore } from './map-config-to-workspace-store.js';
|
|
6
8
|
export { type NormalizedConfiguration, normalizeConfigurations } from './normalize-configurations.js';
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACxG,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,KAAK,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACxG,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,KAAK,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA"}
|
package/dist/helpers/index.js
CHANGED
|
@@ -2,6 +2,8 @@ import { getSystemModePreference } from "./color-mode.js";
|
|
|
2
2
|
import { downloadDocument } from "./download.js";
|
|
3
3
|
import { getIdFromUrl, makeUrlFromId } from "./id-routing.js";
|
|
4
4
|
import { blockIntersection, firstLazyLoadComplete, intersectionEnabled, scrollToLazy } from "./lazy-bus.js";
|
|
5
|
+
import { loadAuthFromStorage, loadClientFromStorage } from "./load-from-perssistance.js";
|
|
6
|
+
import { mapConfigPlugins } from "./map-config-plugins.js";
|
|
5
7
|
import { mapConfigToWorkspaceStore } from "./map-config-to-workspace-store.js";
|
|
6
8
|
import { normalizeConfigurations } from "./normalize-configurations.js";
|
|
7
9
|
export {
|
|
@@ -11,7 +13,10 @@ export {
|
|
|
11
13
|
getIdFromUrl,
|
|
12
14
|
getSystemModePreference,
|
|
13
15
|
intersectionEnabled,
|
|
16
|
+
loadAuthFromStorage,
|
|
17
|
+
loadClientFromStorage,
|
|
14
18
|
makeUrlFromId,
|
|
19
|
+
mapConfigPlugins,
|
|
15
20
|
mapConfigToWorkspaceStore,
|
|
16
21
|
normalizeConfigurations,
|
|
17
22
|
scrollToLazy
|
|
@@ -24,20 +24,6 @@ export declare const authStorage: () => {
|
|
|
24
24
|
* Retrieves and coerces the authentication schemes stored in local storage.
|
|
25
25
|
*/
|
|
26
26
|
getAuth: (slug: string) => {
|
|
27
|
-
selected: {
|
|
28
|
-
path?: {
|
|
29
|
-
[x: string]: {
|
|
30
|
-
[x: string]: {
|
|
31
|
-
selectedIndex: number;
|
|
32
|
-
selectedSchemes: {}[];
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
} | undefined;
|
|
36
|
-
document?: {
|
|
37
|
-
selectedIndex: number;
|
|
38
|
-
selectedSchemes: {}[];
|
|
39
|
-
} | undefined;
|
|
40
|
-
};
|
|
41
27
|
secrets: {
|
|
42
28
|
[x: string]: ({
|
|
43
29
|
type: "apiKey";
|
|
@@ -212,6 +198,20 @@ export declare const authStorage: () => {
|
|
|
212
198
|
type: "openIdConnect";
|
|
213
199
|
};
|
|
214
200
|
};
|
|
201
|
+
selected: {
|
|
202
|
+
path?: {
|
|
203
|
+
[x: string]: {
|
|
204
|
+
[x: string]: {
|
|
205
|
+
selectedIndex: number;
|
|
206
|
+
selectedSchemes: {}[];
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
} | undefined;
|
|
210
|
+
document?: {
|
|
211
|
+
selectedIndex: number;
|
|
212
|
+
selectedSchemes: {}[];
|
|
213
|
+
} | undefined;
|
|
214
|
+
};
|
|
215
215
|
};
|
|
216
216
|
/**
|
|
217
217
|
* Stores the authentication schemes in local storage.
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { PLUGIN_MANAGER_SYMBOL, usePluginManager } from '../plugins/hooks/usePluginManager.js';
|
|
2
2
|
export { type ApiReferencePlugin, type PluginManager, createPluginManager, } from '../plugins/plugin-manager.js';
|
|
3
|
+
export { persistencePlugin } from './persistance-plugin.js';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAC1F,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,mBAAmB,GACpB,MAAM,0BAA0B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAC1F,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,mBAAmB,GACpB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA"}
|
package/dist/plugins/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PLUGIN_MANAGER_SYMBOL, usePluginManager } from "./hooks/usePluginManager.js";
|
|
2
2
|
import { createPluginManager } from "./plugin-manager.js";
|
|
3
|
+
import { persistencePlugin } from "./persistance-plugin.js";
|
|
3
4
|
export {
|
|
4
5
|
PLUGIN_MANAGER_SYMBOL,
|
|
5
6
|
createPluginManager,
|
|
7
|
+
persistencePlugin,
|
|
6
8
|
usePluginManager
|
|
7
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createHead } from "@unhead/vue";
|
|
1
|
+
import { createHead } from "@unhead/vue/client";
|
|
2
2
|
import { reactive, createApp, h } from "vue";
|
|
3
3
|
import ApiReference from "../../components/ApiReference.vue.js";
|
|
4
4
|
const createApiReference = (elementOrSelectorOrConfig, optionalConfiguration) => {
|