@unocss/core 0.45.21 → 0.45.23

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
@@ -416,7 +416,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
416
416
  };
417
417
  }
418
418
 
419
- const version = "0.45.21";
419
+ const version = "0.45.23";
420
420
 
421
421
  class UnoGenerator {
422
422
  constructor(userConfig = {}, defaults = {}) {
package/dist/index.d.ts CHANGED
@@ -437,7 +437,7 @@ interface ConfigBase<Theme extends {} = {}> {
437
437
  shortcuts?: UserShortcuts<Theme>;
438
438
  /**
439
439
  * Rules to exclude the selectors for your design system (to narrow down the possibilities).
440
- * Combining `warnExcluded` options it can also helps you identify wrong usages.
440
+ * Combining `warnExcluded` options it can also help you identify wrong usages.
441
441
  */
442
442
  blocklist?: BlocklistRule[];
443
443
  /**
@@ -470,7 +470,7 @@ interface ConfigBase<Theme extends {} = {}> {
470
470
  */
471
471
  preprocess?: Arrayable<Preprocessor>;
472
472
  /**
473
- * Process the generate utils object
473
+ * Postprocess the generate utils object
474
474
  */
475
475
  postprocess?: Arrayable<Postprocessor>;
476
476
  /**
@@ -603,6 +603,14 @@ interface UserOnlyOptions<Theme extends {} = {}> {
603
603
  */
604
604
  envMode?: 'dev' | 'build';
605
605
  }
606
+ /**
607
+ * For unocss-cli config
608
+ */
609
+ interface CliOptions {
610
+ cli?: {
611
+ entry?: CliEntryItem | CliEntryItem[];
612
+ };
613
+ }
606
614
  interface UnocssPluginContext<Config extends UserConfig = UserConfig> {
607
615
  ready: Promise<LoadConfigResult<Config>>;
608
616
  uno: UnoGenerator;
@@ -665,7 +673,7 @@ interface PluginOptions {
665
673
  */
666
674
  configFile?: string | false;
667
675
  /**
668
- * List of files that will also triggers config reloads
676
+ * List of files that will also trigger config reloads
669
677
  */
670
678
  configDeps?: string[];
671
679
  /**
@@ -681,7 +689,7 @@ interface PluginOptions {
681
689
  */
682
690
  transformers?: SourceCodeTransformer[];
683
691
  }
684
- interface UserConfig<Theme extends {} = {}> extends ConfigBase<Theme>, UserOnlyOptions<Theme>, GeneratorOptions, PluginOptions {
692
+ interface UserConfig<Theme extends {} = {}> extends ConfigBase<Theme>, UserOnlyOptions<Theme>, GeneratorOptions, PluginOptions, CliOptions {
685
693
  }
686
694
  interface UserConfigDefaults<Theme extends {} = {}> extends ConfigBase<Theme>, UserOnlyOptions<Theme> {
687
695
  }
@@ -738,6 +746,10 @@ declare type PreparedRule = readonly [
738
746
  body: string,
739
747
  noMerge: boolean
740
748
  ];
749
+ interface CliEntryItem {
750
+ patterns: string[];
751
+ outFile: string;
752
+ }
741
753
  interface UtilObject {
742
754
  selector: string;
743
755
  entries: CSSEntries;
@@ -776,4 +788,4 @@ declare const extractorSplit: Extractor;
776
788
 
777
789
  declare const extractorSvelte: Extractor;
778
790
 
779
- export { ArgumentType, Arrayable, AutoCompleteExtractor, AutoCompleteExtractorContext, AutoCompleteExtractorResult, AutoCompleteFunction, AutoCompleteTemplate, Awaitable, BetterMap, BlocklistRule, CONTROL_SHORTCUT_NO_MERGE, CSSColorValue, CSSEntries, CSSObject, CSSValue, CSSValues, ConfigBase, DeepPartial, DynamicMatcher, DynamicRule, DynamicShortcut, DynamicShortcutMatcher, Extractor, ExtractorContext, FilterPattern, FlatObjectTuple, GenerateOptions, GenerateResult, GeneratorOptions, ParsedColorValue, ParsedUtil, PartialByKeys, PluginOptions, Postprocessor, Preflight, PreflightContext, PreparedRule, Preprocessor, Preset, PresetOptions, RGBAColorValue, RawUtil, Replacement, RequiredByKey, ResolvedConfig, RestArgs, Rule, RuleContext, RuleMeta, Shift, Shortcut, ShortcutValue, SourceCodeTransformer, SourceCodeTransformerEnforce, SourceMap, StaticRule, StaticShortcut, StaticShortcutMap, StringifiedUtil, SuggestResult, ThemeExtender, TransformResult, TwoKeyMap, UnoGenerator, UnocssPluginContext, UserConfig, UserConfigDefaults, UserOnlyOptions, UserShortcuts, UtilObject, ValueHandler, ValueHandlerCallback, Variant, VariantContext, VariantFunction, VariantHandler, VariantHandlerContext, VariantMatchedResult, VariantObject, attributifyRE, clearIdenticalEntries, clone, createGenerator, createValueHandler, cssIdRE, e, entriesToCss, escapeRegExp, escapeSelector, expandVariantGroup, extractorSplit, extractorSvelte, hasScopePlaceholder, isAttributifySelector, isObject, isRawUtil, isStaticRule, isStaticShortcut, isString, isValidSelector, mergeDeep, movePseudoElementsEnd, noop, normalizeCSSEntries, normalizeCSSValues, normalizeVariant, notNull, regexClassGroup, regexScopePlaceholder, toArray, toEscapedSelector, uniq, validateFilterRE, warnOnce, withLayer };
791
+ export { ArgumentType, Arrayable, AutoCompleteExtractor, AutoCompleteExtractorContext, AutoCompleteExtractorResult, AutoCompleteFunction, AutoCompleteTemplate, Awaitable, BetterMap, BlocklistRule, CONTROL_SHORTCUT_NO_MERGE, CSSColorValue, CSSEntries, CSSObject, CSSValue, CSSValues, CliEntryItem, CliOptions, ConfigBase, DeepPartial, DynamicMatcher, DynamicRule, DynamicShortcut, DynamicShortcutMatcher, Extractor, ExtractorContext, FilterPattern, FlatObjectTuple, GenerateOptions, GenerateResult, GeneratorOptions, ParsedColorValue, ParsedUtil, PartialByKeys, PluginOptions, Postprocessor, Preflight, PreflightContext, PreparedRule, Preprocessor, Preset, PresetOptions, RGBAColorValue, RawUtil, Replacement, RequiredByKey, ResolvedConfig, RestArgs, Rule, RuleContext, RuleMeta, Shift, Shortcut, ShortcutValue, SourceCodeTransformer, SourceCodeTransformerEnforce, SourceMap, StaticRule, StaticShortcut, StaticShortcutMap, StringifiedUtil, SuggestResult, ThemeExtender, TransformResult, TwoKeyMap, UnoGenerator, UnocssPluginContext, UserConfig, UserConfigDefaults, UserOnlyOptions, UserShortcuts, UtilObject, ValueHandler, ValueHandlerCallback, Variant, VariantContext, VariantFunction, VariantHandler, VariantHandlerContext, VariantMatchedResult, VariantObject, attributifyRE, clearIdenticalEntries, clone, createGenerator, createValueHandler, cssIdRE, e, entriesToCss, escapeRegExp, escapeSelector, expandVariantGroup, extractorSplit, extractorSvelte, hasScopePlaceholder, isAttributifySelector, isObject, isRawUtil, isStaticRule, isStaticShortcut, isString, isValidSelector, mergeDeep, movePseudoElementsEnd, noop, normalizeCSSEntries, normalizeCSSValues, normalizeVariant, notNull, regexClassGroup, regexScopePlaceholder, toArray, toEscapedSelector, uniq, validateFilterRE, warnOnce, withLayer };
package/dist/index.mjs CHANGED
@@ -412,7 +412,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
412
412
  };
413
413
  }
414
414
 
415
- const version = "0.45.21";
415
+ const version = "0.45.23";
416
416
 
417
417
  class UnoGenerator {
418
418
  constructor(userConfig = {}, defaults = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.45.21",
3
+ "version": "0.45.23",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",