@unocss/autocomplete 0.51.4 → 0.51.6
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -277,7 +277,7 @@ function createAutocomplete(uno) {
|
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
279
|
function processSuggestions(suggestions, prefix = "", suffix = "") {
|
|
280
|
-
return core.uniq(suggestions.flat()).filter((i) => !!(i && !i.match(/-$/))).sort((a, b) => {
|
|
280
|
+
return core.uniq(suggestions.flat()).filter((i) => !!(i && !i.match(/-$/) && !uno.isBlocked(i))).sort((a, b) => {
|
|
281
281
|
const numA = +(a.match(/\d+$/)?.[0] || NaN);
|
|
282
282
|
const numB = +(b.match(/\d+$/)?.[0] || NaN);
|
|
283
283
|
if (!Number.isNaN(numA) && !Number.isNaN(numB))
|
package/dist/index.mjs
CHANGED
|
@@ -269,7 +269,7 @@ function createAutocomplete(uno) {
|
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
271
|
function processSuggestions(suggestions, prefix = "", suffix = "") {
|
|
272
|
-
return uniq(suggestions.flat()).filter((i) => !!(i && !i.match(/-$/))).sort((a, b) => {
|
|
272
|
+
return uniq(suggestions.flat()).filter((i) => !!(i && !i.match(/-$/) && !uno.isBlocked(i))).sort((a, b) => {
|
|
273
273
|
const numA = +(a.match(/\d+$/)?.[0] || NaN);
|
|
274
274
|
const numB = +(b.match(/\d+$/)?.[0] || NaN);
|
|
275
275
|
if (!Number.isNaN(numA) && !Number.isNaN(numB))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/autocomplete",
|
|
3
|
-
"version": "0.51.
|
|
3
|
+
"version": "0.51.6",
|
|
4
4
|
"description": "Autocomplete utils for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"lru-cache": "^8.0.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@unocss/core": "0.51.
|
|
39
|
+
"@unocss/core": "0.51.6"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "unbuild",
|