Address review on plugin docs and web plugins map

Point the invalid configuration section at the features flags and
config validators instead of throwing from the entrypoint, use const in
the examples, add a metrics hook example including a returned registry,
and mark Control.plugins as deprecated.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
bbassieandClaude Fable 5.1 committed 2026-09-12 08:29:16 +00:00
1 parent 7122cbccf8
commit 8363b221bb
2 files changed
+45 -11

No files matched your search

+1
View File
@@ -52,6 +52,7 @@ export class Control extends lib.Link {
accountRoles: lib.AccountRole[] | null = null;
public hooks = new WebPlugin.WebHooks(logger);
/** @deprecated Only holds plugins using the class export, use loadedPlugins and hooks instead */
public plugins = new Map<string, WebPlugin.BaseWebPlugin>();
public loadedPlugins = new Map<string, lib.PluginWebpackEnvInfo>();
public inputComponents = new Map<string, WebPlugin.InputComponent>();