@unocss/core 0.30.6 → 0.30.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 CHANGED
@@ -361,7 +361,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
361
361
  };
362
362
  }
363
363
 
364
- const version = "0.30.6";
364
+ const version = "0.30.7";
365
365
 
366
366
  class UnoGenerator {
367
367
  constructor(userConfig = {}, defaults = {}) {
@@ -680,14 +680,17 @@ class UnoGenerator {
680
680
  return result || [];
681
681
  }))).flat(1).filter(Boolean).sort((a, b) => a[0] - b[0]);
682
682
  const [raw, , parentVariants] = parent;
683
+ const rawStringfieldUtil = [];
683
684
  for (const item of parsed) {
684
- if (isRawUtil(item))
685
+ if (isRawUtil(item)) {
686
+ rawStringfieldUtil.push([item[0], void 0, item[1], void 0, item[2]]);
685
687
  continue;
688
+ }
686
689
  const { selector, entries, parent: parent2, sort } = this.applyVariants(item, [...item[4], ...parentVariants], raw);
687
690
  const mapItem = selectorMap.getFallback(selector, parent2, [[], item[0]]);
688
691
  mapItem[0].push([entries, !!item[3]?.noMerge, sort ?? 0]);
689
692
  }
690
- return selectorMap.map(([e2, index], selector, mediaQuery) => {
693
+ return rawStringfieldUtil.concat(selectorMap.map(([e2, index], selector, mediaQuery) => {
691
694
  const stringify = (flatten, noMerge, entrySortPair) => {
692
695
  const maxSort = Math.max(...entrySortPair.map((e3) => e3[1]));
693
696
  const entriesList = entrySortPair.map((e3) => e3[0]);
@@ -706,7 +709,7 @@ class UnoGenerator {
706
709
  ...stringify(false, noMerge, e3.filter(([entries]) => entries.some((entry) => entry[0] === CONTROL_SHORTCUT_NO_MERGE))),
707
710
  ...stringify(true, noMerge, e3.filter(([entries]) => entries.every((entry) => entry[0] !== CONTROL_SHORTCUT_NO_MERGE)))
708
711
  ]);
709
- }).flat(2).filter(Boolean);
712
+ }).flat(2).filter(Boolean));
710
713
  }
711
714
  isBlocked(raw) {
712
715
  return !raw || this.config.blocklist.some((e2) => typeof e2 === "string" ? e2 === raw : e2.test(raw));
package/dist/index.mjs CHANGED
@@ -357,7 +357,7 @@ function resolveConfig(userConfig = {}, defaults = {}) {
357
357
  };
358
358
  }
359
359
 
360
- const version = "0.30.6";
360
+ const version = "0.30.7";
361
361
 
362
362
  class UnoGenerator {
363
363
  constructor(userConfig = {}, defaults = {}) {
@@ -676,14 +676,17 @@ class UnoGenerator {
676
676
  return result || [];
677
677
  }))).flat(1).filter(Boolean).sort((a, b) => a[0] - b[0]);
678
678
  const [raw, , parentVariants] = parent;
679
+ const rawStringfieldUtil = [];
679
680
  for (const item of parsed) {
680
- if (isRawUtil(item))
681
+ if (isRawUtil(item)) {
682
+ rawStringfieldUtil.push([item[0], void 0, item[1], void 0, item[2]]);
681
683
  continue;
684
+ }
682
685
  const { selector, entries, parent: parent2, sort } = this.applyVariants(item, [...item[4], ...parentVariants], raw);
683
686
  const mapItem = selectorMap.getFallback(selector, parent2, [[], item[0]]);
684
687
  mapItem[0].push([entries, !!item[3]?.noMerge, sort ?? 0]);
685
688
  }
686
- return selectorMap.map(([e2, index], selector, mediaQuery) => {
689
+ return rawStringfieldUtil.concat(selectorMap.map(([e2, index], selector, mediaQuery) => {
687
690
  const stringify = (flatten, noMerge, entrySortPair) => {
688
691
  const maxSort = Math.max(...entrySortPair.map((e3) => e3[1]));
689
692
  const entriesList = entrySortPair.map((e3) => e3[0]);
@@ -702,7 +705,7 @@ class UnoGenerator {
702
705
  ...stringify(false, noMerge, e3.filter(([entries]) => entries.some((entry) => entry[0] === CONTROL_SHORTCUT_NO_MERGE))),
703
706
  ...stringify(true, noMerge, e3.filter(([entries]) => entries.every((entry) => entry[0] !== CONTROL_SHORTCUT_NO_MERGE)))
704
707
  ]);
705
- }).flat(2).filter(Boolean);
708
+ }).flat(2).filter(Boolean));
706
709
  }
707
710
  isBlocked(raw) {
708
711
  return !raw || this.config.blocklist.some((e2) => typeof e2 === "string" ? e2 === raw : e2.test(raw));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
- "version": "0.30.6",
3
+ "version": "0.30.7",
4
4
  "description": "The instant on-demand Atomic CSS engine.",
5
5
  "keywords": [
6
6
  "unocss",