@unocss/core 0.30.0 → 0.30.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -361,7 +361,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
361
361
  };
362
362
  }
363
363
 
364
- const version = "0.30.0";
364
+ const version = "0.30.3";
365
365
 
366
366
  class UnoGenerator {
367
367
  constructor(userConfig = {}, defaults = {}) {
@@ -447,7 +447,7 @@ class UnoGenerator {
447
447
  }
448
448
  this._cache.set(cacheKey, null);
449
449
  }
450
- async generate(input, {
450
+ async generate(input = "", {
451
451
  id,
452
452
  scope,
453
453
  preflights = true,
package/dist/index.d.ts CHANGED
@@ -14,7 +14,7 @@ declare class UnoGenerator {
14
14
  applyExtractors(code: string, id?: string, set?: Set<string>): Promise<Set<string>>;
15
15
  makeContext(raw: string, applied: VariantMatchedResult): RuleContext<{}>;
16
16
  parseToken(raw: string, alias?: string): Promise<StringifiedUtil[] | null | undefined>;
17
- generate(input: string | Set<string>, { id, scope, preflights, safelist, minify, }?: GenerateOptions): Promise<GenerateResult>;
17
+ generate(input?: string | Set<string>, { id, scope, preflights, safelist, minify, }?: GenerateOptions): Promise<GenerateResult>;
18
18
  matchVariants(raw: string, current?: string): VariantMatchedResult;
19
19
  applyVariants(parsed: ParsedUtil, variantHandlers?: VariantHandler[], raw?: string): UtilObject;
20
20
  constructCustomCSS(context: Readonly<RuleContext>, body: CSSObject | CSSEntries, overrideSelector?: string): string;
package/dist/index.mjs CHANGED
@@ -357,7 +357,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
357
357
  };
358
358
  }
359
359
 
360
- const version = "0.30.0";
360
+ const version = "0.30.3";
361
361
 
362
362
  class UnoGenerator {
363
363
  constructor(userConfig = {}, defaults = {}) {
@@ -443,7 +443,7 @@ class UnoGenerator {
443
443
  }
444
444
  this._cache.set(cacheKey, null);
445
445
  }
446
- async generate(input, {
446
+ async generate(input = "", {
447
447
  id,
448
448
  scope,
449
449
  preflights = true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.30.0",
3
+ "version": "0.30.3",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "keywords": [
6
6
  "unocss",