Name Description Size Coverage
useWidgetLabels.jsx Returns the customize panel toggle label of each widget by widget id, or null while the Fluent labels are still resolving. Widgets with a customizeL10nId are labeled by the .label attribute in that message, and extension widgets without one are labeled with their name. A label that does not resolve maps to its widget id. Without document.l10n (jest) the map is built on the first render, with each customizeL10nId widget labeled with its widget id: an asynchronous fallback would update state after a test's act() and fail whichever suite mounted the panel. @param {{ id: string, customizeL10nId?: string, name?: string }[]} widgets @returns {Map<string, string>|null} 2823 -
WidgetsManagementPanel.jsx 5088 -