@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 +1 -1
- package/dist/index.d.ts +17 -5
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
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
|
|
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
|
-
*
|
|
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
|
|
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