@unocss/preset-attributify 65.4.0 → 65.4.3
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.mjs +3 -3
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -91,7 +91,7 @@ function autocompleteExtractorAttributify(options) {
|
|
|
91
91
|
if (options?.prefixedOnly && !hasPrefix)
|
|
92
92
|
return null;
|
|
93
93
|
const attrNameWithoutPrefix = hasPrefix ? attrName.slice(options.prefix.length) : attrName;
|
|
94
|
-
if (attrValues ===
|
|
94
|
+
if (attrValues === undefined) {
|
|
95
95
|
return {
|
|
96
96
|
extracted: attrNameWithoutPrefix,
|
|
97
97
|
resolveReplacement(suggestion) {
|
|
@@ -117,7 +117,7 @@ function autocompleteExtractorAttributify(options) {
|
|
|
117
117
|
currentPos += matchSplit.index + matched.length;
|
|
118
118
|
matchSplit = splitterRE$1.exec(attrValues.slice(currentPos));
|
|
119
119
|
}
|
|
120
|
-
if (value ===
|
|
120
|
+
if (value === undefined)
|
|
121
121
|
value = attrValues.slice(currentPos);
|
|
122
122
|
const [, variants = "", body] = value.match(variantsRE) || [];
|
|
123
123
|
return {
|
|
@@ -210,7 +210,7 @@ const presetAttributify = definePreset((options = {}) => {
|
|
|
210
210
|
autocomplete: {
|
|
211
211
|
extractors: autocompleteExtractors
|
|
212
212
|
},
|
|
213
|
-
extractorDefault: options.strict ? false :
|
|
213
|
+
extractorDefault: options.strict ? false : undefined
|
|
214
214
|
};
|
|
215
215
|
});
|
|
216
216
|
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-attributify",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "65.4.
|
|
4
|
+
"version": "65.4.3",
|
|
5
5
|
"description": "Attributify preset for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/antfu",
|
|
9
|
-
"homepage": "https://
|
|
9
|
+
"homepage": "https://unocss.dev",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/unocss/unocss",
|
|
13
|
-
"directory": "packages/preset-attributify"
|
|
13
|
+
"directory": "packages-presets/preset-attributify"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/unocss/unocss/issues"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@unocss/core": "65.4.
|
|
36
|
+
"@unocss/core": "65.4.3"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "unbuild",
|