@unocss/preset-attributify 0.52.2 → 0.52.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.cjs +2 -7
- package/dist/index.mjs +2 -7
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -88,15 +88,10 @@ function autocompleteExtractorAttributify(options) {
|
|
|
88
88
|
if (attrValues === void 0) {
|
|
89
89
|
return {
|
|
90
90
|
extracted: attrNameWithoutPrefix,
|
|
91
|
-
transformSuggestions(suggestion) {
|
|
92
|
-
if (hasPrefix)
|
|
93
|
-
return suggestion.map((s) => options.prefix + s);
|
|
94
|
-
else
|
|
95
|
-
return suggestion;
|
|
96
|
-
},
|
|
97
91
|
resolveReplacement(suggestion) {
|
|
92
|
+
const startOffset = hasPrefix ? options.prefix.length : 0;
|
|
98
93
|
return {
|
|
99
|
-
start: attrsPos,
|
|
94
|
+
start: attrsPos + startOffset,
|
|
100
95
|
end: attrsPos + attrName.length,
|
|
101
96
|
replacement: suggestion
|
|
102
97
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -84,15 +84,10 @@ function autocompleteExtractorAttributify(options) {
|
|
|
84
84
|
if (attrValues === void 0) {
|
|
85
85
|
return {
|
|
86
86
|
extracted: attrNameWithoutPrefix,
|
|
87
|
-
transformSuggestions(suggestion) {
|
|
88
|
-
if (hasPrefix)
|
|
89
|
-
return suggestion.map((s) => options.prefix + s);
|
|
90
|
-
else
|
|
91
|
-
return suggestion;
|
|
92
|
-
},
|
|
93
87
|
resolveReplacement(suggestion) {
|
|
88
|
+
const startOffset = hasPrefix ? options.prefix.length : 0;
|
|
94
89
|
return {
|
|
95
|
-
start: attrsPos,
|
|
90
|
+
start: attrsPos + startOffset,
|
|
96
91
|
end: attrsPos + attrName.length,
|
|
97
92
|
replacement: suggestion
|
|
98
93
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-attributify",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.4",
|
|
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.52.
|
|
36
|
+
"@unocss/core": "0.52.4"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "unbuild",
|