@unocss/core 0.55.6 → 0.55.7
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 +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -613,7 +613,7 @@ function mergeAutocompleteShorthands(shorthands) {
|
|
|
613
613
|
);
|
|
614
614
|
}
|
|
615
615
|
|
|
616
|
-
const version = "0.55.
|
|
616
|
+
const version = "0.55.7";
|
|
617
617
|
|
|
618
618
|
var __defProp = Object.defineProperty;
|
|
619
619
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -1103,7 +1103,7 @@ class UnoGenerator {
|
|
|
1103
1103
|
}).flat(2).filter(Boolean));
|
|
1104
1104
|
}
|
|
1105
1105
|
isBlocked(raw) {
|
|
1106
|
-
return !raw || this.config.blocklist.some((e2) => isString(e2) ? e2 === raw : e2.test(raw));
|
|
1106
|
+
return !raw || this.config.blocklist.some((e2) => typeof e2 === "function" ? e2(raw) : isString(e2) ? e2 === raw : e2.test(raw));
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
function createGenerator(config, defaults) {
|
package/dist/index.d.cts
CHANGED
|
@@ -362,7 +362,7 @@ interface Preflight<Theme extends object = object> {
|
|
|
362
362
|
getCSS: (context: PreflightContext<Theme>) => Promise<string | undefined> | string | undefined;
|
|
363
363
|
layer?: string;
|
|
364
364
|
}
|
|
365
|
-
type BlocklistRule = string | RegExp;
|
|
365
|
+
type BlocklistRule = string | RegExp | ((selector: string) => boolean | null | undefined);
|
|
366
366
|
interface VariantHandlerContext {
|
|
367
367
|
/**
|
|
368
368
|
* Rewrite the output selector. Often be used to append parents.
|
package/dist/index.d.mts
CHANGED
|
@@ -362,7 +362,7 @@ interface Preflight<Theme extends object = object> {
|
|
|
362
362
|
getCSS: (context: PreflightContext<Theme>) => Promise<string | undefined> | string | undefined;
|
|
363
363
|
layer?: string;
|
|
364
364
|
}
|
|
365
|
-
type BlocklistRule = string | RegExp;
|
|
365
|
+
type BlocklistRule = string | RegExp | ((selector: string) => boolean | null | undefined);
|
|
366
366
|
interface VariantHandlerContext {
|
|
367
367
|
/**
|
|
368
368
|
* Rewrite the output selector. Often be used to append parents.
|
package/dist/index.d.ts
CHANGED
|
@@ -362,7 +362,7 @@ interface Preflight<Theme extends object = object> {
|
|
|
362
362
|
getCSS: (context: PreflightContext<Theme>) => Promise<string | undefined> | string | undefined;
|
|
363
363
|
layer?: string;
|
|
364
364
|
}
|
|
365
|
-
type BlocklistRule = string | RegExp;
|
|
365
|
+
type BlocklistRule = string | RegExp | ((selector: string) => boolean | null | undefined);
|
|
366
366
|
interface VariantHandlerContext {
|
|
367
367
|
/**
|
|
368
368
|
* Rewrite the output selector. Often be used to append parents.
|
package/dist/index.mjs
CHANGED
|
@@ -611,7 +611,7 @@ function mergeAutocompleteShorthands(shorthands) {
|
|
|
611
611
|
);
|
|
612
612
|
}
|
|
613
613
|
|
|
614
|
-
const version = "0.55.
|
|
614
|
+
const version = "0.55.7";
|
|
615
615
|
|
|
616
616
|
var __defProp = Object.defineProperty;
|
|
617
617
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -1101,7 +1101,7 @@ class UnoGenerator {
|
|
|
1101
1101
|
}).flat(2).filter(Boolean));
|
|
1102
1102
|
}
|
|
1103
1103
|
isBlocked(raw) {
|
|
1104
|
-
return !raw || this.config.blocklist.some((e2) => isString(e2) ? e2 === raw : e2.test(raw));
|
|
1104
|
+
return !raw || this.config.blocklist.some((e2) => typeof e2 === "function" ? e2(raw) : isString(e2) ? e2 === raw : e2.test(raw));
|
|
1105
1105
|
}
|
|
1106
1106
|
}
|
|
1107
1107
|
function createGenerator(config, defaults) {
|