Plugin Extensions: Custom limits for extensions-per-plugin (#69430)
* feat(plugins): remove global limit on extensions per placement * feat: add a way to limit extension per plugin at the getter * test(plugins): fix failing getPluginExtensions test * refactor(panelmenu): put back limit of 2 extensions per plugin * tests: add a test for checking all extensions are returned by default --------- Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
This commit is contained in:
co-authored by
Jack Westbrook
parent
d25cea90b0
commit
7b2bd48677
@@ -5,9 +5,11 @@ import { isPluginExtensionComponent, isPluginExtensionLink } from './utils';
|
||||
export type GetPluginExtensions<T = PluginExtension> = ({
|
||||
extensionPointId,
|
||||
context,
|
||||
limitPerPlugin,
|
||||
}: {
|
||||
extensionPointId: string;
|
||||
context?: object | Record<string | symbol, unknown>;
|
||||
limitPerPlugin?: number;
|
||||
}) => {
|
||||
extensions: T[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user