@scalar/api-reference 1.28.16 → 1.28.18
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 +32 -0
- package/dist/browser/standalone.js +13908 -13949
- 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/ApiReferenceLayout.vue2.js +93 -85
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +17 -15
- 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 +86 -86
- package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Tag.vue.js +35 -33
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts +9 -0
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts.map +1 -0
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +35 -0
- package/dist/components/SpecificationExtension/SpecificationExtension.vue2.js +4 -0
- package/dist/components/SpecificationExtension/index.d.ts +2 -0
- package/dist/components/SpecificationExtension/index.d.ts.map +1 -0
- package/dist/features/ApiClientModal/useApiClient.d.ts +68 -68
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/hooks/useConfig.d.ts +4 -1
- package/dist/hooks/useConfig.d.ts.map +1 -1
- package/dist/hooks/useMultipleDocuments.d.ts +10 -2
- package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +8 -0
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -0
- package/dist/plugins/hooks/usePluginManager.js +10 -0
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/plugin-manager.d.ts +19 -0
- package/dist/plugins/plugin-manager.d.ts.map +1 -0
- package/dist/plugins/plugin-manager.js +21 -0
- package/dist/style.css +1 -1
- package/package.json +10 -10
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type PluginManager } from '../../plugins/plugin-manager.js';
|
|
2
|
+
import { type InjectionKey } from 'vue';
|
|
3
|
+
export declare const PLUGIN_MANAGER_SYMBOL: InjectionKey<PluginManager>;
|
|
4
|
+
/**
|
|
5
|
+
* Hook to access the plugin manager
|
|
6
|
+
*/
|
|
7
|
+
export declare const usePluginManager: () => PluginManager;
|
|
8
|
+
//# sourceMappingURL=usePluginManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePluginManager.d.ts","sourceRoot":"","sources":["../../../src/plugins/hooks/usePluginManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,0BAA0B,CAAA;AAClF,OAAO,EAAE,KAAK,YAAY,EAAU,MAAM,KAAK,CAAA;AAE/C,eAAO,MAAM,qBAAqB,EAAe,YAAY,CAAC,aAAa,CAAC,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,aASnC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,aAAa,GACnB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ApiReferencePlugin as OriginalApiReferencePlugin, SpecificationExtension } from '@scalar/types/api-reference';
|
|
2
|
+
export type ApiReferencePlugin = OriginalApiReferencePlugin;
|
|
3
|
+
type CreatePluginManagerParams = {
|
|
4
|
+
plugins?: ApiReferencePlugin[];
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Create the plugin manager store
|
|
8
|
+
*
|
|
9
|
+
* This store manages all plugins registered with the API client
|
|
10
|
+
*/
|
|
11
|
+
export declare const createPluginManager: ({ plugins }: CreatePluginManagerParams) => {
|
|
12
|
+
/**
|
|
13
|
+
* Get all extensions with the given name from registered plugins
|
|
14
|
+
*/
|
|
15
|
+
getSpecificationExtensions: (name: `x-${string}`) => SpecificationExtension[];
|
|
16
|
+
};
|
|
17
|
+
export type PluginManager = ReturnType<typeof createPluginManager>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=plugin-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-manager.d.ts","sourceRoot":"","sources":["../../src/plugins/plugin-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,0BAA0B,EAChD,sBAAsB,EACvB,MAAM,6BAA6B,CAAA;AAEpC,MAAM,MAAM,kBAAkB,GAAG,0BAA0B,CAAA;AAE3D,KAAK,yBAAyB,GAAG;IAC/B,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAA;CAC/B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,gBAAsB,yBAAyB;IAU3E;;OAEG;uCACgC,KAAK,MAAM,EAAE,KAAG,sBAAsB,EAAE;CAc9E,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const r = ({ plugins: o = [] }) => {
|
|
2
|
+
const s = /* @__PURE__ */ new Map();
|
|
3
|
+
return o.forEach((e) => {
|
|
4
|
+
const n = e();
|
|
5
|
+
s.set(n.name, n);
|
|
6
|
+
}), {
|
|
7
|
+
/**
|
|
8
|
+
* Get all extensions with the given name from registered plugins
|
|
9
|
+
*/
|
|
10
|
+
getSpecificationExtensions: (e) => {
|
|
11
|
+
const n = [];
|
|
12
|
+
for (const i of s.values())
|
|
13
|
+
for (const t of i.extensions)
|
|
14
|
+
t.name === e && n.push(t);
|
|
15
|
+
return n;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
r as createPluginManager
|
|
21
|
+
};
|