@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
35 lines (34 loc) • 1.15 kB
TypeScript
import { LocalizationManager } from './localization-manager';
/**
* Class for asset manager
*/
export declare class AssetManager {
private localizationManager;
private _cssV2?;
private _reactExtension?;
/**
* Getter for cssV2.
*/
get cssV2(): boolean;
/**
* Getter for if the target is React.
*/
get reactExtension(): boolean;
private readonly fontsKeyword;
constructor(localizationManager: LocalizationManager<void>, _cssV2?: boolean, _reactExtension?: boolean);
setTheme(theme: string): void;
/**
* Injects dynamic assets (css, js, etc..) from the shell
* This is only meant to be called once during an extensions lifecycle (during init)
* @param theme the current theme name
* @param assets the assets to process
*/
loadAssets(theme: string, assets: MsftSme.MsftSmeAssets): void;
protected appendAssets(cssAssets: string[]): void;
/**
* Only push the fonts and let the extension use cssV2.
* @param cssAssets the input cssV1 assets.
* @returns the cssAssetsV2 including fonts.css only.
*/
private updateCssV2Assets;
}