@unocss/nuxt 0.34.1 → 0.35.0

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.d.ts CHANGED
@@ -5,6 +5,7 @@ import { AttributifyOptions } from '@unocss/preset-attributify';
5
5
  import { IconsOptions } from '@unocss/preset-icons';
6
6
  import { WebFontsOptions } from '@unocss/preset-web-fonts';
7
7
  import { TypographyOptions } from '@unocss/preset-typography';
8
+ import { TagifyOptions } from '@unocss/preset-tagify';
8
9
  import { PresetWindOptions } from '@unocss/preset-wind';
9
10
 
10
11
  interface UnocssNuxtOptions extends UserConfig {
@@ -39,6 +40,12 @@ interface UnocssNuxtOptions extends UserConfig {
39
40
  * @default false
40
41
  */
41
42
  attributify?: boolean | AttributifyOptions;
43
+ /**
44
+ * Enable tagify mode and the options of it
45
+ * Only works when `presets` is not specified
46
+ * @default false
47
+ */
48
+ tagify?: boolean | TagifyOptions;
42
49
  /**
43
50
  * Enable icons preset and the options of it
44
51
  * Only works when `presets` is not specified
package/dist/index.mjs CHANGED
@@ -8,6 +8,7 @@ import presetAttributify from '@unocss/preset-attributify';
8
8
  import presetIcons from '@unocss/preset-icons';
9
9
  import presetWebFonts from '@unocss/preset-web-fonts';
10
10
  import presetTypography from '@unocss/preset-typography';
11
+ import presetTagify from '@unocss/preset-tagify';
11
12
  import presetWind from '@unocss/preset-wind';
12
13
 
13
14
  function resolveOptions(options) {
@@ -16,6 +17,7 @@ function resolveOptions(options) {
16
17
  const presetMap = {
17
18
  uno: presetUno,
18
19
  attributify: presetAttributify,
20
+ tagify: presetTagify,
19
21
  icons: presetIcons,
20
22
  webFonts: presetWebFonts,
21
23
  typography: presetTypography,
package/package.json CHANGED
@@ -1,53 +1,54 @@
1
1
  {
2
2
  "name": "@unocss/nuxt",
3
- "version": "0.34.1",
3
+ "version": "0.35.0",
4
4
  "description": "Nuxt module for UnoCSS",
5
- "keywords": [
6
- "unocss",
7
- "nuxt-module",
8
- "nuxt",
9
- "nuxt3"
10
- ],
11
- "homepage": "https://github.com/unocss/unocss#readme",
12
- "bugs": {
13
- "url": "https://github.com/unocss/unocss/issues"
14
- },
15
- "license": "MIT",
16
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
+ "license": "MIT",
7
+ "funding": "https://github.com/sponsors/antfu",
8
+ "homepage": "https://github.com/unocss/unocss#readme",
17
9
  "repository": {
18
10
  "type": "git",
19
11
  "url": "git+https://github.com/unocss/unocss.git",
20
12
  "directory": "packages/nuxt"
21
13
  },
22
- "funding": "https://github.com/sponsors/antfu",
23
- "main": "./index.cjs",
24
- "module": "./dist/index.mjs",
25
- "types": "./dist/index.d.ts",
14
+ "bugs": {
15
+ "url": "https://github.com/unocss/unocss/issues"
16
+ },
17
+ "keywords": [
18
+ "unocss",
19
+ "nuxt-module",
20
+ "nuxt",
21
+ "nuxt3"
22
+ ],
23
+ "sideEffects": false,
26
24
  "exports": {
27
25
  ".": {
28
- "require": "./index.cjs",
29
- "import": "./dist/index.mjs"
26
+ "import": "./dist/index.mjs",
27
+ "require": "./index.cjs"
30
28
  }
31
29
  },
30
+ "main": "./index.cjs",
31
+ "module": "./dist/index.mjs",
32
+ "types": "./dist/index.d.ts",
32
33
  "files": [
33
34
  "dist",
34
35
  "index.cjs",
35
36
  "runtime"
36
37
  ],
37
- "sideEffects": false,
38
38
  "dependencies": {
39
39
  "@nuxt/kit": "^3.0.0-rc.3",
40
- "@unocss/core": "0.34.1",
41
- "@unocss/preset-attributify": "0.34.1",
42
- "@unocss/preset-icons": "0.34.1",
43
- "@unocss/preset-typography": "0.34.1",
44
- "@unocss/preset-uno": "0.34.1",
45
- "@unocss/preset-web-fonts": "0.34.1",
46
- "@unocss/preset-wind": "0.34.1",
47
- "@unocss/reset": "0.34.1",
48
- "@unocss/vite": "0.34.1",
49
- "@unocss/webpack": "0.34.1",
50
- "unocss": "0.34.1"
40
+ "@unocss/core": "0.35.0",
41
+ "@unocss/preset-attributify": "0.35.0",
42
+ "@unocss/preset-icons": "0.35.0",
43
+ "@unocss/preset-tagify": "0.35.0",
44
+ "@unocss/preset-typography": "0.35.0",
45
+ "@unocss/preset-uno": "0.35.0",
46
+ "@unocss/preset-web-fonts": "0.35.0",
47
+ "@unocss/preset-wind": "0.35.0",
48
+ "@unocss/reset": "0.35.0",
49
+ "@unocss/vite": "0.35.0",
50
+ "@unocss/webpack": "0.35.0",
51
+ "unocss": "0.35.0"
51
52
  },
52
53
  "devDependencies": {
53
54
  "@nuxt/schema": "^3.0.0-rc.3"