@unocss/core
Advanced tools
Comparing version 0.65.2 to 0.65.3
@@ -139,11 +139,11 @@ import MagicString from 'magic-string'; | ||
defaults: UserConfigDefaults<Theme>; | ||
version: string; | ||
private _cache; | ||
readonly version: string; | ||
readonly events: Emitter<{ | ||
config: (config: ResolvedConfig<Theme>) => void; | ||
}>; | ||
config: ResolvedConfig<Theme>; | ||
cache: Map<string, StringifiedUtil<Theme>[] | null>; | ||
blocked: Set<string>; | ||
parentOrders: Map<string, number>; | ||
activatedRules: Set<Rule<Theme>>; | ||
events: Emitter<{ | ||
config: (config: ResolvedConfig<Theme>) => void; | ||
}>; | ||
protected constructor(userConfig?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>); | ||
@@ -776,11 +776,25 @@ static create<Theme extends object = object>(userConfig?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>): Promise<UnoGeneratorInternal<Theme>>; | ||
interface UnocssPluginContext<Config extends UserConfig = UserConfig> { | ||
/** | ||
* Singleton promise for config loading | ||
*/ | ||
ready: Promise<LoadConfigResult<Config>>; | ||
/** | ||
* The UnoCSS generator instance. Should be used after `ready` resolved. | ||
*/ | ||
uno: UnoGenerator; | ||
/** All tokens scanned */ | ||
/** | ||
* All tokens scanned | ||
*/ | ||
tokens: Set<string>; | ||
/** Map for all module's raw content */ | ||
/** | ||
* Map for all module's raw content | ||
*/ | ||
modules: BetterMap<string, string>; | ||
/** Module IDs that been affected by UnoCSS */ | ||
/** | ||
* Module IDs that been affected by UnoCSS | ||
*/ | ||
affectedModules: Set<string>; | ||
/** Pending promises */ | ||
/** | ||
* Pending promises | ||
*/ | ||
tasks: Promise<any>[]; | ||
@@ -1065,2 +1079,3 @@ /** | ||
declare function definePreset<Options extends object | undefined = undefined, Theme extends object = object>(preset: PresetFactory<Theme, Options>): PresetFactory<Theme, Options>; | ||
declare function definePreset<Options extends object | undefined = undefined, Theme extends object = object>(preset: PresetFactoryAwaitable<Theme, Options>): PresetFactoryAwaitable<Theme, Options>; | ||
declare function definePreset<Theme extends object = object>(preset: Preset<Theme>): Preset<Theme>; | ||
@@ -1067,0 +1082,0 @@ |
{ | ||
"name": "@unocss/core", | ||
"type": "module", | ||
"version": "0.65.2", | ||
"version": "0.65.3", | ||
"description": "The instant on-demand Atomic CSS engine.", | ||
@@ -6,0 +6,0 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
125433
2388