@unocss/core 66.3.2 → 66.4.0
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.d.mts +2 -23
- package/dist/index.d.ts +2 -23
- package/dist/index.mjs +1 -8
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -926,13 +926,6 @@ interface ContentOptions {
|
|
|
926
926
|
*/
|
|
927
927
|
exclude?: FilterPattern;
|
|
928
928
|
};
|
|
929
|
-
/**
|
|
930
|
-
* @deprecated Renamed to `inline`
|
|
931
|
-
*/
|
|
932
|
-
plain?: (string | {
|
|
933
|
-
code: string;
|
|
934
|
-
id?: string;
|
|
935
|
-
})[];
|
|
936
929
|
}
|
|
937
930
|
/**
|
|
938
931
|
* For other modules to aggregate the options
|
|
@@ -963,21 +956,6 @@ interface PluginOptions {
|
|
|
963
956
|
* The usage extracted from each source will be **merged** together.
|
|
964
957
|
*/
|
|
965
958
|
content?: ContentOptions;
|
|
966
|
-
/** ========== DEPRECATED OPTIONS ========== */
|
|
967
|
-
/**
|
|
968
|
-
* @deprecated Renamed to `content`
|
|
969
|
-
*/
|
|
970
|
-
extraContent?: ContentOptions;
|
|
971
|
-
/**
|
|
972
|
-
* Patterns that filter the files being extracted.
|
|
973
|
-
* @deprecated moved to `content.pipeline.include`
|
|
974
|
-
*/
|
|
975
|
-
include?: FilterPattern;
|
|
976
|
-
/**
|
|
977
|
-
* Patterns that filter the files NOT being extracted.
|
|
978
|
-
* @deprecated moved to `content.pipeline.exclude`
|
|
979
|
-
*/
|
|
980
|
-
exclude?: FilterPattern;
|
|
981
959
|
}
|
|
982
960
|
interface UserConfig<Theme extends object = object> extends ConfigBase<Theme>, UserOnlyOptions<Theme>, GeneratorOptions, PluginOptions, CliOptions {
|
|
983
961
|
}
|
|
@@ -1128,4 +1106,5 @@ declare const defaultSplitRE: RegExp;
|
|
|
1128
1106
|
declare const splitWithVariantGroupRE: RegExp;
|
|
1129
1107
|
declare const extractorSplit: Extractor;
|
|
1130
1108
|
|
|
1131
|
-
export {
|
|
1109
|
+
export { BetterMap, CountableSet, DEFAULT_LAYERS, Emitter, LAYER_DEFAULT, LAYER_IMPORTS, LAYER_PREFLIGHTS, LAYER_SHORTCUTS, TwoKeyMap, UnoGenerator, attributifyRE, clearIdenticalEntries, clone, collapseVariantGroup, createGenerator, createNanoEvents, cssIdRE, defaultSplitRE, definePreset, e, entriesToCss, escapeRegExp, escapeSelector, expandVariantGroup, extractorSplit as extractorDefault, extractorSplit, hasScopePlaceholder, isAttributifySelector, isCountableSet, isObject, isRawUtil, isStaticRule, isStaticShortcut, isString, isValidSelector, makeRegexClassGroup, mergeConfigs, mergeDeep, noop, normalizeCSSEntries, normalizeCSSValues, normalizeVariant, notNull, parseVariantGroup, regexScopePlaceholder, resolveConfig, resolvePreset, resolvePresets, resolveShortcuts, splitWithVariantGroupRE, symbols, toArray, toEscapedSelector, uniq, uniqueBy, validateFilterRE, warnOnce, withLayer };
|
|
1110
|
+
export type { ArgumentType, Arrayable, AutoCompleteExtractor, AutoCompleteExtractorContext, AutoCompleteExtractorResult, AutoCompleteFunction, AutoCompleteTemplate, Awaitable, BaseContext, BlocklistMeta, BlocklistRule, BlocklistValue, CSSEntries, CSSEntriesInput, CSSEntry, CSSObject, CSSObjectInput, CSSValue, CSSValueInput, CSSValues, CliEntryItem, CliOptions, ConfigBase, ContentOptions, ControlSymbols, ControlSymbolsEntry, ControlSymbolsValue, DeepPartial, DynamicMatcher, DynamicRule, DynamicShortcut, DynamicShortcutMatcher, ExtendedTokenInfo, Extractor, ExtractorContext, FilterPattern, FlatObjectTuple, GenerateOptions, GenerateResult, GeneratorOptions, HighlightAnnotation, ObjectToEntry, OutputCssLayersOptions, ParsedUtil, PartialByKeys, PluginOptions, Postprocessor, Preflight, PreflightContext, PreparedRule, Preprocessor, Preset, PresetFactory, PresetFactoryAwaitable, PresetOptions, PresetOrFactory, PresetOrFactoryAwaitable, RawUtil, Replacement, RequiredByKey, ResolvedConfig, RestArgs, Rule, RuleContext, RuleMeta, SafeListContext, Shift, Shortcut, ShortcutInlineValue, ShortcutValue, SourceCodeTransformer, SourceCodeTransformerEnforce, SourceMap, StaticRule, StaticShortcut, StaticShortcutMap, StringifiedUtil, SuggestResult, ThemeExtender, ToArray, UnocssPluginContext, Unsubscribe, UserConfig, UserConfigDefaults, UserOnlyOptions, UserShortcuts, UtilObject, Variant, VariantContext, VariantFunction, VariantHandler, VariantHandlerContext, VariantMatchedResult, VariantObject };
|
package/dist/index.d.ts
CHANGED
|
@@ -926,13 +926,6 @@ interface ContentOptions {
|
|
|
926
926
|
*/
|
|
927
927
|
exclude?: FilterPattern;
|
|
928
928
|
};
|
|
929
|
-
/**
|
|
930
|
-
* @deprecated Renamed to `inline`
|
|
931
|
-
*/
|
|
932
|
-
plain?: (string | {
|
|
933
|
-
code: string;
|
|
934
|
-
id?: string;
|
|
935
|
-
})[];
|
|
936
929
|
}
|
|
937
930
|
/**
|
|
938
931
|
* For other modules to aggregate the options
|
|
@@ -963,21 +956,6 @@ interface PluginOptions {
|
|
|
963
956
|
* The usage extracted from each source will be **merged** together.
|
|
964
957
|
*/
|
|
965
958
|
content?: ContentOptions;
|
|
966
|
-
/** ========== DEPRECATED OPTIONS ========== */
|
|
967
|
-
/**
|
|
968
|
-
* @deprecated Renamed to `content`
|
|
969
|
-
*/
|
|
970
|
-
extraContent?: ContentOptions;
|
|
971
|
-
/**
|
|
972
|
-
* Patterns that filter the files being extracted.
|
|
973
|
-
* @deprecated moved to `content.pipeline.include`
|
|
974
|
-
*/
|
|
975
|
-
include?: FilterPattern;
|
|
976
|
-
/**
|
|
977
|
-
* Patterns that filter the files NOT being extracted.
|
|
978
|
-
* @deprecated moved to `content.pipeline.exclude`
|
|
979
|
-
*/
|
|
980
|
-
exclude?: FilterPattern;
|
|
981
959
|
}
|
|
982
960
|
interface UserConfig<Theme extends object = object> extends ConfigBase<Theme>, UserOnlyOptions<Theme>, GeneratorOptions, PluginOptions, CliOptions {
|
|
983
961
|
}
|
|
@@ -1128,4 +1106,5 @@ declare const defaultSplitRE: RegExp;
|
|
|
1128
1106
|
declare const splitWithVariantGroupRE: RegExp;
|
|
1129
1107
|
declare const extractorSplit: Extractor;
|
|
1130
1108
|
|
|
1131
|
-
export {
|
|
1109
|
+
export { BetterMap, CountableSet, DEFAULT_LAYERS, Emitter, LAYER_DEFAULT, LAYER_IMPORTS, LAYER_PREFLIGHTS, LAYER_SHORTCUTS, TwoKeyMap, UnoGenerator, attributifyRE, clearIdenticalEntries, clone, collapseVariantGroup, createGenerator, createNanoEvents, cssIdRE, defaultSplitRE, definePreset, e, entriesToCss, escapeRegExp, escapeSelector, expandVariantGroup, extractorSplit as extractorDefault, extractorSplit, hasScopePlaceholder, isAttributifySelector, isCountableSet, isObject, isRawUtil, isStaticRule, isStaticShortcut, isString, isValidSelector, makeRegexClassGroup, mergeConfigs, mergeDeep, noop, normalizeCSSEntries, normalizeCSSValues, normalizeVariant, notNull, parseVariantGroup, regexScopePlaceholder, resolveConfig, resolvePreset, resolvePresets, resolveShortcuts, splitWithVariantGroupRE, symbols, toArray, toEscapedSelector, uniq, uniqueBy, validateFilterRE, warnOnce, withLayer };
|
|
1110
|
+
export type { ArgumentType, Arrayable, AutoCompleteExtractor, AutoCompleteExtractorContext, AutoCompleteExtractorResult, AutoCompleteFunction, AutoCompleteTemplate, Awaitable, BaseContext, BlocklistMeta, BlocklistRule, BlocklistValue, CSSEntries, CSSEntriesInput, CSSEntry, CSSObject, CSSObjectInput, CSSValue, CSSValueInput, CSSValues, CliEntryItem, CliOptions, ConfigBase, ContentOptions, ControlSymbols, ControlSymbolsEntry, ControlSymbolsValue, DeepPartial, DynamicMatcher, DynamicRule, DynamicShortcut, DynamicShortcutMatcher, ExtendedTokenInfo, Extractor, ExtractorContext, FilterPattern, FlatObjectTuple, GenerateOptions, GenerateResult, GeneratorOptions, HighlightAnnotation, ObjectToEntry, OutputCssLayersOptions, ParsedUtil, PartialByKeys, PluginOptions, Postprocessor, Preflight, PreflightContext, PreparedRule, Preprocessor, Preset, PresetFactory, PresetFactoryAwaitable, PresetOptions, PresetOrFactory, PresetOrFactoryAwaitable, RawUtil, Replacement, RequiredByKey, ResolvedConfig, RestArgs, Rule, RuleContext, RuleMeta, SafeListContext, Shift, Shortcut, ShortcutInlineValue, ShortcutValue, SourceCodeTransformer, SourceCodeTransformerEnforce, SourceMap, StaticRule, StaticShortcut, StaticShortcutMap, StringifiedUtil, SuggestResult, ThemeExtender, ToArray, UnocssPluginContext, Unsubscribe, UserConfig, UserConfigDefaults, UserOnlyOptions, UserShortcuts, UtilObject, Variant, VariantContext, VariantFunction, VariantHandler, VariantHandlerContext, VariantMatchedResult, VariantObject };
|
package/dist/index.mjs
CHANGED
|
@@ -488,7 +488,6 @@ function mergeContentOptions(optionsArray) {
|
|
|
488
488
|
let pipelineDisabled = false;
|
|
489
489
|
const filesystem = [];
|
|
490
490
|
const inline = [];
|
|
491
|
-
const plain = [];
|
|
492
491
|
for (const options of optionsArray) {
|
|
493
492
|
if (options.pipeline === false) {
|
|
494
493
|
pipelineDisabled = true;
|
|
@@ -507,9 +506,6 @@ function mergeContentOptions(optionsArray) {
|
|
|
507
506
|
if (options.inline) {
|
|
508
507
|
inline.push(options.inline);
|
|
509
508
|
}
|
|
510
|
-
if (options.plain) {
|
|
511
|
-
plain.push(options.plain);
|
|
512
|
-
}
|
|
513
509
|
}
|
|
514
510
|
const mergedContent = {
|
|
515
511
|
pipeline: pipelineDisabled ? false : {
|
|
@@ -523,9 +519,6 @@ function mergeContentOptions(optionsArray) {
|
|
|
523
519
|
if (inline.length) {
|
|
524
520
|
mergedContent.inline = uniq(inline.flat());
|
|
525
521
|
}
|
|
526
|
-
if (plain.length) {
|
|
527
|
-
mergedContent.plain = uniq(plain.flat());
|
|
528
|
-
}
|
|
529
522
|
return mergedContent;
|
|
530
523
|
}
|
|
531
524
|
async function resolveConfig(userConfig = {}, defaults = {}) {
|
|
@@ -656,7 +649,7 @@ function definePreset(preset) {
|
|
|
656
649
|
return preset;
|
|
657
650
|
}
|
|
658
651
|
|
|
659
|
-
const version = "66.
|
|
652
|
+
const version = "66.4.0";
|
|
660
653
|
|
|
661
654
|
const symbols = {
|
|
662
655
|
shortcutsNoMerge: "$$symbol-shortcut-no-merge",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.
|
|
4
|
+
"version": "66.4.0",
|
|
5
5
|
"description": "The instant on-demand Atomic CSS engine.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"homepage": "https://unocss.dev",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/unocss/unocss",
|
|
12
|
+
"url": "git+https://github.com/unocss/unocss.git",
|
|
13
13
|
"directory": "packages-engine/core"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|