@unocss/core 0.60.2 → 0.60.4

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 CHANGED
@@ -361,7 +361,7 @@ interface BlocklistMeta {
361
361
  /**
362
362
  * Custom message to show why this selector is blocked.
363
363
  */
364
- message?: string;
364
+ message?: string | ((selector: string) => string);
365
365
  }
366
366
  type BlocklistValue = string | RegExp | ((selector: string) => boolean | null | undefined);
367
367
  type BlocklistRule = BlocklistValue | [BlocklistValue, BlocklistMeta];
package/dist/index.d.ts CHANGED
@@ -361,7 +361,7 @@ interface BlocklistMeta {
361
361
  /**
362
362
  * Custom message to show why this selector is blocked.
363
363
  */
364
- message?: string;
364
+ message?: string | ((selector: string) => string);
365
365
  }
366
366
  type BlocklistValue = string | RegExp | ((selector: string) => boolean | null | undefined);
367
367
  type BlocklistRule = BlocklistValue | [BlocklistValue, BlocklistMeta];
package/dist/index.mjs CHANGED
@@ -154,7 +154,7 @@ function isStaticShortcut(sc) {
154
154
 
155
155
  const attributifyRE = /^\[(.+?)~?="(.*)"\]$/;
156
156
  const cssIdRE = /\.(css|postcss|sass|scss|less|stylus|styl)($|\?)/;
157
- const validateFilterRE = /[\w\u00A0-\uFFFF-_:%-?]/;
157
+ const validateFilterRE = /[\w\u00A0-\uFFFF%-?]/;
158
158
  const CONTROL_SHORTCUT_NO_MERGE = "$$shortcut-no-merge";
159
159
  function isAttributifySelector(selector) {
160
160
  return selector.match(attributifyRE);
@@ -603,7 +603,7 @@ function definePreset(preset) {
603
603
  return preset;
604
604
  }
605
605
 
606
- const version = "0.60.2";
606
+ const version = "0.60.4";
607
607
 
608
608
  var __defProp = Object.defineProperty;
609
609
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
3
  "type": "module",
4
- "version": "0.60.2",
4
+ "version": "0.60.4",
5
5
  "description": "The instant on-demand Atomic CSS engine.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",