@unocss/core 0.57.6 → 0.58.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.cjs CHANGED
@@ -528,9 +528,9 @@ function resolveConfig(userConfig = {}, defaults = {}) {
528
528
  const resolved = {
529
529
  mergeSelectors: true,
530
530
  warn: true,
531
- blocklist: [],
532
531
  sortLayers: (layers2) => layers2,
533
532
  ...config,
533
+ blocklist: getMerged("blocklist"),
534
534
  presets: sortedPresets,
535
535
  envMode: config.envMode || "build",
536
536
  shortcutsLayer: config.shortcutsLayer || "shortcuts",
@@ -590,7 +590,7 @@ function definePreset(preset) {
590
590
  return preset;
591
591
  }
592
592
 
593
- const version = "0.57.6";
593
+ const version = "0.58.0";
594
594
 
595
595
  var __defProp = Object.defineProperty;
596
596
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -1082,7 +1082,7 @@ function createGenerator(config, defaults) {
1082
1082
  }
1083
1083
  const regexScopePlaceholder = /\s\$\$\s+/g;
1084
1084
  function hasScopePlaceholder(css) {
1085
- return css.match(/\s\$\$\s/);
1085
+ return regexScopePlaceholder.test(css);
1086
1086
  }
1087
1087
  function applyScope(css, scope) {
1088
1088
  if (hasScopePlaceholder(css))
package/dist/index.d.cts CHANGED
@@ -161,7 +161,7 @@ declare class UnoGenerator<Theme extends object = object> {
161
161
  }
162
162
  declare function createGenerator<Theme extends object = object>(config?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>): UnoGenerator<Theme>;
163
163
  declare const regexScopePlaceholder: RegExp;
164
- declare function hasScopePlaceholder(css: string): RegExpMatchArray | null;
164
+ declare function hasScopePlaceholder(css: string): boolean;
165
165
  declare function toEscapedSelector(raw: string): string;
166
166
 
167
167
  type Awaitable<T> = T | Promise<T>;
package/dist/index.d.mts CHANGED
@@ -161,7 +161,7 @@ declare class UnoGenerator<Theme extends object = object> {
161
161
  }
162
162
  declare function createGenerator<Theme extends object = object>(config?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>): UnoGenerator<Theme>;
163
163
  declare const regexScopePlaceholder: RegExp;
164
- declare function hasScopePlaceholder(css: string): RegExpMatchArray | null;
164
+ declare function hasScopePlaceholder(css: string): boolean;
165
165
  declare function toEscapedSelector(raw: string): string;
166
166
 
167
167
  type Awaitable<T> = T | Promise<T>;
package/dist/index.d.ts CHANGED
@@ -161,7 +161,7 @@ declare class UnoGenerator<Theme extends object = object> {
161
161
  }
162
162
  declare function createGenerator<Theme extends object = object>(config?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>): UnoGenerator<Theme>;
163
163
  declare const regexScopePlaceholder: RegExp;
164
- declare function hasScopePlaceholder(css: string): RegExpMatchArray | null;
164
+ declare function hasScopePlaceholder(css: string): boolean;
165
165
  declare function toEscapedSelector(raw: string): string;
166
166
 
167
167
  type Awaitable<T> = T | Promise<T>;
package/dist/index.mjs CHANGED
@@ -526,9 +526,9 @@ function resolveConfig(userConfig = {}, defaults = {}) {
526
526
  const resolved = {
527
527
  mergeSelectors: true,
528
528
  warn: true,
529
- blocklist: [],
530
529
  sortLayers: (layers2) => layers2,
531
530
  ...config,
531
+ blocklist: getMerged("blocklist"),
532
532
  presets: sortedPresets,
533
533
  envMode: config.envMode || "build",
534
534
  shortcutsLayer: config.shortcutsLayer || "shortcuts",
@@ -588,7 +588,7 @@ function definePreset(preset) {
588
588
  return preset;
589
589
  }
590
590
 
591
- const version = "0.57.6";
591
+ const version = "0.58.0";
592
592
 
593
593
  var __defProp = Object.defineProperty;
594
594
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -1080,7 +1080,7 @@ function createGenerator(config, defaults) {
1080
1080
  }
1081
1081
  const regexScopePlaceholder = /\s\$\$\s+/g;
1082
1082
  function hasScopePlaceholder(css) {
1083
- return css.match(/\s\$\$\s/);
1083
+ return regexScopePlaceholder.test(css);
1084
1084
  }
1085
1085
  function applyScope(css, scope) {
1086
1086
  if (hasScopePlaceholder(css))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.57.6",
3
+ "version": "0.58.0",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",