@unocss/autocomplete 0.45.14 → 0.45.19

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
@@ -272,7 +272,7 @@ function createAutocomplete(uno) {
272
272
  templates.length = 0;
273
273
  templates.push(
274
274
  ...uno.config.autocomplete.templates || [],
275
- ...uno.config.rulesDynamic.flatMap((i) => core.toArray(i?.[2]?.autocomplete || [])),
275
+ ...uno.config.rulesDynamic.flatMap((i) => core.toArray(i?.[3]?.autocomplete || [])),
276
276
  ...uno.config.shortcuts.flatMap((i) => core.toArray(i?.[2]?.autocomplete || []))
277
277
  );
278
278
  }
package/dist/index.mjs CHANGED
@@ -264,7 +264,7 @@ function createAutocomplete(uno) {
264
264
  templates.length = 0;
265
265
  templates.push(
266
266
  ...uno.config.autocomplete.templates || [],
267
- ...uno.config.rulesDynamic.flatMap((i) => toArray(i?.[2]?.autocomplete || [])),
267
+ ...uno.config.rulesDynamic.flatMap((i) => toArray(i?.[3]?.autocomplete || [])),
268
268
  ...uno.config.shortcuts.flatMap((i) => toArray(i?.[2]?.autocomplete || []))
269
269
  );
270
270
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/autocomplete",
3
- "version": "0.45.14",
3
+ "version": "0.45.19",
4
4
  "description": "Autocomplete utils for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -21,6 +21,7 @@
21
21
  "sideEffects": false,
22
22
  "exports": {
23
23
  ".": {
24
+ "types": "./dist/index.d.ts",
24
25
  "require": "./dist/index.cjs",
25
26
  "import": "./dist/index.mjs"
26
27
  }
@@ -35,7 +36,7 @@
35
36
  "lru-cache": "^7.14.0"
36
37
  },
37
38
  "devDependencies": {
38
- "@unocss/core": "0.45.14"
39
+ "@unocss/core": "0.45.19"
39
40
  },
40
41
  "scripts": {
41
42
  "build": "unbuild",