@unocss/preset-attributify 0.53.4 → 0.53.5

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
@@ -138,7 +138,7 @@ const strippedPrefixes = [
138
138
  const splitterRE = /[\s'"`;]+/g;
139
139
  const elementRE = /<[^>\s]*\s((?:'.*?'|".*?"|`.*?`|\{.*?\}|[^>]*?)*)/g;
140
140
  const valuedAttributeRE = /([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.~<]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms;
141
- const defaultIgnoreAttributes = ["placeholder", "fill", "opacity"];
141
+ const defaultIgnoreAttributes = ["placeholder", "fill", "opacity", "stroke-opacity"];
142
142
  function extractorAttributify(options) {
143
143
  const ignoreAttributes = options?.ignoreAttributes ?? defaultIgnoreAttributes;
144
144
  const nonValuedAttribute = options?.nonValuedAttribute ?? true;
package/dist/index.mjs CHANGED
@@ -134,7 +134,7 @@ const strippedPrefixes = [
134
134
  const splitterRE = /[\s'"`;]+/g;
135
135
  const elementRE = /<[^>\s]*\s((?:'.*?'|".*?"|`.*?`|\{.*?\}|[^>]*?)*)/g;
136
136
  const valuedAttributeRE = /([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.~<]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms;
137
- const defaultIgnoreAttributes = ["placeholder", "fill", "opacity"];
137
+ const defaultIgnoreAttributes = ["placeholder", "fill", "opacity", "stroke-opacity"];
138
138
  function extractorAttributify(options) {
139
139
  const ignoreAttributes = options?.ignoreAttributes ?? defaultIgnoreAttributes;
140
140
  const nonValuedAttribute = options?.nonValuedAttribute ?? true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-attributify",
3
- "version": "0.53.4",
3
+ "version": "0.53.5",
4
4
  "description": "Attributify preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@unocss/core": "0.53.4"
36
+ "@unocss/core": "0.53.5"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "unbuild",